How to add a user to PostgreSQL in Windows?

前端 未结 4 1574
不知归路
不知归路 2021-01-01 11:42

I\'m running PostgreSQL on mt Windows 7 machine. To run a database I type:

C:\\psql -Upostgres mydb

and this works, but it would be nice i

4条回答
  •  臣服心动
    2021-01-01 12:18

    The documentation for createuser indicates that a -U switch is accepted:

    -U username
    --username username

    User name to connect as (not the user name to create).

    This is what I would expect to use (although I've never tried to set up PostgreSQL on Windows, only on unices).

提交回复
热议问题