mysql数据库连接报错ERRoR1130(HY000)

## 系统环境

MYSQL5.6.46

虚拟机IP:192.168.2.127

## 报错

## 更改数据库配置,允许远程连接

1、mysql -u root -p root # 使用localhost本地连接数据库

2、use mysql;

3、update user set host = '%' where user = 'root';

4、flush privileges;

 解决

 

原文地址:https://www.cnblogs.com/Gouwa/p/15570693.html