Navicat premium远程连接 mysql一些问题

1、Error1

Error:“Access denied for user 'root'@'localhost' (using password:YES)”

解决:在mysql安装目录下的"my.ini"文件中,在块“[mysqld]”后添加 “skip-grant-tables”。   "skip-name-resolve"(这句貌似不用写)

2、Error2

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

解决:关闭mysql所在电脑上防火墙、杀毒软件等

原文地址:https://www.cnblogs.com/xbj-hyml/p/11378771.html