问题:"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中出现的“Host 'admin-PC' is not allowed to connect to this MySQL server”错误。主要原因是安装MySQL时未启用远程访问权限。通过执行特定的SQL命令可以授予root用户从任何主机连接到MySQL服务器的权限。
问题:"Host 'admin-PC' is not allowed to connect to this MySQLserver" (其中,admin-PC为我的机器名)
原因:安装MySQL时没有勾选“Enable root access from remote machines”
解决办法:执行命令
314
4025

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