As a root mysql user, I executed the following:
grant all on mydb.* to john identified by 'john1';
Then from shell, I tried to login via
mysql -h localhost -u john -pjohn1;
But when I do this, I get the error
ERROR 1045 (28000): Access denied for user 'john'@'localhost' (using password: YES)
How do I allow john to login to the mysql terminal? Do I need to use the root mysql user to change something in the mysql.user table?
Thanks