将
1
MySQLdb.connect(host='localhost', port=3306, user='temp', passwd='159357', db='test')
中的localhost改为127.0.0.1