Open Navicat for Mysql, create a new connection--the following situation occurs when testing the connection:
Cause of the problem:
It can be seen from the error statement that 'cannot connect to the mysql server'. That is to say, it may be that the MySQL database service has not started. Just start mysqld.exe. I have tested it myself many times. There may be other reasons, but this is the most common.
Related recommendations: "Navicat for mysql graphic tutorial"
Solution:
1. Open 'Computer'-- >Click 'Computer' on the left-->Enter 'mysqld' in the search bar, find it and start it.
#2. If it cannot be found, there is no mysql service. Go to the official website to download: https://dev.mysql.com/downloads/mysql/ and choose the 32-bit or 64-bit version that suits you. Start directly after downloading and installing.
3. After searching it out or starting it up, connect again. At this time, the above problem will not occur.
The general default password is: root or empty (nothing) or 123456.
The above is the detailed content of How to solve the problem that navicat cannot connect to the database 2003. For more information, please follow other related articles on the PHP Chinese website!