Sfoglia il codice sorgente

Add how-to connect postgre SQL database in CLI

DricomDragon 4 anni fa
parent
commit
ab30e50a98
1 ha cambiato i file con 8 aggiunte e 0 eliminazioni
  1. 8 0
      Guides/postgres.md

+ 8 - 0
Guides/postgres.md

@@ -2,6 +2,14 @@
 
 Tips for using Postgres SQL.
 
+## Use a database in a commandline
+
+```
+sudo service postgresql start ;
+sudo -u postgres psql <db name> ;
+sudo update-rc.d postgresql disable
+```
+
 ## Backup
 
 Create backup profile :