Forums

Connecting to MySQL from Remote Hangs - Paid Account

I am using the following from command line:

mysql -u username -h username.mysql.pythonanywhere-services.com -p

After entering password, nothing happens. I eventually have to ctrl-c to break out.

Where do you do it?

From a Linux VPS that I own.

You'll need to set up an SSH tunnel to access your MySQL DB from outside PythonAnywhere. This help page has the details. From a Linux VPS, you'd need to use the "Manual SSH tunnelling" option at the bottom of the page.