问题:"Host 'admin-PC' is not allowed to connect to this MySQLserver" (其中,admin-PC为我的机器名)
原因:安装MySQL时没有勾选“Enable root access from remote machines”
解决办法:执行命令
- GRANT ALL ON *.* TO root@"%" IDENTIFIED BY "你自己的密码"
本文详细解释了在安装MySQL时未勾选‘Enablerootaccessfromremotemachines’选项导致无法从远程机器连接的问题,并提供了通过执行特定SQL命令解决此问题的方法。
问题:"Host 'admin-PC' is not allowed to connect to this MySQLserver" (其中,admin-PC为我的机器名)
原因:安装MySQL时没有勾选“Enable root access from remote machines”
解决办法:执行命令
4028

被折叠的 条评论
为什么被折叠?