Repair Table di MySQL Untuk Semua Databases

October 30th, 2008. Published under Tips Linux.

Hari ini database mysql saya corrupt. Berdasarkan laporan dari mysqlcheck banyak table yang harus di-repair. Karena males ngerepair satu-satu, saya gunakan jurus sapu jagat saja.

mysqlcheck -u root -p --all-databases --repair

Beres. Semua table di semua database di check dan di repair :D

Tags: > >

Related Posts

5 Comments

gede  on November 13th, 2008

Mozilla Firefox 3.0.3 Windows XPMozilla Firefox 3.0.3 Windows XP

hmmm…thanks infonya,
apa tidak beresiko merusak table?
salam:)

cecep  on November 13th, 2008

Mozilla Firefox 3.0.3 Ubuntu LinuxMozilla Firefox 3.0.3 Ubuntu Linux

Saya kutip ya dari manual mysql:

mysqlcheck is similar in function to myisamchk, but works differently. The main operational difference is that mysqlcheck must be used when the mysqld server is running, whereas myisamchk should be used when it is not. The benefit of using mysqlcheck is that you do not have to stop the server to check or repair your tables.

Jadi tentu saja aman menggunakan mysqlcheck ini.

anderdok  on July 22nd, 2009

Mozilla Firefox 3.0.11 Windows XPMozilla Firefox 3.0.11 Windows XP

kang kalau di repair ikut ilang jg ga?????

anderdok  on July 22nd, 2009

Mozilla Firefox 3.0.11 Windows XPMozilla Firefox 3.0.11 Windows XP

kang kalau di repair ikut ilang jg ga datanya????? mobil perang kang alias thanks

ngadimin  on July 22nd, 2009

Mozilla Firefox 3.5.1 Mac OS XMozilla Firefox 3.5.1 Mac OS X

Repair table kan gara-gara ada table yang corrupt. Seharusnya dengan proses repair ini, data jadi kembali normal, dan tidak ada data yang hilang.