ERROR! MySQL server PID file could not be found!

『ERROR! MySQL server PID file could not be found!』と出てMySQLが停止できない時の対処法例。

ps ax | grep mysql

27295 ?? S 0:00.02 /bin/sh /usr/local/Cellar/mysql/5.6.25/bin/mysqld_safe –datadir=/usr/local/var/mysql –pid-file=/usr/local/var/mysql/MBP-Mid2015.lan.pid
27397 ?? S 0:01.57 /usr/local/Cellar/mysql/5.6.25/bin/mysqld –basedir=/usr/local/Cellar/mysql/5.6.25 –datadir=/usr/local/var/mysql –plugin-dir=/usr/local/Cellar/mysql/5.6.25/lib/plugin –log-error=/usr/local/var/mysql/MBP-Mid2015.lan.err –pid-file=/usr/local/var/mysql/MBP-Mid2015.lan.pid
31320 s000 S+ 0:00.00 grep –exclude=.svn mysql

sudo kill -TERM 27295
sudo kill -TERM 27397