天天看點

日常問題---遠端連接配接Mysql伺服器時報錯:1130- Host xxx is not allowed to connect to this MariaDb server

問題:

        1130- Host xxx is not allowed to connect to this MariaDb server(1130-不允許主機xxx連接配接到此MySQL伺服器)

日常問題---遠端連接配接Mysql伺服器時報錯:1130- Host xxx is not allowed to connect to this MariaDb server

原因:

        權限問題,遠端用戶端被禁止連接配接Mysql伺服器。

解決:

        登入Mysql伺服器,執行下面指令,允許用戶端遠端連接配接。

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