Files
mkdocs/docs/MySQL/mysqlcheck.md
Bruno 21 e82296ba06 1er commit
De la docs au format Mkdocs
2018-09-16 14:48:15 +02:00

69 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# mysqlcheck
### Vérification d'une table:
```bash
$ mysqlcheck -c funnymac download -u root -p
Enter password:
funnymac.download OK
```
### Vérification de toutes les tables d'une base:
```bash
$ mysqlcheck -c funnymac -u root -p
Enter password:
funnymac.download OK
funnymac.downloads OK
funnymac.eggs OK
funnymac.ipod OK
funnymac.ipod_news OK
funnymac.ipod_vers OK
funnymac.liens OK
funnymac.livre OK
funnymac.note OK
funnymac.numeric_info OK
funnymac.numeric_log OK
funnymac.numeric_vers OK
funnymac.tips OK
funnymac.truc OK
funnymac.vote OK
```
### Vérification de toutes les bases:
```bash
$ mysqlcheck -c -u root -p all-databases
```
### Vérification de certaines bases:
```bash
$ mysqlcheck -c -u root -p databases funnymac zenphoto
```
### Optimiser une table:
```bash
$ mysqlcheck -o funnymac download -u root -p
Enter password:
funnymac.download OK
```
### Réparer une table:
```bash
$ mysqlcheck -r funnymac download -u root -p
Enter password:
funnymac.download OK
```
### Combiner Vérifier, Optimiser et Réparer:
!!! attention
Ne semble pas fonctionner sous OSX