内容
MySQLを立ち上げようと思ったら以下に遭遇
$ mysql.server start --skip-grant-tables
Starting MySQL
.. ERROR! The server quit without updating PID file (/opt/homebrew/var/mysql/*****.local.pid).
対処法
/opt/homebrew/var/mysql/*****.local.pidを追加する方法
grepで検索して動いているプロセスをkillする方法
上記では上手く行かず、
幸い、MySQLにデータをとくに入れていなかったため、
/opt/homebrew/var/mysql
のフォルダを削除し再インストールを実行すると問題解決
$ mysql.server start --skip-grant-tables
Starting MySQL
. SUCCESS!
$ mysql -uroot
Welcome to the MySQL monitor. Commands end with ; or \g.