mysql.server startで「ERROR! The server quit without updating PID file (/usr/local/var/mysql/PC名.local.pid).」

Railsアプリを別PCからGITで引っ張ってきてmysqlサーバーを起動しようとしたら、立ち上がらない。よくある。

 

 

$ mysql.server start


Starting MySQL
.. ERROR! The server quit without updating PID file (/usr/local/var/mysql/PC名.local.pid).

とりあえずエラーログを調べる。

$ tail -f /usr/local/var/mysql/PC名.local.err

2019-06-05T03:44:16.749598Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
2019-06-05T03:44:17.061240Z 0 [ERROR] Plugin ‘InnoDB’ init function returned error.
2019-06-05T03:44:17.061295Z 0 [ERROR] Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed.
2019-06-05T03:44:17.061324Z 0 [ERROR] Failed to initialize builtin plugins.
2019-06-05T03:44:17.061339Z 0 [ERROR] Aborting


2019-06-05T03:44:17.061371Z 0 [Note] Binlog end
2019-06-05T03:44:17.063180Z 0 [Note] Shutting down plugin ‘CSV’
2019-06-05T03:44:17.063531Z 0 [Note] /usr/local/Cellar/mysql@5.7/5.7.25/bin/mysqld: Shutdown complete

gem uninstall mysql@5.7 && bundle installで解決。

/usr/local/opt/mysql@5.7/bin/mysql.server startでサーバーを起動。