Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 07/11/2010, à 14:04

Compte anonymisé

[RESOLU] Base de données MySQL abîmé

Bonjour à tous,

il semble qu'une des bases MySQL est abîmé,
le serveur redémarre en boucle, le problème,
c'est que ce n'est pas une petite base, je ne peux donc pas la sauvegarder, pour la réimporter dans un environnement propre.

J'ai recharger les privilèges, réparer toutes les tables..

Avez-vous des idées pour régler se problème?
Voici ce que m'affiche le log error de mysql lors d'un redémarrage:

InnoDB: End of page dump
101107 14:00:21  InnoDB: Page checksum 2638800631, prior-to-4.0.14-form checksum 2438561937
InnoDB: stored checksum 2793992558, prior-to-4.0.14-form stored checksum 2261671551
InnoDB: Page lsn 65559 1473583665, low 4 bytes of lsn at page end 1473518129
InnoDB: Page number (if stored to page already) 102294,
InnoDB: space id (if created with >= MySQL-4.1.1 and stored already) 65537
InnoDB: Page may be an index page where index id is 0 861
InnoDB: (index "GEN_CLUST_INDEX" of table "zabbix"."history")
InnoDB: Database page corruption on disk or a failed
InnoDB: file read of page 102294.
InnoDB: You may have to recover from a backup.
InnoDB: It is also possible that your operating
InnoDB: system has corrupted its own file cache
InnoDB: and rebooting your computer removes the
InnoDB: error.
InnoDB: If the corrupt page is an index page
InnoDB: you can also try to fix the corruption
InnoDB: by dumping, dropping, and reimporting
InnoDB: the corrupt table. You can use CHECK
InnoDB: TABLE to scan your table for corruption.
InnoDB: See also http://dev.mysql.com/doc/refman/5.1/en/forcing-recovery.html
InnoDB: about forcing recovery.
InnoDB: Ending processing because of a corrupt database page.
101107 14:00:21 [Note] Plugin 'FEDERATED' is disabled.
InnoDB: Log scan progressed past the checkpoint lsn 24 1140099918
101107 14:00:21  InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
InnoDB: Doing recovery: scanned up to log sequence number 24 1140119456
InnoDB: 1 transaction(s) which must be rolled back or cleaned up
InnoDB: in total 182 row operations to undo
InnoDB: Trx id counter is 0 288513792
101107 14:00:21  InnoDB: Starting an apply batch of log records to the database...
InnoDB: Progress in percents: 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 
InnoDB: Apply batch completed
101107 14:00:22  InnoDB: Started; log sequence number 24 1140119456
InnoDB: Starting in background the rollback of uncommitted transactions
101107 14:00:22  InnoDB: Rolling back trx with id 0 288513280, 182 rows to undo
101107 14:00:22 [Note] Event Scheduler: Loaded 0 events
101107 14:00:22 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.1.41-3ubuntu12.6-log'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  (Ubuntu)

InnoDB: Rolling back of trx id 0 288513280 completed
101107 14:00:22  InnoDB: Rollback of non-prepared transactions completed

et rebelote et cela indéfiniment.

La table zabbix.history est assez lourde, elle fait plus d'1go.

Quelqu'un a une petite de la démarche a entreprendre?

Dernière modification par texcor (Le 10/11/2010, à 12:11)

#2 Le 09/11/2010, à 13:07

Compte anonymisé

Re : [RESOLU] Base de données MySQL abîmé

Une idée pour extraire la base en question?

#3 Le 10/11/2010, à 01:32

Yann

Re : [RESOLU] Base de données MySQL abîmé

Salut texcor, si elle est cassée, par définition ton export va merder.. Tu peux tenter un mysqldump dbname > file puis un mysql dbname < file.. mais là, si t as pas de backup, clairement, t'es dans la mouise.


Et pourtant moi, jsuis pas du genre délicat,
Dans un coin de la musse, j'ai posé mon matelas
- Paulo Anarkao

Hors ligne

#4 Le 10/11/2010, à 12:11

Compte anonymisé

Re : [RESOLU] Base de données MySQL abîmé

Bonjour Yann,

Oui impossible d'exporter, ma base est bien abîmer,
J'ai fini par effacer et recréer la base,
J'ai quand même perdu 1 an de données (ce ne sont pas des données super-importante).

Ça m'apprendra à ne pas faire de sauvegarde,
J'ai pourtant juste à coter un serveur Retrospect qui est dédié au backup,
Mais cette base n'était pas sauvegarder. A l'avenir, je le ferais!

Merci