Correct MySQL username/password, but getting Access Denied error when run from script
- by Nick
I'm currently trying to run the following command from within a shell script.
/usr/bin/mysql -u username -ppassword -h localhost database
It works perfectly fine when executed manually, and not from within a script. When I try to execute a script that contains that command, I get the following error:
ERROR 1045 (28000) at line 3: Access denied…