Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Unable to export users from database

Shane O'Brien July 17, 2013

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 votes
jing_hwa_cheok
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 17, 2013

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


Shane O'Brien July 17, 2013

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
TAGS
AUG Leaders

Atlassian Community Events