Created
March 5, 2020 12:51
-
-
Save codewec/183afcdf7fe2d4a84a8e1e0617b72974 to your computer and use it in GitHub Desktop.
Install PostgreSQL Ubuntu 18.04 and create user with database
This file contains hidden or 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 | |
| sudo -u postgres psql | |
| CREATE DATABASE test_database; | |
| CREATE USER test_user WITH password 'qwerty'; | |
| GRANT ALL ON DATABASE test_database TO test_user; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment