Created
March 17, 2020 20:23
-
-
Save yunusemredilber/fdf261d85abe3c30ce20356a38c748e0 to your computer and use it in GitHub Desktop.
Potgresql installation for Rails [Ubuntu based distros]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo apt update | |
$ sudo apt install postgresql postgresql-contrib libpq-dev | |
$ sudo -u postgres createuser --interactive | |
> Enter name of role to add: yunus # Current OS Username | |
> Shall the new role be a superuser? (y/n) y | |
## This should work :) | |
## If any error comes up, the link at the bottom might help | |
## https://gist.github.com/p1nox/4953113 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment