Home  >  Article  >  Database  >  How to solve mysql error 2005 problem

How to solve mysql error 2005 problem

藏色散人
藏色散人Original
2021-12-29 11:59:1910790browse

Solution to mysql error 2005: 1. Turn off data operation; 2. Open Navicat premium; 3. Modify the connection address and save it.

How to solve mysql error 2005 problem

The operating environment of this article: Windows 7 system, mysql version 5.6.26, Dell G3 computer.

How to solve the mysql error 2005 problem?

This problem suddenly occurred before today’s defense. Baidu tried many methods, but I don’t know which one worked.

A 2005 error occurs when connecting to Navicat Premium. The error code means that the host localhost cannot be connected.


The following problem occurs when starting the server from cmd

How to solve mysql error 2005 problem

1. Close data operation

E:\mysql\mysql-5.6.26-winx64\bin>mysqladmin -u root -p shutdown

2. E:\mysql\mysql-5.6.26-winx64\bin>mysql-uroot -p –hlocalhost


##After this I will I can connect to the mysql database from the system I built, but Navicat Premium still reports an error

Then my classmate told me

After modifying the connection address, Navicat Premium can connect normally

How to solve mysql error 2005 problem

Recommended study: "

mysql video tutorial"

The above is the detailed content of How to solve mysql error 2005 problem. 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