LoginSignup
0
0

More than 5 years have passed since last update.

Mysqlのエラー追跡:備忘録

Last updated at Posted at 2019-02-25

CentosでMysqlでエラーが出たが、mysqld.logには残らなかった。
->mysqld_safeで流れを確認する。

[root@3691215 log]# service mysqld start
MySQL Daemon failed to start.
Starting mysqld:                                           [FAILED]
You have mail in /var/spool/mail/root
mysqld_safe

190225 21:56:12 mysqld_safe Logging to '/var/lib/mysql/3691215.com.err'.
190225 21:56:12 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
190225 21:56:14 mysqld_safe mysqld from pid file /var/lib/mysql/3691215.com.pid ended

エラーログはこんな感じで見れる

cat /var/lib/mysql/3691215.com.err

エラーを直したあとに起動してOKだったらよい。

参考

https://tech.librastudio.co.jp/index.php/2017/07/12/post-1595/
https://serverfault.com/questions/354828/mysql-server-wont-start-no-logs

0
0
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
0
0