报错信息如下:

 

django.db.utils.OperationalError: (2003, "Can't connect to MySQL server on ‘127.0.0.1’)

 

 

检查发现原来是自己的sql没有启动

django.db.utils.OperationalError: (2003, "Can't connect to MySQL server on ‘127.0.0.1’)

 

 

启动mysql后,

 

django.db.utils.OperationalError: (2003, "Can't connect to MySQL server on ‘127.0.0.1’)