‘Host’ is not allowed to  connect to this mysql server

        mysql 数据库不允许远程连接

 

方法一:修改 host 表

       进入mysql数据库,选择mysql 

mysql> use mysql;

   选择 host 表

mysql> select host from user;

   更新 host, 然后退出。

mysql> update user set host = '%' where user='root';

    重启数据库, 完成。

# service mysqld restart

    

 

 --------------  打赏码  --------------------------------    

‘Host’ is not allowed to  connect to this mysql server

 

相关文章:

  • 2022-01-10
  • 2021-09-27
  • 2021-10-24
  • 2021-08-29
  • 2021-06-17
  • 2021-08-02
  • 2021-06-11
  • 2022-12-23
猜你喜欢
  • 2021-08-04
  • 2022-12-23
  • 2022-12-23
  • 2021-11-12
  • 2021-05-11
  • 2021-04-12
相关资源
相似解决方案