Forums

New to Django: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock

Hi,

I uploaded my project on Python Anywhere following the same structure that I have on my local machine. While trying to run my app i get this error: "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock"

Can anyone give me some pointers??

I have only changed the settings.py file to use the MySQL DB.. What other changes do i need to make..

Thanks and regards,

Abhishek

Have you created a database on the Databases tab? If you have, then you'll see the details that you need to connect to it on the page.