View Single Post
Tuổi 24-09-2009, 09:13 PM   #1
hoctinhoc
Guest
 
Trả Lời: n/a
Repairing a mySQL Database/Table - How to restore/repair/recover!

Repairing a mySQL Database/Table - How to restore/repair/recover



From time to time mySQL databases can get corrupt, whether it due to lack of disk space, power failure, or just an error.


Cách 1:

Truy cập vào phpMyAdmin -> Tên Databases -> chon tất cả các Tables or chọn Table cần Repair rồi chọn tiếp Repair Tables trong phần With Selected

Cách 2:


Truy cập vào Server Linux làm theo các hướng dẫn bên dưới

Repairing MyISAM mySQL Tables/Databases:
cd /var/lib/mysql/DBNAME
#^ Please note that we assume your mySQL data directory is /var/lib/mysql
myisamchk *.MYI
Repairing ISAM mySQL Tables/Databases:
cd /var/lib/mysql/DBNAME
#^ Please note that we assume your mySQL data directory is /var/lib/mysql
isamchk *.MYI


Chúc các bạn thành công




  Trả lời ngay kèm theo trích dẫn này