Unable to export users from database

hello! I'm following the instructions located at

https://confluence.atlassian.com/display/CONFKB/How+to+Export+User+Data+to+CSV+in+Confluence

but I continue to receive this error

"mysql> select id, user_name, lower_first_name, lower_last_name into outfile '/tmp/confusers.csv' FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '\n' from cwd_user;

ERROR 1045 (28000): Access denied for user 'confluenceuser'@'localhost' (using password: YES)"

I'm unsure of where to go from here.

1 answer

0 vote

Hi Shane,

From the error, it seem that confluenceuser does not have enough permission to select in the database. Why don't you try granting the permission of the database to confluenceuser'@'localhost.

GRANT ALL ON <databaseName>.* TO 'confluenceuser'@'localhost';

Kind Regards,

Jing Hwa


Doesn't appear to have worked?

mysql> GRANT ALL ON confluencedb.* TO 'confluenceuser'@'localhost';

Query OK, 0 rows affected (0.00 sec)

mysql> select id, user_name, lower_first_name, lower_last_name into outfile '/tmp/confusers.csv' FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '\n' from cwd_user;

ERROR 1045 (28000): Access denied for user 'confluenceuser'@'localhost' (using password: YES)

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,856 views 27 11
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you