I have a MySQL database on another web hosting service. I would like to connect my django app on pythonanywhere.com to that MySQL database. I was able to create a ssh connection from pythonanwhere to my remote database, but I can't seem to have django recognize that database. After opening the ssh connection - I opened a new bash console and tried running python manage.py inspectdb. It produced the following errror.
django.db.utils.OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)")
Is this even possible. Am I doing something wrong?