LoginSignup
1
1

More than 5 years have passed since last update.

homebrewでインストールしたpostgresqlが動かなくなったの改修してみた

Last updated at Posted at 2015-09-22

/usr/local/var/postgresがあれば削除する

$brew install postgresql
$brew uninstall postgresql
$brew uninstall --force postgresql
$brew install postgresql
$initdb /usr/local/var/postgres -E utf8
$postgres -D /usr/local/var/postgres
$export PGDATA=/usr/local/var/postgres
$pg_ctl start
$pg_ctl stop
$pg_ctl start -l /usr/local/var/postgres/server.log
$psql -l
$createuser -P user

参考URL
http://open-groove.net/postgresql/mac-brew-postgresql/
http://qiita.com/_daisuke/items/13996621cf51f835494b
http://stackoverflow.com/questions/27700596/homebrew-postgres-broken

1
1
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
1
1