# 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


