informatique:sgbd:mysql
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
informatique:sgbd:mysql [11/04/2020 15:11] – [Performances] cyrille | informatique:sgbd:mysql [31/10/2022 18:37] (Version actuelle) – [Regular expression] il faut 2 anti-slash pour le ''?'' cyrille | ||
---|---|---|---|
Ligne 17: | Ligne 17: | ||
==== Mysql Workbench ==== | ==== Mysql Workbench ==== | ||
+ | |||
+ | https:// | ||
Plugins & Scripts : | Plugins & Scripts : | ||
Ligne 160: | Ligne 162: | ||
set content = REGEXP_REPLACE(content, | set content = REGEXP_REPLACE(content, | ||
where content like ' | where content like ' | ||
+ | </ | ||
+ | |||
+ | Attention, il faut 2 anti-slash pour le ''?'' | ||
+ | <code sql> | ||
+ | update wpci_posts | ||
+ | set post_content = REGEXP_REPLACE( | ||
+ | post_content , | ||
+ | "< | ||
+ | ) | ||
+ | where post_content like " | ||
+ | |||
</ | </ | ||
Ligne 174: | Ligne 187: | ||
===== Replication ===== | ===== Replication ===== | ||
+ | |||
+ | [[/ | ||
Articles: | Articles: | ||
+ | * [[https:// | ||
+ | * Et avec une méthode toute simple pour " | ||
+ | * [[https:// | ||
+ | * avec Master< | ||
+ | * '' | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
+ | ==== Reprise après échec/ | ||
Sans arrêter le Master avec l' | Sans arrêter le Master avec l' | ||
* http:// | * http:// | ||
+ | |||
+ | ==== Superviser la réplication ==== | ||
+ | |||
+ | |||
+ | * replication check ? | ||
+ | * slave-skip-errors ? | ||
+ | * [[https:// | ||
+ | * SHOW PROCESSLIST; | ||
+ | |||
+ | Dans ''/ | ||
+ | |||
===== Performance ===== | ===== Performance ===== | ||
Ligne 191: | Ligne 225: | ||
* [[http:// | * [[http:// | ||
+ | * [[https:// | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
Ligne 202: | Ligne 237: | ||
* With MyISAM tables that have no deleted rows, you can insert rows at the end at the same time that another query is reading from the table. If this is important for you, you should consider using the table in ways that avoid deleting rows. Another possibility is to run **OPTIMIZE TABLE after you have deleted a lot of rows**. | * With MyISAM tables that have no deleted rows, you can insert rows at the end at the same time that another query is reading from the table. If this is important for you, you should consider using the table in ways that avoid deleting rows. Another possibility is to run **OPTIMIZE TABLE after you have deleted a lot of rows**. | ||
- | ==== Comparaison InnoDB BuiltIn vs Plugin ==== | ||
- | |||
- | Comparaison tpc-c entre la version embarquée de InnoDB et le plugin InnoDB sur une instance Amazon c1.xlarge et du MySQL 5.1.43. Pas de tuning particulier => +100% !!! | ||
- | * en abscisses, le temps : 20 minutes de mesure avec 10 minutes de chauffe | ||
- | * en ordonnées, le nombre de transactions | ||
- | |||
- | {{: | ||
- | |||
- | Author: [[http:// | ||
informatique/sgbd/mysql.txt · Dernière modification : 31/10/2022 18:37 de cyrille