使用navicat连接centos7中的mysqlchu会出现一些错误,下面整理两个错误

出现1130错误

update user set host = ‘%’ where user = ‘root’;更改一下
select host, user from user;查看是否更改成功;
flush privileges;刷新
使用navicat进行连接测试

出现1251错误

select host,user,plugin,authentication_string from mysql.user;
使用navicat连接centos7中mysql出现的问题host为 % 表示不限制ip localhost表示本机使用 plugin非mysql_native_password 则需要修改密码

alter user ‘root’@’%’ identified with mysql_native_password by ‘newpassword’; 密码改为了newpassword
改密码后:再次查看一下是否修改成功
select host,user,plugin,authentication_string from mysql.user;
使用navicat连接centos7中mysql出现的问题

使用navicat连接测试:
使用navicat连接centos7中mysql出现的问题
其中主机名用的ip地址是centos7中ens33 的inet,密码为newpassword

相关文章:

  • 2021-07-13
  • 2021-11-22
  • 2022-12-23
  • 2021-11-29
  • 2021-11-01
  • 2021-09-03
猜你喜欢
  • 2021-12-31
  • 2021-09-25
  • 2021-12-01
  • 2021-09-21
  • 2021-07-03
  • 2022-12-23
  • 2021-06-07
相关资源
相似解决方案