คำสั่ง Repair database mysql, ใช้ได้ทั้ง Windows และ Linux
Please wait...
1784020837.jpg
1785839288.jpg
1785900450.jpg
1785753133.jpg
1786027703.jpg
1785753261.jpg
1785753054.jpg
1785494093.jpg
SOLUTIONS CORNER
คำสั่ง Repair database mysql, ใช้ได้ทั้ง Windows และ Linux

คำสั่งนี้เหมาะกันการตรวจสอบและซ่อมแซมฐานข้อมูล 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-
        )

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