Skip to content

How to save a copy of my database? #547

Answered by jgreet
TPassaro209 asked this question in Q&A
Discussion options

You must be logged in to vote

Read-only credentials

When creating a connection string you can assign it the "read-only" role allowing it to authenticate selects but not queries that update, insert, or delete rows. However, you probably couldn't make these credentials totally public since we'll automatically revoke credentials if they're discovered on the internet (e.g. here on GitHub). If you're creating and distributing a few read-only credentials privately though it might work.

Copying a database

There's no way to copy an entire database on PlanetScale to another database on PlanetScale other than dumping and restoring. I would recommend using the pscale db dump and pscale db restore-dump functionality in our comman…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mscoutermarsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants