If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > host.myi Damaged -- How to fix this?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-22-04, 05:24
Tuxfreak Tuxfreak is offline
Registered User
 
Join Date: Dec 2004
Posts: 1
host.myi Damaged -- How to fix this?

Hello everybody. Got a linux server with debian and mysql on it. After the computer crashed today, mysql doesn't start up and tells me that host.myi is damaged. How can I fix this?
Thanks in advance

Tuxfreak
Reply With Quote
  #2 (permalink)  
Old 12-23-04, 03:50
codenode codenode is offline
Registered User
 
Join Date: Dec 2004
Posts: 26
Try:
mysqld_safe --skip-grant-tables &
use mysql;
REPAIR TALBE host USE_FRM;
\q
kill %1
restart MySQL normally

You may lose the data in the host table but it sounds like it's lost already.

Last edited by codenode; 12-23-04 at 04:04.
Reply With Quote
  #3 (permalink)  
Old 12-23-04, 08:55
omiossec omiossec is offline
Registered User
 
Join Date: Jan 2003
Location: Paris, France
Posts: 320
MYI is the index file so there a chance that your mysql.host table is not lost

You need to use myisamchk -r q to recover the index file and restart mysql
__________________
Olivier Miossec
--
http://www.lasso-developpeur.net/
--
Reply With Quote
  #4 (permalink)  
Old 01-16-05, 03:29
jimjimbobim jimjimbobim is offline
Registered User
 
Join Date: Jan 2005
Posts: 1
How do I fix the grant tables?

Codenode,

I am getting:

Didn't find any fields in table 'columns_priv'
Didn't find any fields in table 'tables_priv'

I used your advice to fix all the other tables, how do I fix this?

Thanks,
-Jimjimbobim
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On