My Community Dashboard

  • Rod_Bowden
    Rod_Bowden started a new discussion, Backup

    Backup

    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