Skip to content

Instantly share code, notes, and snippets.

@ericboehs
Last active March 8, 2018 09:11
Show Gist options
  • Select an option

  • Save ericboehs/c6f8638eaa90a024275fda45aae3824d to your computer and use it in GitHub Desktop.

Select an option

Save ericboehs/c6f8638eaa90a024275fda45aae3824d to your computer and use it in GitHub Desktop.

Revisions

  1. ericboehs revised this gist Apr 29, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion upgrade_to_mysql57.sh
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    mysql.server stop
    mysql.server stop # kill the process if it fails
    brew uninstall mysql56
    brew update
    brew install mysql
  2. ericboehs revised this gist Apr 29, 2016. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion upgrade_to_mysql57.sh
    Original file line number Diff line number Diff line change
    @@ -3,8 +3,9 @@ brew uninstall mysql56
    brew update
    brew install mysql
    cp /usr/local/Cellar/mysql/5.7.12/support-files/my-default.cnf /usr/local/etc/my.cnf
    mysql_upgrade -u root --force
    brew services start mysql # don't run via tmux
    mysql_upgrade -u root --force
    brew services restart mysql # don't run via tmux
    cd ~/Code/17hats/17hats
    bundle exec gem uninstall -a mysql2; bundle install
    WIPE_DB=true bin/setup
  3. ericboehs revised this gist Apr 29, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion upgrade_to_mysql57.sh
    Original file line number Diff line number Diff line change
    @@ -3,8 +3,8 @@ brew uninstall mysql56
    brew update
    brew install mysql
    cp /usr/local/Cellar/mysql/5.7.12/support-files/my-default.cnf /usr/local/etc/my.cnf
    brew services start mysql # don't run via tmux
    mysql_upgrade -u root --force
    brew services start mysql # don't run via tmux
    cd ~/Code/17hats/17hats
    bundle exec gem uninstall -a mysql2; bundle install
    WIPE_DB=true bin/setup
  4. ericboehs revised this gist Apr 29, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion upgrade_to_mysql57.sh
    Original file line number Diff line number Diff line change
    @@ -6,5 +6,5 @@ cp /usr/local/Cellar/mysql/5.7.12/support-files/my-default.cnf /usr/local/etc/my
    brew services start mysql # don't run via tmux
    mysql_upgrade -u root --force
    cd ~/Code/17hats/17hats
    bundle exec gem uninstall mysql2; bundle install
    bundle exec gem uninstall -a mysql2; bundle install
    WIPE_DB=true bin/setup
  5. ericboehs revised this gist Apr 26, 2016. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions upgrade_to_mysql57.sh
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,9 @@ mysql.server stop
    brew uninstall mysql56
    brew update
    brew install mysql
    cp /usr/local/Cellar/mysql/5.7.12/support-files/my-default.cnf /usr/local/etc/my.cnf
    brew services start mysql # don't run via tmux
    mysql_upgrade -u root --force
    cd ~/Code/17hats/17hats
    bundle exec gem uninstall mysql2; bundle install
    WIPE_DB=true bin/setup
  6. ericboehs created this gist Apr 26, 2016.
    8 changes: 8 additions & 0 deletions upgrade_to_mysql57.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    mysql.server stop
    brew uninstall mysql56
    brew update
    brew install mysql
    brew services start mysql # don't run via tmux
    mysql_upgrade -u root --force
    bundle exec gem uninstall mysql2; bundle install
    WIPE_DB=true bin/setup