小程序开发遇到的问题

1.Host is not allowed to connect to this MySQL server解决方法

  1. 在装有MySQL的机器上登录MySQL mysql -u root -p密码
  2. 执行use mysql;
  3. 执行update user set host = '%' where user = 'root';这一句执行完可能会报错,不用管它。
  4. 执行FLUSH PRIVILEGES;

参考:https://blog.csdn.net/qq_23689053/article/details/79138462

posted @ 2018-10-08 15:24  zph前端  阅读(199)  评论(0编辑  收藏  举报