Home > Database > navicat > body text

What should I do if navicat fails to connect to mysql?

爱喝马黛茶的安东尼
Release: 2019-08-15 11:45:01
Original
16509 people have browsed it

What should I do if navicat fails to connect to mysql?

Navicat keeps reporting 1405 errors when connecting to the mysql database. The following is the solution for this:

What should I do if navicat fails to connect to mysql?

Related recommendations: " Navicat for mysql graphic tutorial

MySQL server is running, stop it. If the server is running as a Windows service, go to Computer Management --->Services and Applications------>Services. If the server is not running as a service, you may need to use Task Manager to force stop it.

What should I do if navicat fails to connect to mysql?

What should I do if navicat fails to connect to mysql?

Create a text file (named mysql-init.txt here) and place the following commands on a single line Medium: SET PASSWORD FOR 'root'@'localhost' = PASSWORD('MyNewPassword');

What should I do if navicat fails to connect to mysql?

(note that the file we created is imported into the bin in the MySql installation directory Directory D:\progame\bin) progame is my own MySql directory, be careful not to make errors [it is the sql in your own installation directory]

What should I do if navicat fails to connect to mysql?

When the server starts, execute The contents of the file named by the "--init-file" option (function: read SQL commands from the specified file at startup), change the root user password. When the server starts successfully, the mysql-init.txt file we imported should be deleted.

Finally stop the MySQL server and then restart it. [Note that to run the server in automatic mode, you should start it from the Windows service window. If you started the server manually, you can use the commands as normal. 】Then I found that I was connected to the database.

What should I do if navicat fails to connect to mysql?

The above is the detailed content of What should I do if navicat fails to connect to mysql?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!