homebrew woe

 

==> Summary
? /usr/local/Cellar/postgresql/10.1: 3,372 files, 38.8MB
RogerPackMBP:~ packrd$ pg_ctl -D /usr/local/var/postgres start
waiting for server to start….2017-11-23 09:33:20.322 MST [1015] FATAL: database files are incompatible with server
2017-11-23 09:33:20.322 MST [1015] DETAIL: The data directory was initialized by PostgreSQL version 9.5, which is not compatible with this version 10.1.
stopped waiting
pg_ctl: could not start server
Examine the log output.
RogerPackMBP:~ packrd$ initdb /usr/local/var/postgres
The files belonging to this database system will be owned by user “packrd”.
This user must also own the server process.

The database cluster will be initialized with locale “en_US.UTF-8”.
The default database encoding has accordingly been set to “UTF8”.
The default text search configuration will be set to “english”.

Data page checksums are disabled.

initdb: directory “/usr/local/var/postgres” exists but is not empty
If you want to create a new database system, either remove or empty
the directory “/usr/local/var/postgres” or run initdb
with an argument other than “/usr/local/var/postgres”.
RogerPackMBP:~ packrd$ rm -rf /usr/local/var/postgres
RogerPackMBP:~ packrd$ pg_ctl -D /usr/local/var/postgres start
pg_ctl: directory “/usr/local/var/postgres” does not exist
RogerPackMBP:~ packrd$ initdb /usr/local/var/postgres
The files belonging to this database system will be owned by user “packrd”.
This user must also own the server process.

The database cluster will be initialized with locale “en_US.UTF-8”.
The default database encoding has accordingly been set to “UTF8”.
The default text search configuration will be set to “english”.

Data page checksums are disabled.

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload the CAPTCHA.