Skip to content

Instantly share code, notes, and snippets.

@rajasimon
Last active August 29, 2015 14:10
Show Gist options
  • Save rajasimon/4c6e2b7219d814991bc3 to your computer and use it in GitHub Desktop.
Save rajasimon/4c6e2b7219d814991bc3 to your computer and use it in GitHub Desktop.
postgres psql
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