登陆进去mysql终端
use mysql;
update user set host = '%' where user = 'root'; (使mysql root用户可以连接上任意的ip地址)
FLUSH PRIVILEGES
登陆进去mysql终端
use mysql;
update user set host = '%' where user = 'root'; (使mysql root用户可以连接上任意的ip地址)
FLUSH PRIVILEGES

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