Python MySQLdb连接报2003错误原因

经测试,本地连接使用:localhost会报2003错误。

解决办法:

使用:127.0.0.1代替:localhost。

原文地址:https://www.cnblogs.com/linkxu1989/p/7001132.html