About Navicat for MySQL Connecting to MySQL and reporting 2005 -Unknown MySQL server host 'localhost' (0) error situation and solution
Recommended tutorial:MySQL database introductory video tutorial
2005 error reason:
In local MySQL After the service is started, some functions of Navicat need to be connected to the Internet before they can be used. Since the error message says that the localhost of the host cannot be connected, the localhost needs DNS resolution before it becomes the local loopback address 127.0.0.1. In the case of disconnection, Without parsing, localhost is a string
Solution:
1. Solve network problems , successfully connected to the Internet
2. When there is no network, open the connection properties, change the localhost of the host name or IP address to 127.0.0.1, and it will be fine
The above is the detailed content of navicat 2005 error. For more information, please follow other related articles on the PHP Chinese website!