Forums

Can't access MySQL db

I am probably missing understanding of something very basic.

I clicked on the "database" tab, wrote a new password, created a db.

When trying to "migrate" the db from my local machine, an exception was thrown.

I tried to connect from command line and I received an error:

$mysql -u clown -h clown.mysql.pythonanywhere-services.com --port 3306 -p
Enter password: 
ERROR 2003 (HY000): Can't connect to MySQL server on 'clown.mysql.pythonanywhere-services.com' (110)

You need to have a paid PA account for this, and use SSH Tunnelling:

https://help.pythonanywhere.com/pages/SSHTunnelling/

HTH

Jim

Thank you! :)