100字范文,内容丰富有趣,生活中的好帮手!
100字范文 > 解决error 1045: Access denied for user: 'root@localhost' (Using password: YES)

解决error 1045: Access denied for user: 'root@localhost' (Using password: YES)

时间:2019-03-19 00:46:10

相关推荐

解决error 1045: Access denied for user: 'root@localhost' (Using password: YES)

转载连接:http://jianfw./blog/static/1343136601016112459158/

1、先停止mysql服务 2、在mysql的目录下找到my.ini,在[mysqld]后面加上skip-grant-tables 3、启动mysql服务,打开Command Line Client以空密码登录 4、退出mysql,并停止服务 5、把my.ini中添加的:skip-grant-tables 去掉 5、再次开启mysql服务,直接回车登录,输入:set password for root@localhost=password('newpwd'); 6、退出重新配置,大功告成!

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