ERROR 1044 (42000): Access denied for user ”@’localhost’ to database ‘db’

No, you should run mysql -u root -p in bash, not at the MySQL command-line. If you are in mysql, you can exit by typing exit.

Leave a Comment