Created
February 14, 2017 12:51
-
-
Save damaya/5760bc8ef9793258b8e07a72b36f41ba to your computer and use it in GitHub Desktop.
Operaciones postgre
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
| 1. Log into postgre: sudo su - postgres | |
| 2. create db: createdb newdb | |
| 3. Inyect db psql worlddb < world.sql | |
| --- | |
| Ingres to specific db, specific user | |
| psql --username=awx --password --dbname=awx | |
| Dumb database | |
| pg_dump --username=awx --password --dbname=awx > /tmp/awx-tower.sql |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
IMPORTANTE: Cuando se vaya a inyectar una DB en un tower actualizado, se usa: