http://blog.csdn.net/u013980127/article/details/52261400
mysql restart::
// linux command to close MySQL
$mysql installation path/bin/mysqladmin -uroot -p shutdown
// linux command to start MySQL
$mysql installation path/bin/mysqld_safe &
##After the initial installation, the remote access will be very slow. This is because mysql has a process for dns to resolve domain names, which needs to be ignored.
[mysqld]
skip-name-resolve
The configuration file under linux is /etc/my.cnf, and the configuration file under windows is the my.ini file in the mysql installation directory. Note that the configuration is added under [mysqld], after changing the configuration and saving, then restart mysql and test the remote connection, everything is restored.
Reference: https://www.cnblogs.com/xiaoxihebei/p/5893887.html