- Feb 4, 2003
- 3,370
- 0
- 71
This problem only seems to happen in Linux, not Windows. If I create a user in mysql with a wildcard host (or don't specify the host at all, which should do the same thing), they are unable to login locally. I just get an error:
ERROR 1045 (28000): Access denied for user 'myuser'@'localhost' (using password: YES)
I use this command to create the user:
CREATE USER myuser IDENTIFIED BY 'password'
and this command to login to mysql:
mysql -u myuser -p
If I specify localhost like this:
CREATE USER 'myuser'@'localhost' IDENTIFIED BY 'password'
then they are able to login locally fine. Is this normal? If I specify a wildcard host, shouldn't they be able to login from anywhere, including localhost?
ERROR 1045 (28000): Access denied for user 'myuser'@'localhost' (using password: YES)
I use this command to create the user:
CREATE USER myuser IDENTIFIED BY 'password'
and this command to login to mysql:
mysql -u myuser -p
If I specify localhost like this:
CREATE USER 'myuser'@'localhost' IDENTIFIED BY 'password'
then they are able to login locally fine. Is this normal? If I specify a wildcard host, shouldn't they be able to login from anywhere, including localhost?