Re: Problems connecting to PostgreSQL

2015-11-09 Thread Cecil Westerhof
On Sunday 8 Nov 2015 09:36 CET, Chris Warrick wrote: > On 8 November 2015 at 00:40, Cecil Westerhof wrote: >> I followed http://zetcode.com/db/postgresqlpythontutorial/. >> >> I used: >> sudo -u postgres createuser stressTest >> this create the role, but also gave: >> could

Re: Problems connecting to PostgreSQL

2015-11-08 Thread Chris Warrick
On 8 November 2015 at 00:40, Cecil Westerhof wrote: > I followed http://zetcode.com/db/postgresqlpythontutorial/. > > I used: > sudo -u postgres createuser stressTest > this create the role, but also gave: > could not change directory to "/root": Permission denied > and

Re: Problems connecting to PostgreSQL

2015-11-07 Thread Chris Angelico
On Sun, Nov 8, 2015 at 10:40 AM, Cecil Westerhof wrote: > I used: > sudo -u postgres createuser stressTest > this create the role, but also gave: > could not change directory to "/root": Permission denied > and I did not get the questions. > You might need to become

Problems connecting to PostgreSQL

2015-11-07 Thread Cecil Westerhof
I followed http://zetcode.com/db/postgresqlpythontutorial/. I used: sudo -u postgres createuser stressTest this create the role, but also gave: could not change directory to "/root": Permission denied and I did not get the questions. Then I used: sudo -u postgres createdb stressTest