From a shell prompt or terminal session, I can log into the MySQL by typing:
then it prompts for the password, and I login with no problem
mysql -u myusername -p
If use the following from the shell or terminal session it is a no go.
This is a problem, because I need to cron a job to run, and it won't let the cron job log in. It fails with the following error:
mysql -u myusername -pmypassword
ERROR 1045 (28000): Access denied for user 'myusername'@'localhost' (using password: YES)
Help woudl be greatly appreciated.