As the mysql root user, I did the following:
grant all on mydb.* to john identified by 'john1';
Then from the shell I tried to log in through
mysql -h localhost -u john -pjohn1;
But when I do this, I get an error
ERROR 1045 (28000): Access denied for user 'john'@'localhost' (using password: YES)
How to allow john to login to mysql terminal? Do I need to use the mysql user root to modify anything in the mysql.user table?
thank
source
share