【发布时间】:2014-01-12 07:53:40
【问题描述】:
我升级到 mavericks 并且在安装/编译新 gem 时遇到了一些问题,所以我重新安装了 xcode 并进行了 brew 更新和升级。 Gems 现在可以工作,甚至 postgres 也可以继续工作一段时间,直到最近重新启动。现在 postgres 似乎有问题。
postgres:
postgres does not know where to find the server configuration file.
You must specify the --config-file or -D invocation option or set the PGDATA environment variable.
brew info postgres:
postgresql: stable 9.3.2 (bottled)
http://www.postgresql.org/
Conflicts with: postgres-xc
/usr/local/Cellar/postgresql/9.2.4 (2842 files, 39M)
Built from source
/usr/local/Cellar/postgresql/9.3.2 (2924 files, 39M) *
Poured from bottle
postgres -D /usr/local/var/postgres:
FATAL: database files are incompatible with server
DETAIL: The data directory was initialized by PostgreSQL version 9.2, which is not compatible with this version 9.3.2.
我现在应该怎么做才能让我的数据库再次工作?
【问题讨论】:
标签: postgresql homebrew