Import mysql database from Local Computer #201
-
I am able to successfully log in to my cpanel server where my database is located and dump them in my local computer. The issue arises with import database function in planetscale. No matter what I do, it won't connect to the database. I think there must be something in the pscale shell by which we can import database from local computer. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey @Bishalsingh, Apologies for the slow response! This seems to have slipped through the cracks. If you have a local dump, the easiest method to get your data imported to PlanetScale is through our CLI tool In the below example, I'm opening a proxy connection through
All you would likely need to add is an input redirect with your dump file, like so: Cheers, |
Beta Was this translation helpful? Give feedback.
Hey @Bishalsingh,
Apologies for the slow response! This seems to have slipped through the cracks.
If you have a local dump, the easiest method to get your data imported to PlanetScale is through our CLI tool
pscale
.In the below example, I'm opening a proxy connection through
pscale connect
to then connect to my PlanetScale database via the mysql client. Also note that I have used&
to runpscale connect
in the background so that I could carry on from within the same terminal session. Later I have usedfg %1
to bring the process back to the front and hitCTRL+C
to terminate it.