You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While creating everycheese database as per the instruction on section 18.5, met with a role error and this could not be resolved on ubuntu 20.04 LTS using the troubleshooting tips given at the end of the book.
createdb everycheese
Possible Solutions
sudo in as postgres and give the role for your user (in my case it was 'ubuntu')
restart postgresql
run createdb everycheese
$ sudo -i -u postgres
postgres@ubuntuBox:~$ psql
postgres=# CREATE ROLE ubuntu WITH CREATEDB LOGIN;
CREATE ROLE
postgres=# \q
$ exit
$ logout
$ sudo service postgresql restart
$ sudo service postgresql status
$ createdb everycheese
The text was updated successfully, but these errors were encountered:
Location within the Book
Description
Installed postgres as per the link given -
wget --quiet -O- https://feld.to/pg12-ubuntu-installer | bash
This successfully installed postgresql 12
While creating everycheese database as per the instruction on section 18.5, met with a role error and this could not be resolved on ubuntu 20.04 LTS using the troubleshooting tips given at the end of the book.
Possible Solutions
$ sudo -i -u postgres
postgres@ubuntuBox:~$ psql
postgres=# CREATE ROLE ubuntu WITH CREATEDB LOGIN;
CREATE ROLE
postgres=# \q
$ exit
$ logout
$ sudo service postgresql restart
$ sudo service postgresql status
$ createdb everycheese
The text was updated successfully, but these errors were encountered: