代码改变世界

Python MySQLdb连接报2003错误原因

2017-06-13 14:41  linkxu  阅读(463)  评论(0编辑  收藏  举报

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

解决办法:

使用:127.0.0.1代替:localhost。