how to fix (2002, “Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)”) on ec2 bitnami?

被刻印的时光 ゝ 提交于 2019-12-03 20:31:20
Madhur Rampal

Set the HOST to

127.0.0.1

in settings.py and make sure MySQL server is running.

In a BitNami AMI the MySQL socket is /opt/bitnami/mysql/tmp/mysql.sock

Check the official BitNami documentation here: http://wiki.bitnami.org/Components/MySQL#What_is_the_default_configuration.3f

You should change the HOST setting accordingly in your settings file: https://docs.djangoproject.com/en/1.3/ref/settings/#host

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!