Navicat mysql remote connectivity to solve the problem of very slow

The company developed an application system connection test server mysql database connection open very slow, but the connection of local mysql database quickly, just beginning to think might be caused by network connectivity problems, ping and route discovery after performing network communications are normal , and carried out on a local machine mysql connection is found soon, so network problems basically been ruled out, so I want to look at the configuration problem is not mysql. After mysql query related documents and Web search, I found a configuration seems to solve this problem is to add the following configuration parameters in mysql configuration file:

[mysqld]
skip-name-resolve

In linux configuration file is /etc/my.cnf, in the windows configuration file is my.ini file in the mysql installation directory. Note that this configuration is added to the [mysqld] Next, after changing the configuration and save it, and then restart mysql remote connection test, all recovery ever.

 

Source: https://blog.csdn.net/nxstack/article/details/87082573

Guess you like

Origin www.cnblogs.com/wordblog/p/12161605.html