自学内容网 自学内容网

mysql 开启外网ip访问

1、查询当前所有用户的host 等信息

select host, user, authentication_string, plugin from user; 

2、 修改

 update user set host='%' where user='root'; 

3、 刷新策略

flush privileges;

4、 更改加密方式,改为:mysql_native_password

ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'password'; 

5、 刷新策略


原文地址:https://blog.csdn.net/a690392431/article/details/137665738

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!