Repair mysql databases

This commit is contained in:
Bob Mottram 2014-08-02 11:58:27 +01:00
parent 0e7d133104
commit 2aa1260e3c
1 changed files with 8 additions and 0 deletions

View File

@ -7267,6 +7267,14 @@ quit
/etc/init.d/mysql stop
/etc/init.d/mysql start
#+END_SRC
*** Repair and optimize databases
To check, repair and optimize the databases.
#+BEGIN_SRC: bash
mysqlcheck -c -u root -p --all-databases
mysqlcheck -u root -p --auto-repair --all-databases
mysqlcheck -u root -p -o --all-databases
#+END_SRC
*** Backup all databases
To back up all mysql databases: