Mysql 连接出现 is not allowed to connect to this MySQL Server错误提示 打开 mysql8.0 Command Line Client 1. 打开远
Mysql 连接出现 is not allowed to connect to this MySQL Server错误提示
mysql> use mysql;mysql> update user set user.Host=’%’ where user.User=‘root’;mysql> flush privileges;mysql> select host,user from user;
注:将Host设置为‘%’表示任意IP都能连接MySQL,也可以将‘%’改为指定ip
如果有关闭远程连接的需求,其实我们只需要Host恢复成默认设置(只能本地连接)即可,如下:
mysql> use mysql;mysql> update user set user.Host=‘localhost’ where user.User=‘root’;mysql> flush privileges;mysql> select host,user from user;
来源地址:https://blog.csdn.net/yi_zongjishi/article/details/129815465
--结束END--
本文标题: MySql 8.0 设置允许远程登录授权
本文链接: https://www.lsjlt.com/news/441877.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-05-12
2024-05-12
2024-05-12
2024-05-12
2024-05-12
2024-05-12
2024-05-12
2024-05-11
2024-05-11
2024-05-11
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0