ERROR 1044 (42000): Access denied for user

ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'db'

You may need to set up a root account for your MySQL database:

In the terminal type:

mysqladmin -u root password 'root password goes here'

And then to invoke the MySQL client:

mysql -h localhost -u root -p


你可能感兴趣的:(ERROR 1044 (42000): Access denied for user)