MySQL的时候提示Access denied for user 'root'@'localhost' (using password: YES)

来源:互联网 发布:文笔比较好的网络作者 编辑:程序博客网 时间:2024/05/22 10:48

解决办法:

1.在终端上进入数据库的命令行:

mysql -u root -p 在输入密码后进入mysql的命令行

2.接着输入命令下面两条命令:

grant all privileges on *.* to 'root'@'localhost' identified by '密码' with grant option;

flush privileges;

3.重启电脑问题解决

0 0
原创粉丝点击