Saturday, July 25, 2015

PostgreSQL with Your Ruby on Rails Application on Ubuntu


// Run below commands on $ Prompt// --> Required

cd

ubuntu@ip-172-31-15-122:~$ sudo apt-get update

ubuntu@ip-172-31-15-122:~$ sudo apt-get install postgresql postgresql-contrib libpq-dev

ubuntu@ip-172-31-15-122:~$ sudo -u postgres createuser -s pguser1

ubuntu@ip-172-31-6-116:~$ sudo -u postgres psql
psql (9.3.6)
Type "help" for help.

postgres=# \password pguser1
Enter new password:
Enter it again:

\q

No comments:

Post a Comment

Gitlab Automation Project Showcase

My GitLab Projects Showcase 🚀 Welcome to my portfolio of GitLab projects. Each repository reflects my journey as an engineer, focusing...