700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > 解决mysql5.6 “Access denied for user 'root'@'localhost' (using password: YES”)

解决mysql5.6 “Access denied for user 'root'@'localhost' (using password: YES”)

时间:2023-06-06 07:45:22

相关推荐

解决mysql5.6 “Access denied for user 'root'@'localhost' (using password: YES”)

亲测有效。仅测5.6版本。

1.找到my.ini文件,在[mysqld]下加一句

skip-grant-tables

2.重启服务

net stop mysqlnet start mysql

3.登录

mysql -uroot mysql

4.修改密码

mysql > update user set authentication_string = password('123456') where user = 'root' and Host = 'localhost'

5.刷新权限

mysql > flush privileges;

6.退出mysql并删除my.ini中的skip-grant-tables

7.重启mysql

net stop mysqlnet start mysql

8.登录

#mysql -uroot -p

成功。

参考:/zhanghuilong/p/6563882.html

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。