Advertisement
--DSR--

F: #optraining --forum--postgresql

May 8th, 2017
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. Hello again, now i will teach you how to install PostgreSQL in your debian OS.
  2.  
  3. But first i start with what PostgreSQL is and what's used for.
  4. Relational databases are the cornerstone of data organization for a multitude of needs.
  5. They power everything from online shopping to rocket launches.
  6. A database that is both venerable but very much still in the game is PostgreSQL. PostgreSQL follows most of the SQL standard,
  7.  
  8. So now you have a background what is it used for, now lets us install it on your DEBIAN OS,
  9. Open up terminal and
  10. sudo apt-get update && sudo apt-get install postgresql postgresql-client
  11. To check if the installation was successfully you can run "ps -ef | grep postgre"
  12.  
  13. now for accessing what you just installd you run
  14. su - postgres
  15. You now should be logged as postgres. To start the PostgreSQL console type "psql"
  16.  
  17. if you successful you get
  18. "psql (9.4.2)
  19. Type "help" for help.
  20.  
  21. postgres=#"
  22.  
  23. To exit the psql console just use the command \q.
  24.  
  25.  
  26.  
  27.  
  28.  
  29. BY LiTeRs50
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement