Skip to content

Import mysql database from Local Computer #201

Discussion options

You must be logged in to vote

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 run pscale connect in the background so that I could carry on from within the same terminal session. Later I have used fg %1 to bring the process back to the front and hit CTRL+C to terminate it.

✦ ❯ pscale connect DATABASE BRANCH &
[1] 63208
​
✦2 ❯ Tried address 127.0.0.1:3306, but it's already in use. Pic…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@sbbu
Comment options

@jgreet
Comment options

Answer selected by fooforge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants