“Host ‘xxxx‘ is not allowed to connect to this MySQL server“
问题描述:
windows下装好mysql后,修改本机名字后,报 Host ‘*’ not allowed connect错误
解决方法:
1.打开本地mysql
修改mysql权限表update user set host='%' where user='root';
先查看原先数据库的权限信息,发现只有172.17.37.51 host具有root权限,我们需要改成所有hostuse mysql;
select host,user from user;
直接在当前状态下 刷新一下,连接就
原创
2021-01-23 13:23:59 ·
195 阅读 ·
0 评论