I am trying to do a backup. In my script I stop the service first. Then I am trying to do an mysqldump as per the below:
/usr/clearos/sandbox/usr/bin/mysqldump -u zarafa -p -v --single-transaction zarafa | gzip > /var/tmp/zarafadump.sql.gz
With this I get
Enter password: -- Connecting to localhost...
mysqldump: Got error: 1045: "Access denied for user 'zarafa'@'localhost' (using password: NO)" when trying to connect
If I do:
/usr/clearos/sandbox/usr/bin/mysqldump -uzarafa -pPassword -v --single-transaction zarafa | gzip > /var/tmp/zarafadump.sql.gz
mysqldump: Got error: 1045: "Access denied for user 'zarafa'@'localhost' (using password: YES)" when trying to connect
What am I doing wrong
/usr/clearos/sandbox/usr/bin/mysqldump -u zarafa -p -v --single-transaction zarafa | gzip > /var/tmp/zarafadump.sql.gz
With this I get
Enter password: -- Connecting to localhost...
mysqldump: Got error: 1045: "Access denied for user 'zarafa'@'localhost' (using password: NO)" when trying to connect
If I do:
/usr/clearos/sandbox/usr/bin/mysqldump -uzarafa -pPassword -v --single-transaction zarafa | gzip > /var/tmp/zarafadump.sql.gz
mysqldump: Got error: 1045: "Access denied for user 'zarafa'@'localhost' (using password: YES)" when trying to connect
What am I doing wrong
Share this post:
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »