Skip to content

Instantly share code, notes, and snippets.

View dhartoto's full-sized avatar

Dito Hartoto dhartoto

  • Melbourne, Australia
View GitHub Profile
@dhartoto
dhartoto / gist:cbf00b85f3e7a2ff7f1a47731b14806e
Last active August 9, 2018 00:31 — forked from giannisp/gist:ebaca117ac9e44231421f04e7796d5ca
Upgrade PostgreSQL 9.6.5 to 10.0 using Homebrew (macOS)
After automatically updating Postgres to 10.0 via Homebrew, the pg_ctl start command didn't work.
The error was "The data directory was initialized by PostgreSQL version 9.6, which is not compatible with this version 10.0."
Database files have to be updated before starting the server, here are the steps that had to be followed:
# need to have both 9.6.x and latest 10.0 installed, and keep 10.0 as default
brew unlink postgresql
brew install [email protected]
brew unlink [email protected]
brew link postgresql
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Plunker</title>
<script src="https://unpkg.com/[email protected]/umd/react.production.min.js"></script>
<script src="https://unpkg.com/[email protected]/umd/react-dom.production.min.js"></script>
<script src="https://unpkg.com/[email protected]/babel.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/redux.js"></script>