Beginner MYSQL Error - Access Denied

流过昼夜 提交于 2019-12-05 19:26:09

use the -p option. (Tells mysql that you want to provide a password when logging in.)

$ mysql -u root
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
$ mysql -u root -p
Enter password: 

If that doesn't work, try B.5.4.1. How to Reset the Root Password from the MySQL Reference Manual.

$ mysql -u root -p{you_password} {db_name}

just remove '{}' from the string.

In the services.msc check if mysql is running as local system or network system. By default, it should be network system , change that to local system and restart the service.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!