I have the following small bit of script:
Code:
mysqldump -u root -p=password cacti > $MYSQL_FILE
But, whenever this runs I get the following error:
Code:
mysqldump: Got error: 1045: Access denied for user 'root'@'localhost' (using password: YES) when trying to connect
Any suggestions?
Thanks.