Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

SQL

SQL scripts that I use in my personal projects.


Prerequisites

You must have installed a database in your machine.


Installing PostgreSQL

Update your system

sudo apt update
sudo apt -y upgrade

Install PostgreSQL database server

sudo apt install postgresql postgresql-client

Check if server is running

The service is automatically started upon installation, you can confirm if it is running with the command:

systemctl status postgresql.service

Update PostgreSQL admin user's password

sudo su - postgres
psql -c "alter user postgres with password 'your_password'"

Try creating a test database and user

createuser dbuser
createdb testdb -O dbuser
psql testdb
alter user dbuser with password 'StrongPassword';
\q

List created databases

psql -l

References

PostgreSQL installation

https://computingforgeeks.com/installing-postgresql-database-server-on-ubuntu/

About

sql scripts that I use in my personal projects

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages