• 周六. 10 月 5th, 2024

5G编程聚合网

5G时代下一个聚合的编程学习网

热门标签

Navicat reports 1251 or 2059 errors — the solution for Linux remote deployment is’% ‘(all IP can a

King Wang

1 月 3, 2022

The cause of the problem

    stay navicat link mysql8 The reason that later versions appear is in mysql8 In previous versions, the encryption rule was mysql_native_password,

And in the mysql8 The later encryption rules are caching_sha2_password.

 

There are two ways to solve this problem ,

One is updating navicat Drive to solve this problem ,

One is to mysql The encryption rule for user login is modified to mysql_native_password. This article uses the second way .
 

 

 

Solution

 

ALTER USER ‘root’@’%’ IDENTIFIED BY ‘112233’ PASSWORD EXPIRE NEVER;

ALTER USER ‘root’@’%’ IDENTIFIED WITH mysql_native_password BY ‘112233’;

 FLUSH PRIVILEGES;

‘root’ Self defined user name ,

‘%’ It means that the user is open to IP,

It can be ‘localhost'( Local access only , amount to 127.0.0.1), It can be specific ‘*.*.*.*'( Specific IP), It can also be ‘%'( all IP You can visit ).

‘password’ It’s the authentication password you want to use .

 

 

 

yes ‘%'( all IP You can visit )`

 

 

发表回复