瀏覽代碼

Repair mysql databases

Bob Mottram 10 年之前
父節點
當前提交
2aa1260e3c
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8
    0
      beaglebone.txt

+ 8
- 0
beaglebone.txt 查看文件

@@ -7267,6 +7267,14 @@ quit
7267 7267
 /etc/init.d/mysql stop
7268 7268
 /etc/init.d/mysql start
7269 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 7278
 *** Backup all databases
7271 7279
 To back up all mysql databases:
7272 7280