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

前端 未结 5 710
深忆病人
深忆病人 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:25

    I ran into this problem when installing MySQL 8 on a Windows 10 machine. Most of the solutions found on the internet are setting skip-name-resolve which never worked for me. At last I found out this one which worked for me:

    netsh winsock reset

    Then reboot the computer. Also try set

    127.0.0.1 localhost

    in %windir%\System32\drivers\etc\hosts if needed.

提交回复
热议问题