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 [21/03/2021 11:28] – [Replication] 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: | ||
Ligne 180: | Ligne 195: | ||
* [[https:// | * [[https:// | ||
* avec Master< | * avec Master< | ||
- | * '' | + | * '' |
- | * https:// | + | * [[https:// |
* [[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:// | ||
- | TODO : | + | ==== Superviser la réplication ==== |
* replication check ? | * replication check ? | ||
Ligne 196: | Ligne 213: | ||
* [[https:// | * [[https:// | ||
* SHOW PROCESSLIST; | * SHOW PROCESSLIST; | ||
+ | |||
+ | Dans ''/ | ||
Ligne 206: | Ligne 225: | ||
* [[http:// | * [[http:// | ||
+ | * [[https:// | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
Ligne 217: | 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.1616322500.txt.gz · Dernière modification : 21/03/2021 11:28 de cyrille