LoginSignup
0
0

More than 5 years have passed since last update.

HomebrewでPostgreSQLをインストールした際、"postgres"ユーザは作成されないので

Posted at

"postgres"ユーザを作成した。

$ createuser -a -d -P postgres
Enter password for new role: 
Enter it again: 

これで、 createdb をする際に、所有者となるデータベースユーザを"postgres"として指定できる。

また、作成したユーザは以下のコマンドから確認できる。

$ psql -q -c'select * from pg_user' postgres

ちなみにユーザを削除するには

以下のコマンドを使う。

$ dropuser postgres
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0