คำสั่ง Repair database mysql, ใช้ได้ทั้ง Windows และ Linux
Please wait...
1786933644.jpg
1786356967.jpg
1789381284.jpg
1788343577.jpg
1788343655.jpg
1788774638.jpg
1788244639.jpg
1788342950.jpg
1789022451.jpg
1788343721.jpg
1786675231.jpg
1788259208.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-
        )

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