mysqldump error output: mysqldump: Got error: 1045: “Access denied for user ‘da_admin’@’localhost’ (using password: YES)” when trying to connect

Error while backing up database
Error while backing up database: The sql file is 0 bytes in size:

You should add user name to /root/.my.cnf
vi /root/.my.cnf
user=root
password=some_password

Leave a Reply

Your email address will not be published. Required fields are marked *