【Mac】Postgres 9.6→10.1へバージョンアップ対応
不用意に brew upgrade
してしまった影響は、今だに出ているので、その対応を細々と。
元々入っていたPostgresのバージョンが9.6から10.1 にバージョンが上がった為、Postgresを起動しようとするとエラーで起動できなくなったので、その対応
$ postgres -D /usr/local/var/postgres 2018-01-22 14:18:16.340 JST [14935] FATAL: database files are incompatible with server 2018-01-22 14:18:16.340 JST [14935] DETAIL: The data directory was initialized by PostgreSQL version 9.6, which is not compatible with this version 10.1.続きを読む
【Rails】Mac のMySQLを5.7にアップグレードした時のエラー対処方法
# Mysqlのバージョンを5.7にアップグレードした時にハマったので、対処方法をメモ
bundle exec rails
を実行すると以下のようなエラーがでる
.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/bundler-1.13.6/lib/bundler/runtime.rb:94:in `rescue in block (2 levels) in require': There was an error while trying to load the gem 'mysql2'. (Bundler::GemRequireError) Gem Load Error is: uninitialized constant Mysql2::Client::SECURE_CONNECTION続きを読む