Nov 8, 2018

How to fix: MySQL problem: IP address could not be resolved: Name or service not known

If you encounter this problem, connection from mysql client to mysql server could randomly be successful or unsuccessful. To solve this problem, put

skip-name-resolve

to my.cnf and restart the database.