OperationalError: (2003, "Can't connect to MySQL server on 'localhost' (10061)")
解決方案:python
db = MySQLdb.connect(host="127.0.0.1",user="db_username",passwd="db_password",db="db_name")
這是由於在windows上面必須用127.0.0.1指向本地主機,若是用ubantu就沒有問題。windows