From:       To:      
Home > Documentation > MySQL

How to fix the error "Can't connect to MySQL server on <host name or IP>"

Make sure MySQL server is launched on the target machine. Also please check the port number field to verify that you have specified the correct number. You can check is the server allows remote connection by running the following statement from command line:

telnet <mysql server IP or network name> 3306 

If the issue persists, read Configuring MySQL article for possible workaround.

Have questions? Contact us

See also

Useful MySQL Queries
Tuning MySQL Performance
How to Backup and Restore MySQL Database