Home >Database >navicat >What should I do if navicat reports error 2005 when connecting to the database?

What should I do if navicat reports error 2005 when connecting to the database?

爱喝马黛茶的安东尼
爱喝马黛茶的安东尼Original
2019-08-15 13:15:516183browse

What should I do if navicat reports error 2005 when connecting to the database?

About Navicat for MySQL connecting to MySQL and reporting 2005 -Unknown MySQL server host 'localhost' (0) error situation and solution

What should I do if navicat reports error 2005 when connecting to the database?

##Related recommendations: "

Navicat for mysql graphic tutorial"

2005 Error reason:

Local After the MySQL service is started, because some functions of Navicat need to be connected to the Internet, an 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 the network problem and successfully connect to the Internet.


2. When there is no network, open the connection properties and change the localhost of the host name or IP address to 127.0.0.1. That’s it.

The above is the detailed content of What should I do if navicat reports error 2005 when connecting to the database?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn