1. 程式人生 > >Host is not allowed to connect to this MySQL server解決方法

Host is not allowed to connect to this MySQL server解決方法

his allow body ros root all post ges soft

  1. 在裝有MySQL的機器上登錄MySQL mysql -u root -p密碼
  2. 執行use mysql;
  3. 執行update user set host = ‘%‘ where user = ‘root‘;這一句執行完可能會報錯,不用管它。
  4. 執行FLUSH PRIVILEGES;

Host is not allowed to connect to this MySQL server解決方法