Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente Prochaine révision Les deux révisions suivantes | ||
linux:mysql [23-04-2019 17:32] edmc73 [Partition] |
linux:mysql [06-08-2019 11:14] edmc73 |
||
---|---|---|---|
Ligne 27: | Ligne 27: | ||
mysql> show variables; | mysql> show variables; | ||
mysql> show global variables like ' | mysql> show global variables like ' | ||
+ | |||
+ | Pour modifier une variable global | ||
+ | mysql> set global max_connections=500; | ||
Pour voir les status | Pour voir les status | ||
Ligne 130: | Ligne 133: | ||
Plein d' | Plein d' | ||
+ | |||
+ | Un autre script dans les paquets **automysqlbackup** https:// | ||
+ | |||
===== Percona XtraBackup ===== | ===== Percona XtraBackup ===== | ||
Ligne 207: | Ligne 213: | ||
ERROR 144 (HY000) at line 1: Table ' | ERROR 144 (HY000) at line 1: Table ' | ||
</ | </ | ||
+ | |||
+ | Se placer dans le bon répertoire | ||
+ | |||
+ | cd / | ||
< | < | ||
- | # myisamchk | + | # myisamchk |
- | Checking MyISAM file: dashboard_log | + | Checking MyISAM file: MA_TABLE |
Data records: | Data records: | ||
myisamchk: warning: Table is marked as crashed and last repair failed | myisamchk: warning: Table is marked as crashed and last repair failed | ||
Ligne 226: | Ligne 236: | ||
myisamchk: warning: Found 1581466 deleted blocks | myisamchk: warning: Found 1581466 deleted blocks | ||
myisamchk: warning: Found 8799790 key parts. Should be: 654724 | myisamchk: warning: Found 8799790 key parts. Should be: 654724 | ||
- | MyISAM-table 'dashboard_log' is corrupted | + | MyISAM-table 'MA_TABLE' is corrupted |
Fix it using switch " | Fix it using switch " | ||
</ | </ | ||
< | < | ||
- | # myisamchk -r -v dashboard_log | + | # myisamchk -r -v MA_TABLE |
- | - recovering (with sort) MyISAM-table 'dashboard_log' | + | - recovering (with sort) MyISAM-table 'MA_TABLE' |
Data records: 654724 | Data records: 654724 | ||
- Fixing index 1 | - Fixing index 1 | ||
Ligne 249: | Ligne 259: | ||
</ | </ | ||
- | Ca remarche ! et meme à chaud sans redémarrer mysql ! | + | Ça remarche ! et même à chaud sans redémarrer mysql ! J'ai même l' |