[Minor] documenting how to run tests by adding user for postgresql
This commit is contained in:
parent
3b8444894a
commit
7c0e64808d
27
README.md
27
README.md
|
@ -13,11 +13,28 @@ Setup
|
||||||
$ sudo -u postgres psql postgres
|
$ sudo -u postgres psql postgres
|
||||||
postgres=# \password postgres
|
postgres=# \password postgres
|
||||||
3. Create the user and DB:
|
3. Create the user and DB:
|
||||||
$ sudo su - postgres
|
$ sudo -u postgres psql
|
||||||
postgres=# create user testUser with password 'test';
|
$ postgres=#
|
||||||
postgres=# create database testdb;
|
create user testUser with password 'test';
|
||||||
postgres=# GRANT ALL PRIVILEGES ON DATABASE testdb to testuser;
|
create database testdb;
|
||||||
postgres=# GRANT CONNECT ON DATABASE testdb TO testuser ;
|
GRANT ALL PRIVILEGES ON DATABASE testdb to testuser;
|
||||||
|
GRANT CONNECT ON DATABASE testdb TO testuser ;
|
||||||
|
|
||||||
|
# For tests:
|
||||||
|
create user testUser with password 'test';
|
||||||
|
create database testdb;
|
||||||
|
GRANT ALL PRIVILEGES ON DATABASE testdb to testuser;
|
||||||
|
GRANT CONNECT ON DATABASE testdb TO testuser ;
|
||||||
|
|
||||||
|
create user testuser1 with password 'test';
|
||||||
|
create database testdb1;
|
||||||
|
GRANT ALL PRIVILEGES ON DATABASE testdb1 to testuser1;
|
||||||
|
GRANT CONNECT ON DATABASE testdb1 TO testuser1 ;
|
||||||
|
|
||||||
|
create user testuser2 with password 'test';
|
||||||
|
create database testdb2;
|
||||||
|
GRANT ALL PRIVILEGES ON DATABASE testdb2 to testuser2;
|
||||||
|
GRANT CONNECT ON DATABASE testdb2 TO testuser2 ;
|
||||||
|
|
||||||
4. Added new component, setting properties for PostgreSQL DB:
|
4. Added new component, setting properties for PostgreSQL DB:
|
||||||
<Component>
|
<Component>
|
||||||
|
|
Loading…
Reference in New Issue