Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

Access PostgreSQL PSQl with sudo

sudo -u postgres psql

// Create New Database 
CREATE DATABASE db_name;

// Create New User
CREATE USER username WITH PASSWORD password;

// Grant Admin Access ?
GRANT ALL PRIVILEGES ON DATABASE db_name TO username;
 
PREVIOUS NEXT
Tagged: #Access #PostgreSQL #PSQl #sudo
ADD COMMENT
Topic
Name
6+4 =