Skip to content

Instantly share code, notes, and snippets.

@shaikkhajaibrahim
Last active July 17, 2022 04:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shaikkhajaibrahim/f408b89b64683a21af5625b21c9e4fc2 to your computer and use it in GitHub Desktop.
Save shaikkhajaibrahim/f408b89b64683a21af5625b21c9e4fc2 to your computer and use it in GitHub Desktop.
https://www.digitalocean.com/community/tutorials/how-to-install-postgresql-on-ubuntu-20-04-quickstart
# login as sammy user
git clone https://github.com/morenoh149/postgresDBSamples.git
cd postgresDBSamples/adventureworks
sudo apt install unzip -y
unzip data.zip -d data # this will unzip the data into the directory 'data'
psql -c "CREATE DATABASE \"Adventureworks\";"
psql -d Adventureworks < install.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment