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 :

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

Et normalement tout revient dans l'ordre.

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