最新消息: USBMI致力于为网友们分享Windows、安卓、IOS等主流手机系统相关的资讯以及评测、同时提供相关教程、应用、软件下载等服务。

SQLyog连接linux数据库问题

互联网 admin 5浏览 0评论

SQLyog连接linux数据库问题

使用SQLyog连接数据库时报错:

error number:   2003,  Can't no connet to MySQL server on 192.168.186.X

systemctl stop firewalld    //关闭防火墙
systemctl disable firewalld

error number:1130,Host is not allowed to connect to this MySQL server

解决办法:

update user set host='%' where user='root'  //需要配置允许远程连接flush privileges;

 

2509 plugin caching_sha2_password could not be loaded

解决办法:

ALTER USER 'root'@'localhost' IDENTIFIED BY 'ABCabc123!' PASSWORD EXPIRE NEVER;  //更改加密方式//如果报错ERROR 1396 (HY000): Operation ALTER USER failed for 'root'@'localhost' 
//因为你设置了update user set host='%' where user='root'请改为'root'@'%' 
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'ABCabc123!'; //更新用户密码FLUSH PRIVILEGES;

 

SQLyog连接linux数据库问题

使用SQLyog连接数据库时报错:

error number:   2003,  Can't no connet to MySQL server on 192.168.186.X

systemctl stop firewalld    //关闭防火墙
systemctl disable firewalld

error number:1130,Host is not allowed to connect to this MySQL server

解决办法:

update user set host='%' where user='root'  //需要配置允许远程连接flush privileges;

 

2509 plugin caching_sha2_password could not be loaded

解决办法:

ALTER USER 'root'@'localhost' IDENTIFIED BY 'ABCabc123!' PASSWORD EXPIRE NEVER;  //更改加密方式//如果报错ERROR 1396 (HY000): Operation ALTER USER failed for 'root'@'localhost' 
//因为你设置了update user set host='%' where user='root'请改为'root'@'%' 
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'ABCabc123!'; //更新用户密码FLUSH PRIVILEGES;

 

与本文相关的文章

发布评论

评论列表 (0)

  1. 暂无评论