MySQL error Can't get hostname for your address

The solution is as follows:

Edit the mysql configuration file my.ini

[mysqld]

port = 3306

socket = /tmp/mysql.sock

increase

skip-name-resolve # ignore the host name to access

lower_case_table_names = 1 # Ignore case of database table names

Restart Mysql problem solved

Published 6 original articles · received 1 · views 383

Guess you like

Origin blog.csdn.net/qq_42857963/article/details/84566658