MySQL error: Can't get hostname from your ip address

前端 未结 5 713
深忆病人
深忆病人 2020-12-14 04:39

I use my remote MySQL database during long time.

But today I suddenly have found that I cannot connect to the database. I have got an error.

5条回答
  •  轮回少年
    2020-12-14 05:14

    Just add below in my.ini or my.cnf.

    [mysqld]
    
    skip-name-resolve 
    

    Linux:

    Otherwise, start MySQL server with the following flag:

    sudo service --skip-name-resolve
    

    For more information: http://dev.mysql.com/doc/refman/5.0/en/host-cache.html

提交回复
热议问题