postgres-intro Flashcards
What is PostgreSQL and what are some alternative relational databases?
It is a relational database that stores information and relates that information to other groups of information through tables. MySQL and SQL Server by Microsoft.
What are some advantages of learning a relational database?
They have data integrity and make data corruption as unlikely as possible. Learning SQL is a transferrable skill that allows you to use most other relational databases.
What is one way to see if PostgreSQL is running?
sudo service postgresql status
What is sudo?
elevates the user to admin status in the CLI environment.
What is the admin acc in linux?
root, and to get there you type sudo su to make yourself root.
Why must we use sudo to access the status of postgresql?
Admin privileges are required to access the postgresql service database.
How do you send a command to get a list of the databases in postgresql?
psql -c ā\lā
How do you connect to a particular database in postgresql?
psql database_name or in our environment to connect to the dev database just enter psql