Because what I wrote before was not detailed enough, I modified and supplemented it this time. However, my previous MySQL version was 8.0 and the current version is 5.7, so the screenshots are a bit strange, but the steps are exactly the same, and I have tried both versions. Step 1: Open Command Line Client. Look carefully, it is not cmd, but in the mysql directory. You will find that there are two identical ones. In fact, either one will work. Step 2: Enter the MySQL password and press Enter. This is the password you set when installing MySQL. Just enter the password without the semicolon. Step 3: Enter ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'mysql的密码'; press Enter. Don't miss the semicolon at the end. The mysql password is the password you set when you installed mysql. Step 4: Enter FLUSH PRIVILEGES; press Enter. Do not miss the semicolon at the end. Let me demonstrate: My mysql password is 111111 If the word OK appears, no error will be reported. You can also use this method to change the mysql password. For example, my mysql password is 111111 and I want to change it to 123456 Just change the mysql password to 123456 The above is the detailed content of solving the problem of Navicat for Mysql connection error 1251 (connection failed). For more information about Navicat for Mysql connection error 1251, please pay attention to other related articles on 123WORDPRESS.COM! You may also be interested in:
|
<<: The Chinese garbled characters in HTML files and the display problems in browsers
>>: Detailed process of installing Docker, creating images, loading and running NodeJS programs
Overview As for the current default network of Do...
1. Compile and install ovs from source code: Inst...
<br /> The website access speed can directly...
Recently I saw a barrage effect on B station call...
[LeetCode] 182.Duplicate Emails Write a SQL query...
Adding background image control to a component re...
Table of contents Avoid repetitive rendering loop...
This article shares the specific code of Vue intr...
There are many read-write separation architecture...
<br />Based on the original width-and-height...
When it comes to tool-type websites, we first hav...
Fabric.js is a very useful canvas operation plug-...
Import the data exported from the Oracle database...
In Linux, the commands cat, more, and less can al...
Preface: Fully encapsulating a functional module ...