所有示例均在gihub(ssh_base)中====>https://github.com/chengyangyang

Mysql is not allowed to connect mysql server

 

  1.     mysql -u root -p

  2.    select host from user where user='root';      //可以看到当前主机配置信息为localhost.

  3. update user set host = '%' where user ='root'     如果2的列表不唯一,就需要后面添加条件

  4.  FLUSH PRIVILEGES;       刷新权限列表

posted @ 2019-01-17 16:55  ☞书香门第☜  阅读(179)  评论(0编辑  收藏  举报
http://count.knowsky.com/count1/count.asp?id=434520&sx=1&ys=64"