Help us understand the problem. What is going on with this article?

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

More than 1 year has 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!

起動した!

yuki0208
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
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  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
ユーザーは見つかりませんでした