mysql.sock

OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)")

OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)") Question: when connecting to mysql database in Django ,I get the error. I’m sure mysql server is running. /var/run/mysqld/mysqld.sock doesn’t exist. When I run $ find / -name *.sock -type s, I only get /tmp/mysql.sock and some other irrelevant output. I added socket …

Total answers: 5