WikiOpenTruc:BD Mediawiki : Différence entre versions

De WikiOpenTruc
Aller à : navigation, rechercher
(Page créée avec « ==Maintenance des tables== * BD en MySQL * https://www.mediawiki.org/wiki/Category:MediaWiki_database_tables <b>LA</b> doc de référence * https://www.mediawiki.org/wiki... »)
 
m (Upgrade uplib)
Ligne 38 : Ligne 38 :
  
 
* souci à l'update. La taille de la BD semble poser problème pour sa modification.
 
* souci à l'update. La taille de la BD semble poser problème pour sa modification.
 +
 +
https://www.mediawiki.org/wiki/Manual:Upgrading/fr#Web_browser
 +
 +
If your database is already big and in high production usage, then you should not be using the Web updater, e.g. because the update process
 +
 +
will time out when the maximum_execution_time is reached.
 +
In that case you should use update.php from the command-line interface (not from the web).
 +
What exactly is "too big" depends on your server (e.g. on its performance, the load and on how long the maximum execution time of PHP allows the script to run).
 +
If your wiki is too big for the web updater and your hosting provider does not allow command-line access, then you need to migrate your wiki to another hosting account, preferably to one that does have shell access.
 +
 +
Opentruc pesait 72Mo au total, et c'est passé.
 +
Uplib pèse ~200Mo au total, soit presque le triple. Mais ça semble ne plus passer.
  
 
Or, la plus grosse table (de loin) est mwi_text dont la structure mediawiki semble ne pas avoir subi de modification depuis la version 1.9.
 
Or, la plus grosse table (de loin) est mwi_text dont la structure mediawiki semble ne pas avoir subi de modification depuis la version 1.9.

Version du 13 octobre 2015 à 18:27

Maintenance des tables


Sauvegardes

  • a priori, le mieux semble être via mysqldump en ligne de commande (avec putty) ou dans un php.
  • phpMyAdmin ne semble absolument pas fiable pour les sauvegardes. Jamais 2 fois la même taille !
  • penser à sauvegarder aussi les images, pdfs, etc


Upgrade uplib

  • souci à l'update. La taille de la BD semble poser problème pour sa modification.

https://www.mediawiki.org/wiki/Manual:Upgrading/fr#Web_browser

If your database is already big and in high production usage, then you should not be using the Web updater, e.g. because the update process

will time out when the maximum_execution_time is reached. In that case you should use update.php from the command-line interface (not from the web). What exactly is "too big" depends on your server (e.g. on its performance, the load and on how long the maximum execution time of PHP allows the script to run). If your wiki is too big for the web updater and your hosting provider does not allow command-line access, then you need to migrate your wiki to another hosting account, preferably to one that does have shell access.

Opentruc pesait 72Mo au total, et c'est passé. Uplib pèse ~200Mo au total, soit presque le triple. Mais ça semble ne plus passer.

Or, la plus grosse table (de loin) est mwi_text dont la structure mediawiki semble ne pas avoir subi de modification depuis la version 1.9. Donc, une idée serait de sauvegarder cette table, de l'effacer de la BD pour la ramener à une taille raisonnable. Puis de faire l'update de la structure ... et puis de réimporter la table.

Je peux faire cela éventuellement directement sur la nouvelle BD MySQL 5.5.