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

后端 未结 9 1223
醉话见心
醉话见心 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条回答
  •  萌比男神i
    2020-12-04 06:20

    You need to first run initdb. It will create the database cluster and the initial setup

    See How to configure postgresql for the first time? and http://www.postgresql.org/docs/8.4/static/app-initdb.html

提交回复
热议问题