On ubuntu you need to so the following to get access as 'postgres' (aka root):
sudo -u postgres psql postgres
Create dbase and user:
create database blah;
create user meblah with password 'blah';
grant all on database blah to meblah;
General stuff
psql -U blah -h localhost
\c databasename
\d
select * from tablename;
\q
No comments:
Post a Comment