Subscribed unsubscribe Subscribe Subscribe

hasen's tech life

Twitter: @hasen

HomebrewでMySQLをupgradeした時に実行しておくコマンド.

# HomebrewでMySQLをupgradeした時に実行しておくコマンド.
# MySQLWorkbenckがエラーになる.

$ brew upgrade mysql
$ mysql_upgrade -u USER_NAME -p
> Enter password:
> Checking if update is needed.
> Checking server version.
> Running queries to upgrade MySQL server.
> Checking system database.
> mysql.server restart
> ... (中略)
$ mysql.server restart