1.目前mysql 8以后的版本增加了新的密码验证方式,但是目前大多数第三方客户端不支持,所以建议使用原有的密码验证方式。

mac 本地安装mysql遇到的坑

2.java.sql.SQLException: null, message from server: "Host 'xxx' is not allowed to connect to this MySQL server"

是root用户对应的host不是远程对象,需要授权。

方法1:修改表结构

            mysql> use mysql;

            mysql> select user, host from user;

            mysql> update user set host = '%' where user = 'root';将root用户的host更改为%。

mac 本地安装mysql遇到的坑

 

相关文章:

  • 2021-08-05
  • 2021-12-04
  • 2021-07-06
  • 2021-10-21
  • 2021-04-20
  • 2021-04-01
  • 2021-08-12
猜你喜欢
  • 2021-06-01
  • 2022-12-23
  • 2021-06-26
  • 2021-09-21
  • 2021-10-11
  • 2022-01-18
  • 2021-06-27
相关资源
相似解决方案