Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

createdb everycheese not working on postgres 12 #278

Open
earnestat opened this issue May 22, 2020 · 1 comment
Open

createdb everycheese not working on postgres 12 #278

earnestat opened this issue May 22, 2020 · 1 comment
Assignees

Comments

@earnestat
Copy link

earnestat commented May 22, 2020

Location within the Book

  • Book build date (Is the date on page 1): 2020-05-14
  • Book format (PDF, Epub or Mobi): PDF
  • Chapter or Appendix: Chapter 18
  • Section: 18.5
  • Subsection: createdb everycheese

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.

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

@pydanny
Copy link
Member

pydanny commented Jun 5, 2020

@luzfcb Can you help with this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants