ERROR! MySQL server PID file could not be found!

asatokensei@MacBook-Air memopy % mysql.server start
Starting MySQL
......
.^C
asatokensei@MacBook-Air memopy % mysql.server stop 
 ERROR! MySQL server PID file could not be found!

asatokensei@MacBook-Air memopy % ls -la /usr/local/var/mysql/MacBook-Air.local.pid
ls: /usr/local/var/mysql/MacBook-Air.local.pid: No such file or directory

asatokensei@MacBook-Air memopy % mysql.server status
 ERROR! Multiple MySQL running but PID file could not be found (14996 15095 )
asatokensei@MacBook-Air memopy % ps ax | grep mysql
14996 s001  S      0:00.03 /bin/sh /usr/local/Cellar/[email protected]/5.7.29/bin/mysqld_safe --datadir=/usr/local/var/mysql --pid-file=/usr/local/var/mysql/MacBook-Air.pid
15095 s001  S      0:05.78 /usr/local/Cellar/[email protected]/5.7.29/bin/mysqld --basedir=/usr/local/Cellar/[email protected]/5.7.29 --datadir=/usr/local/var/mysql --plugin-dir=/usr/local/Cellar/[email protected]/5.7.29/lib/plugin --log-error=MacBook-Air.err --pid-file=/usr/local/var/mysql/MacBook-Air.pid
18863 s001  R+     0:00.00 grep mysql
asatokensei@MacBook-Air memopy % kill 14996
asatokensei@MacBook-Air memopy % kill 15095
asatokensei@MacBook-Air memopy % ps ax | grep mysql
18876 s001  S+     0:00.01 grep mysql
asatokensei@MacBook-Air memopy % mysql.server status
 ERROR! MySQL is not running
asatokensei@MacBook-Air memopy % mysql.server start 
Starting MySQL
. SUCCESS! 
asatokensei@MacBook-Air memopy % mysql.server status
 SUCCESS! MySQL running (18991)

https://qiita.com/avicii2314/items/cbe938339cb80f59f5a5

https://www.atmarkit.co.jp/ait/articles/1603/28/news022.html

https://qiita.com/YamKenta/items/a33499a7db7946a43381

Recommended Posts

ERROR! MySQL server PID file could not be found!
Error: Main class not found or could not be loaded
Error: Main class not found or could not be loaded
ERROR! MySQL server PID file could not be found!
RestTemplate Could not extract response: no suitable HttpMessageConverter found for response type countermeasures
Rails 6 startup error "Webpacker configuration file not found" Solution
HttpServletRequest class file not found
If macOS Catalina says "Error: Main class XX was not found or could not be loaded"
"Error: Main class XXX not found or could not be loaded" occurs even though the main class exists
Symbol not found error when new class in another Java file
[Java] Main class XXX was not found or could not be loaded
Error in ./gradlew: Symbol not found
PG :: ConnectionBad: could not connect to server: No such file or directory
Story when migration could not be done
gem install cocoapods failed ('ruby/config.h' file not found)
Many error lines ... Rails server does not start 2. "Autodetect': Could not find a JavaScript runtime."