fr:mysql

Ceci est une ancienne révision du document !


Pour remettre en marche un MySQL dans un état discutable, effectuer sous root avec un fichier .my.cnf correct pour le compte administrateur MySQL:

  1. service mysql stop
  2. vi /path/to/my.cnf
  3. ajouter la ligne #innodb_force_recovery=6 et dé-commenter
  4. service mysql start
  5. mysqldump -A > all.sql
  6. re-commenter la ligne innodb_force_recovery=6
  7. cd /path/to/mysql/data && rm ib* && cd -
  8. service mysql stop && service mysql start
  9. mysql < all.sql

Et normalement tout revient dans l'ordre.

  • fr/mysql.1413133264.txt.gz
  • Dernière modification : il y a 4 ans
  • (modification externe)