Forums

I cannot connect to MySQL database

Hello everyone! I have deployed a python project on pythonanywhere that uses MySQL on localhost, as database. When I try to access mywebsite, the following error is being thrown:

OperationalError at /
(2003, "Can't connect to MySQL server on '127.0.0.1' (111)")

From what I read, if you have a beginner account, you cannot use your Database from your local computer. The problem is that I have no idea how to send all the data I have from my database, to python anywhere. I have created a database on the website, but everything stopped there. Can somebody help me with some advises/tutorials etc?

Thank you in advance!

You need to use the same workflow and commands as with backup https://help.pythonanywhere.com/pages/MySQLBackupRestore/