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

When connected to the mysql Navicat for MySQL remote use, there has been

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

 

Modify the my.cnf file (windows for the my.ini)

In general mysql installation directory, / etc / mycnf.

In the configuration file my.cnf [mysqld] Add region skip-name-resolve, see friends say skip the DNS resolution function mysql reverse connection, this can well improve performance mysql. In this case, you can only use MySQL grant tables in the mysql IP to connect to the service.

Reference: https: //www.cnblogs.com/leeke98/p/9018045.html

Guess you like

Origin www.cnblogs.com/zqyw/p/10967165.html