Browse Source

Repair mysql databases

Bob Mottram 10 years ago
parent
commit
2aa1260e3c
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      beaglebone.txt

+ 8
- 0
beaglebone.txt View File

7267
 /etc/init.d/mysql stop
7267
 /etc/init.d/mysql stop
7268
 /etc/init.d/mysql start
7268
 /etc/init.d/mysql start
7269
 #+END_SRC
7269
 #+END_SRC
7270
+*** Repair and optimize databases
7271
+To check, repair and optimize the databases.
7272
+
7273
+#+BEGIN_SRC: bash
7274
+mysqlcheck -c  -u root -p --all-databases
7275
+mysqlcheck -u root -p --auto-repair --all-databases
7276
+mysqlcheck -u root -p -o --all-databases
7277
+#+END_SRC
7270
 *** Backup all databases
7278
 *** Backup all databases
7271
 To back up all mysql databases:
7279
 To back up all mysql databases:
7272
 
7280