navicat连接mysql报错1251解决方案
原因是MySQL8.0版本的加密方式和MySQL5.0的不一样,连接会报错。
1.先通过命令行进入mysql的root账户:
C:\Windows\system32> mysql -uroot -p
2.更改加密方式:
ALTER
USER
‘root‘
@
‘localhost‘
IDENTIFIED
BY
‘password‘
PASSWORD
EXPIRE NEVER;
3.更改密码:root1234为新密码
ALTER
USER
‘root‘
@
‘localhost‘
IDENTIFIED
WITH
mysql_native_password
BY
‘root1234‘
;
4.刷新:
FLUSH
PRIVILEGES
;
相关推荐
xjd0 2020-09-10
CoderToy 2020-11-16
emmm00 2020-11-17
王艺强 2020-11-17
ribavnu 2020-11-16
bianruifeng 2020-11-16
wangshuangbao 2020-11-13
苏康申 2020-11-13
vivenwan 2020-11-13
moyekongling 2020-11-13
云中舞步 2020-11-12
要啥自行车一把梭 2020-11-12
aydh 2020-11-12
kuwoyinlehe 2020-11-12
minerk 2020-11-12
vitasfly 2020-11-12
jazywoo在路上 2020-11-11
敏敏张 2020-11-11