sqlalchemy - MySQL 1042, "Can't get hostname for your address"
ringa_lee
ringa_lee 2017-04-17 12:06:38
0
5
590
ringa_lee
ringa_lee

ringa_lee

reply all(5)
伊谢尔伦

解决办法

After two days of tossing around, modifying configuration files, uninstalling and reinstalling, I finally switched to Ubuntu and couldn’t bear the slowness and lag of the virtual machine. Finally:

Complete uninstall

  • 命令行还能用的话,备份数据库
  • Control panel related to uninstalling MySQL, delete installation-related folders, similar to C:Program FilesMySQL, C:ProgramDataMySQL (ProgramData is a hidden folder), C:UsersSkyAppDataRoamingMySQL or Oracle
  • Delete registry-related directories
    HKEY_LOCAL_MACHINESYSTEMControlSet001ServicesEventlogApplicationMySQ
    HKEY_LOCAL_MACHINESYSTEMControlSet002ServicesEventlogApplicationMySQL
    HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesEventlogApplicationMySQL (if you are not worried, you can also search and delete related ones)

  • In short, all relevant ones have been deleted and restarted

InstallationMySQL5.5

Yes, MySQL5.5.10, the installation is complete and the MySQL-Front link is successful. I have wanted to install newer versions (5.6.22, 5.6.24, 5.7.7, etc.) countless times before, and I have completely uninstalled and reinstalled countless times, but I still get the same error and have the urge to smash the computer.

巴扎黑

This is a magical problem. Change the login identity of the MySQL service to the local system account. It works in personal testing

洪涛

Could it be that SQLAlchemy is written incorrectly? Can you please post your SQLAlchemy connection code?

刘奇

But the above error is prompted in CMD

Write 127.0.0.1 as localhost and try it and see what happens

Ty80

@RACION Very good, it works

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!