"Host 'admin-PC' is not allowed to connect to this MySQLserver"
发布日期:2021-10-03 22:22:06 浏览次数:8 分类:技术文章

本文共 211 字,大约阅读时间需要 1 分钟。

问题:"Host 'admin-PC' is not allowed to connect to this MySQLserver"   (其中,admin-PC为我的机器名)

原因:安装MySQL时没有勾选“Enable root access from remote machines”

解决办法:执行命令

[sql] 
  1. GRANT  ALL  ON  *.*  TO  root@"%"  IDENTIFIED  BY  "你自己的密码"  

转载地址:https://blog.csdn.net/lc547913923/article/details/43564187 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:Httpservlet cannot be resolved to a type的原因与解决方法
下一篇:An internal error occurred during: "Launching web on MyEclipse Tomcat"

发表评论

最新留言

关注你微信了!
[***.104.42.241]2024年04月11日 17时42分02秒