Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Kishore Kumar Vaishnav kishorevaishnav

🎯
Focusing
View GitHub Profile
@kishorevaishnav
kishorevaishnav / gist:eea53fe1cca20b38934c
Last active Aug 29, 2015
Create DB, Add User, Grant Permission. - Postgres
View gist:eea53fe1cca20b38934c
--To Create the database & add user to that
CREATE DATABASE <dbname>;
CREATE USER <username>;
\password <username>
GRANT ALL PRIVILEGES ON DATABASE <dbname> TO <username>;
ALTER DATABASE <dbname> OWNER TO <username>;