Solve the problem of Navicat for Mysql connection error 1251 (connection failed)

Solve the problem of Navicat for Mysql connection error 1251 (connection failed)

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:
  • Navicat for MySQL 15 Registration and Activation Detailed Tutorial
  • Navicat for MySQL 11 Registration Code\Activation Code Summary
  • Detailed explanation of the idea of ​​installing mysql8.0.11 and changing the root password and connecting navicat for mysql
  • A simple method to export table structure script using Navicat for MySQL
  • Solve the problem of Navicat for MySQL reporting 2005 error when connecting to MySQL

<<:  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

Recommend

Nginx rewrite regular matching rewriting method example

Nginx's rewrite function supports regular mat...

Binary installation of mysql 5.7.23 under CentOS7

The installation information on the Internet is u...

Detailed explanation of the execution order of JavaScript Alert function

Table of contents question analyze solve Replace ...

How to use webpack and rollup to package component libraries

Preface I made a loading style component before. ...

MySQL 8.0.16 Win10 zip version installation and configuration graphic tutorial

This article shares with you the installation and...

Mysql string interception and obtaining data in the specified string

Preface: I encountered a requirement to extract s...

CentOS 6-7 yum installation method of PHP (recommended)

1. Check the currently installed PHP packages yum...

Best Practices Guide for MySQL Partitioned Tables

Preface: Partitioning is a table design pattern. ...

Ubuntu 20.04 Best Configuration Guide (Newbie Essential)

1. System Configuration 1. Turn off sudo password...

Vue large screen data display example

In order to efficiently meet requirements and avo...

How to hide the border/separation line between cells in a table

Only show the top border <table frame=above>...

Examples of 4 methods for inserting large amounts of data in MySQL

Preface This article mainly introduces 4 methods ...

Detailed explanation of Mysql's concurrent parameter adjustment

Table of contents Query cache optimization Overvi...