LoginSignup
1
0

More than 5 years have passed since last update.

mysqlが壊れたとき

Posted at

はじめに

OS(ubuntu18.04)を再起動したタイミングでDBが起動しなくなった。これで2回目。その都度ググるのも面倒なので、自分用の記事として記載しておく。壊れたのはxamppのMySQLDB。

こうすればオッケー

下のファイルを開いて

sudo vi /opt/lampp/etc/my.cnf

こう編集する

[mysqld]
 innodb_force_recovery = 6

1〜6が指定できるらしいが、6で直った。

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