没有合适的资源?快使用搜索试试~ 我知道了~
Host 主机名 is not allowed to connect the mysql server
21 下载量 31 浏览量
2021-01-07
08:54:29
上传
评论 2
收藏 30KB PDF 举报
温馨提示
试读
1页
在服务器中安装选择server only 时使用navicat for mysql远程链接报错 Host 主机名 is not allowed to connect the mysql server 原因:没有授权远程访问mysql 解决方法: cmd 中运行mysql -u root -p(如果报mysql 不是内部或外部命令,找到安装mysql对应的bin文件夹运行mysql.exe,如果闪退,在cmd中运行 cd 路径/bin,在运行) use mysql; select host from user where user=’root’; 执行update user set
资源推荐
资源详情
资源评论
Host 主机名主机名 is not allowed to connect the mysql server
在服务器中安装选择server only 时使用navicat for mysql远程链接报错
Host 主机名 is not allowed to connect the mysql server
原因:没有授权远程访问mysql
解决方法:
cmd 中运行mysql -u root -p(如果报mysql 不是内部或外部命令,找到安装mysql对应的bin文件夹运行mysql.exe,如果闪
退,在cmd中运行 cd 路径/bin,在运行)
use mysql;
select host from user where user=’root’;
执行update user set host = ‘%’ where user =’root’将Host设置为通配符%。(执行此语句可能报错,不用理会,继续执行就可
以)
Host修改完成后记得执行flush privilegs使配置立即生效。
Host设置了“%”后便可以允许远程访问。
作者:寒冰的暖
资源评论
weixin_38599712
- 粉丝: 8
- 资源: 860
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功