Home Database navicat What should I do if navicat reports error 1251 when connecting to mysql?

What should I do if navicat reports error 1251 when connecting to mysql?

Aug 13, 2019 pm 03:38 PM
mysql navicat Report an error

What should I do if navicat reports error 1251 when connecting to mysql?

Navicat connection mysql error 1251 solution

1. Newly installed mysql8, use the cracked version of navicat It keeps reporting an error when connecting, as shown in the figure:

What should I do if navicat reports error 1251 when connecting to mysql?

2. Searching the Internet for the reason found that the encryption rule in versions before mysql8 was mysql_native_password, but after mysql8, the encryption rule is caching_sha2_password.

Related recommendations: "Navicat for mysql graphic tutorial"

There are two ways to solve the problem, one is to upgrade the navicat driver; the other is to change the mysql user The login password encryption rule is restored to mysql_native_password. Since I am using a cracked version of navicat, I can only use the second method to solve it.

3. First run cmd as administrator, and then use the command to enter mysql.

What should I do if navicat reports error 1251 when connecting to mysql?

#Then enter the root password you set when you installed mysql to enter. The interface after entering is as follows:

What should I do if navicat reports error 1251 when connecting to mysql?

Note: If you enter mysql -u root -p, cmd prompts that mysql is not an internal or external command, nor is it an operable program or Batch file, it means that you did not add the path of mysql to the environment variable PATH after installing mysql before. This method is suggested at the end of the article;

4. Then change the encryption method in mysql first. The instructions are as follows:

ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER;
Copy after login

5. Then change the password. Since the encryption rules have changed, you need to re- Set the password;

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '新密码';
Copy after login

6. Finally, refresh the database;

FLUSH PRIVILEGES;
Copy after login

Finally, write down how to add the path to mysql in the environment variable PATH;

1. win r-->services.msc-->Right-click the mysql service-->Properties-->Find the executable path and copy it;

2. Right-click "My Computer"- ->Properties-->Advanced System Settings-->Environment Variables-->System Variables-->PATH-->Edit-->New-->"Executable Path" above, as the picture shows:

What should I do if navicat reports error 1251 when connecting to mysql?

What should I do if navicat reports error 1251 when connecting to mysql?

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

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

MySQL: Simple Concepts for Easy Learning MySQL: Simple Concepts for Easy Learning Apr 10, 2025 am 09:29 AM

MySQL is an open source relational database management system. 1) Create database and tables: Use the CREATEDATABASE and CREATETABLE commands. 2) Basic operations: INSERT, UPDATE, DELETE and SELECT. 3) Advanced operations: JOIN, subquery and transaction processing. 4) Debugging skills: Check syntax, data type and permissions. 5) Optimization suggestions: Use indexes, avoid SELECT* and use transactions.

MySQL and SQL: Essential Skills for Developers MySQL and SQL: Essential Skills for Developers Apr 10, 2025 am 09:30 AM

MySQL and SQL are essential skills for developers. 1.MySQL is an open source relational database management system, and SQL is the standard language used to manage and operate databases. 2.MySQL supports multiple storage engines through efficient data storage and retrieval functions, and SQL completes complex data operations through simple statements. 3. Examples of usage include basic queries and advanced queries, such as filtering and sorting by condition. 4. Common errors include syntax errors and performance issues, which can be optimized by checking SQL statements and using EXPLAIN commands. 5. Performance optimization techniques include using indexes, avoiding full table scanning, optimizing JOIN operations and improving code readability.

How to open phpmyadmin How to open phpmyadmin Apr 10, 2025 pm 10:51 PM

You can open phpMyAdmin through the following steps: 1. Log in to the website control panel; 2. Find and click the phpMyAdmin icon; 3. Enter MySQL credentials; 4. Click "Login".

How to use the replacement function of navicat How to use the replacement function of navicat Apr 09, 2025 am 09:15 AM

Navicat's replacement feature allows you to find and replace text in database objects. You can use this feature by right-clicking on the object and selecting Replace, enter the text you want to find and replace in the pop-up dialog box and configure options such as Find/Replace Range, Case Sensitivity, and Regular Expressions. By selecting the Replace button, you can find and replace text and configure options as needed to avoid unexpected changes.

What is the difference between syntax for adding columns in different database systems What is the difference between syntax for adding columns in different database systems Apr 09, 2025 pm 02:15 PM

不同数据库系统添加列的语法为:MySQL:ALTER TABLE table_name ADD column_name data_type;PostgreSQL:ALTER TABLE table_name ADD COLUMN column_name data_type;Oracle:ALTER TABLE table_name ADD (column_name data_type);SQL Server:ALTER TABLE table_name ADD column_name data_

What to do if the error is running sql file in navicat What to do if the error is running sql file in navicat Apr 09, 2025 am 09:09 AM

To resolve errors when Navicat runs SQL files, follow these steps: 1. Check for SQL syntax errors; 2. Make sure the database connection is established; 3. Check file encoding; 4. Adjust server settings; 5. Check temporary space; 6. Disable certain plugins; 7. Contact Navicat Support if necessary.

How to recover data after SQL deletes rows How to recover data after SQL deletes rows Apr 09, 2025 pm 12:21 PM

Recovering deleted rows directly from the database is usually impossible unless there is a backup or transaction rollback mechanism. Key point: Transaction rollback: Execute ROLLBACK before the transaction is committed to recover data. Backup: Regular backup of the database can be used to quickly restore data. Database snapshot: You can create a read-only copy of the database and restore the data after the data is deleted accidentally. Use DELETE statement with caution: Check the conditions carefully to avoid accidentally deleting data. Use the WHERE clause: explicitly specify the data to be deleted. Use the test environment: Test before performing a DELETE operation.

Will SQL delete row trigger transactions? Will SQL delete row trigger transactions? Apr 09, 2025 pm 12:03 PM

Whether the SQL delete row triggers a transaction depends on: 1. The database system (some automatically commits, no transaction is required); 2. Session settings (auto commits automatically manually can be turned on or off); 3. Whether the transaction is explicitly opened (best practices to ensure data consistency).

See all articles