Created
October 20, 2015 08:15
-
-
Save the-teacher/8922aa69f1c44459e8d3 to your computer and use it in GitHub Desktop.
PSQL anti-crysis
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\du | |
CREATE USER crysis WITH PASSWORD 'qwerty12345'; | |
ALTER ROLE crysis SUPERUSER CREATEDB; | |
GRANT ALL PRIVILEGES ON DATABASE backend_production TO crysis; | |
pg_dump --format=custom --host=localhost --username=crysis --file=backend_production.2015_10_20_10_58.pg.sql backend_production |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment