- sudo apt-get install postgresql
- sudo apt-get install postgresql-contrib
- sudo apt-get install pgadmin3
To allow connection to postgres database from host computer these steps are necessary:
- In VirtualBox NAT Advanced settings add port forwarding 5432 -> 65432
- In guest start sudo vim /etc/postgresql/9.1/main/pg_hba.conf and add these lines
host all all 192.168.0.0/16 md5
host all all 10.0.0.0/8 md5 - sudo vim /etc/postgresql/9.1/main/postgresql.conf
listen_addresses = '*' - sudo -u postgres psql and execute
create user vagrant with password 'vagrant';
create database pentaho;
GRANT ALL PRIVILEGES ON DATABASE pentaho to vagrant;
alter user vagrant with superuser;
\c pentaho
CREATE SCHEMA repo;
CREATE SCHEMA target;
- In host pgadmin III create new connection
Name: local
Host: localhost
Port: 65432
Maintenance DB: pentaho
Username: vagrant
Password: vagrant
No comments:
Post a Comment