连接MySQL出现Host is not allowed to connect to this MySQL server 解决方法

.以下命令按顺序执行

代码如下(示例):

1):mysql -u root -p 这一步是连接数据库,输入密码(一般是原始密码)

2):use mysql;

3): update user set host = ‘%’ where user = ‘root’;

  1. : FLUSH PRIVILEGES;

猜你喜欢

转载自blog.csdn.net/xukaiqiang123/article/details/131133624