Last active
January 6, 2019 00:33
-
-
Save hoangong/71704a528059c6856c18ae33896c0894 to your computer and use it in GitHub Desktop.
init postgres user and grant permission #postgres
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 -u postgres psql postgres | |
CREATE USER testuser WITH PASSWORD '123123'; | |
CREATE DATABASE testdb; | |
GRANT ALL PRIVILEGES ON DATABASE testdb to testuser; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment