Createuser: could not connect to database postgres: FATAL: role “tom” does not exist

后端 未结 9 1235
醉话见心
醉话见心 2020-12-04 06:16

I\'m trying to set up Postgres for the first time, and I need to create a user with permissions to read and create databases. However, when I use:

createuser          


        
9条回答
  •  不知归路
    2020-12-04 06:31

    I had the same issue, i just do this

    sudo su - postgres

    createuser odoo -U postgres -dRSP #P for password (odoo or user name that you want o give the postgres access)

提交回复
热议问题