Quantcast
Channel: Other – Michał Szałkowski – Blog
Viewing all articles
Browse latest Browse all 125

Ubuntu postgresql from scratch

$
0
0

Ubuntu 14 postgresql installation

sudo apt-get update
sudo apt-get install postgresql postgresql-contrib

Go to console

sudo -i -u postgres
psql

Example db with one table

CREATE DATABASE btbw;
\connect btbw

CREATE SCHEMA btbw_penetration;

CREATE USER penetration WITH PASSWORD '123456' NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE;

ALTER USER "penetration" WITH PASSWORD 'penetration';

GRANT ALL ON SCHEMA btbw_penetration TO penetration;
GRANT ALL PRIVILEGES ON DATABASE btbw TO penetration;


Viewing all articles
Browse latest Browse all 125

Trending Articles