Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
52
Help us understand the problem. What is going on with this article?
@yuki0208

MySQL起動できなくなった The server quit without updating PID file

More than 3 years have passed since last update.

プログラミング初心者のエラー対処メモ

DBにMySQLを使ったRailsアプリを起動させるのにMySQLを起動させようとしたところエラーが発生

$ sudo mysql.server start
Password:
Starting MySQL
.. ERROR! The server quit without updating PID file (/usr/local/var/mysql/****.local.pid).

ググってこちらの質問のベストアンサーを参考にやってみた
MySQLを起動する際にエラーが発生します。

PIDファイルのエラーの件は、/usr/local/var/mysql/マック名.local.errの権限の問題らしいのですが、

$ chown [mysqlの動作ユーザ名] /usr/local/var/mysql/***.local.err 

でもエラー

usr/local/var/mysql/mysql にいって再起動してみる

$ usr/local/var/mysql/mysql > sudo mysql.server restart
Password:
 ERROR! MySQL server PID file could not be found!
Starting MySQL
.. ERROR! The server quit without updating PID file (/usr/local/var/mysql/.local.pid).

PID fileが見つからないとのエラーだったのでファイルの生成をしてみる

$ /usr/local/var/mysql/mysql > touch /usr/local/var/mysql/****.local.pid

再起動

$ /usr/local/var/mysql/mysql > sudo mysql.server restart
 ERROR! MySQL server PID file could not be found!
Starting MySQL
. SUCCESS!

起動した!

52
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
yuki0208

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
52
Help us understand the problem. What is going on with this article?