I have a python script which is designed to add things to a MYSQL database. The error I get is this:
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock
I've checked the credentials of the database in the settings and they are correct and I can connect to the database via Sequel.
I installed the following packages:
apt-get -y install build-essential python-dev libxml2-dev libxslt1-dev python-pip libmysqlclient-dev
pip install -U MySQL-python
I'm not really sure how to diagnose this. Is it looking for the mysqld.sock in the right place and it isn't there, or should it instead be looking for it in a different location.
Any help or advice would be much appreciated so I can move forward.