mysql本地域名地址连接报错
报错如下:
Caused by: java.sql.SQLException: null, message from server: "Host 'DESKTOP-M32EKRF' is not allowed
没有授权远程连接,导致使用本地域名地址连接不上(192.168.xxx.xxx),localhost就可以......
执行以下操作解决:
mysql> use mysql;
mysql> select user, host from user;
mysql> update user set host="%" where user=“root”;
mysql> flush privileges;
mysql> quit;
连接成功