首页 > 数据库技术 > 详细

Lost connection to MySQL server at 'reading initial communication packet',system error:0

时间:2018-11-06 17:30:19      阅读:240      评论:0      收藏:0      [点我收藏+]

如果网上各种文档告诉你去配置/etc/my.cnf,你没找到的话,不防试试我这个,文件的位置在:

技术分享图片

去里面找找看

技术分享图片

注释掉bind-address

然后重置下密码:

use mysql

update user set authentication_string=password(‘wxhcj1314520‘),plugin=‘mysql_native_password‘ where user=‘root‘;

然后刷新一下:

flush privileges;

 

Lost connection to MySQL server at 'reading initial communication packet',system error:0

原文:https://www.cnblogs.com/SATinnovation/p/9916332.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!