คำสั่ง Repair database mysql, ใช้ได้ทั้ง Windows และ Linux
Please wait...
Burger Menu
1789978717.jpg
1790742792.jpg
1790750460.jpg
1791171653.jpg
SOLUTIONS CORNER
คำสั่ง Repair database mysql, ใช้ได้ทั้ง Windows และ Linux
folder

คำสั่งนี้เหมาะกันการตรวจสอบและซ่อมแซมฐานข้อมูล MySQL ทั้งเครื่องครับ

mysqlcheck -u root -p --auto-repair --all-database

แต่ต้องทราบ Password root ด้วยนะครับ

====================

ถ้าฐานข้อมูลเป็นแบบ myisam สามารถใช้คำสั่งนี้ โดยตรงกับไฟล์ฐานข้อมูลได้

#myisamchk -r *.MYI
 
====================
 
หรือถ้าต้องการ Repair เฉพาะ Table ก็ทำตามนี้ครับ

mysql -p

use db_name;

#ตรวจสอบว่า Table นี้มีปัญหาหรือไม่
check table table_name;

#และสามารถซ่อม Table ที่เสียจาก
repair table table_name;
Array
(
    [0] => Array
        (
            [name] => Home
            [url] => https://www.quickserv.co.th
        )

    [1] => Array
        (
            [name] => Knowledge Base
            [url] => https://www.quickserv.co.th/knowledge-base
        )

    [2] => Array
        (
            [name] => Solutions
            [url] => https://www.quickserv.co.th/knowledge-base/solutions
        )

    [3] => Array
        (
            [name] => คำสั่ง Repair Database Mysql, ใช้ได้ทั้ง Windows และ Linux 
            [url] => https://www.quickserv.co.th/knowledge-base/solutions/%E0%B8%84%E0%B8%B3%E0%B8%AA%E0%B8%B1%E0%B9%88%E0%B8%87-repair-database-mysql,-%E0%B9%83%E0%B8%8A%E0%B9%89%E0%B9%84%E0%B8%94%E0%B9%89%E0%B8%97%E0%B8%B1%E0%B9%89%E0%B8%87-windows-%E0%B9%81%E0%B8%A5%E0%B8%B0-linux-
        )

)
ควิกเซิร์ฟ
สินค้า
งานระบบ
บริการ
กิจกรรม
ออนไลน์