Windows connect to mysql failed: can't get hostname for your address

My mysql is on Linux platform. When I used my laptop connect to mysql, I got error message like "can't get hostname for your address".

Resolution:

Modifed file /etc/mysql/my.cnf and added message as below:

 

[mysqld]

skip-name-resolve

原文地址:https://www.cnblogs.com/panderen/p/4353394.html