Skip to content

Instantly share code, notes, and snippets.

@the-teacher
Created October 20, 2015 08:15
Show Gist options
  • Save the-teacher/8922aa69f1c44459e8d3 to your computer and use it in GitHub Desktop.
Save the-teacher/8922aa69f1c44459e8d3 to your computer and use it in GitHub Desktop.
PSQL anti-crysis
\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