I encounter the error below no matter what mysql command I enter in my shell on my bluehost connected server.
ERROR 1045 (28000): Access denied for user 'myuser'@'localhost' (using password: YES)
The simplest command I have tried that nets this error is
mysql -u myuser -pMypass
ERROR 1045 (28000): Access denied for user 'myuser'@'localhost' (using password: YES)
I am 100% sure the user and password are correct as I have tried several different users.
I have tried granting all permissions to each user.
I have tried executing as my root user. I have also tried with -e on a simply query.
Does anyone know if there is a global setting that is preventing my from even the simplest of commands?
I am getting access with PuTTy and can see/edit my files correctly.
EDIT:::: SOLUTION:::: My password contained a ‘$’ which needed to be escaped….
When you ran
and got this error
mysqld is expecting you to connect as
myuser@localhostTry creating
myuser@localhostIf you want to connect remotely, you must specify either the DNS name, the public IP, or 127.0.0.1 using TCP/IP:
Once you login, please run this
USER() reports how you attempted to authenticate in MySQL
CURRENT_USER() reports how you were allowed to authenticate in MySQL from the mysql.user table
This will give you a better view of how and why you were allowed to login to mysql. Why is this view important to know? It has to do with the user authentication ordering protocol.