小程序开发遇到的问题

时间:2018-10-08 15:53:47   收藏:0   阅读:201

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

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!