-
-
Save rajasimon/4c6e2b7219d814991bc3 to your computer and use it in GitHub Desktop.
postgres psql
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
By default installation postgres have default password that is default system password | |
/etc/init.d/postgresql status | |
service postgresql status | |
sudo -u postgres psql | |
CREATE USER panasimon with PASSWORD 'password'; | |
create database panadb; | |
GRANT ALL PRIVILEGES ON DATABASE "panadb" to panasimon; | |
For changing the password | |
sudo -u postgres psql postgres | |
\password <password> | |
\connect webaccount | |
SELECT * FROM frontend_projects; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment