LoginSignup
3
1

More than 5 years have passed since last update.

MySqlがstartできない

Posted at

現象

スクリーンショット 2016-01-11 8.59.45.png
急にMySQLが動かなくて焦ったの備忘録。
※キャプチャを撮り忘れたのですが、ここの

warning the user/local/mysql/data directory is not owned by the 'mysql' or '_mysql' user

のようなメッセージが表示されていました。

原因

user/mysql/dataのディレクトリがMySQL userによって所有されていない時の警告。
要はpermission errみたい。なぜこれが急に起きたかは不明。。。

対応

sudo chown -RL root:mysql /usr/local/mysql
sudo chown -RL mysql:mysql /usr/local/mysql/data
sudo /usr/local/mysql/support-files/mysql.server start

参考

http://stackoverflow.com/questions/5527676/warning-the-user-local-mysql-data-directory-is-not-owned-by-the-mysql-user
ありがとうございます。 m( _ _ )m

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1