avishekdr
avishekdr

Reputation: 1068

How to import local .sql file to pythonanywhere database?

I have an application deployed in pythonanywhere everything is running fine till now. Now I want to connect my app with the database as my application needs to interact with it. My .sql file is stored in my computer. How can I import it to the project's database in the pythonanywhere server ?

I have tried connecting that database using MySQL Workbench so that I can import from there but Workbench wasn't able to connect to that server.

Upvotes: 1

Views: 1347

Answers (1)

Filip
Filip

Reputation: 676

There are two helpful instructions on PythonAnywhere, one about Backing up (and restoring) MySQL databases other about accessing your MySQL database from outside PythonAnywhere (you can do it using ssh tunnel).

Upvotes: 1

Related Questions