Home  >  Article  >  Database  >  What should I do if navicat fails to connect to mysql?

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

爱喝马黛茶的安东尼
爱喝马黛茶的安东尼Original
2019-08-15 11:45:0116562browse

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!

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