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 > FLUSH Table?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-23-03, 20:59
DrSmartman DrSmartman is offline
Registered User
 
Join Date: Aug 2003
Location: Reston, VA
Posts: 59
FLUSH Table?

Hey All,

I'm trying to restore functionality to a table, but not having much luck. Basically, after running a CHECK TABLE I found some issues. The associated table files (.frm, .MYD, .MYI) were all backed up. Issued a REPAIR TABLE to fix the table. After running CHECK TABLE it looks like all the issues were gone. However, the associated table files were replaced with the backups (no, mysqlhotcopy was not used - bad, I know). The replaced files contained the information needed. Unfortunately, everytime I run a count query i get 0 records. I ran FLUSH TABLE, but that wasn't working either. Any ideas???

Many thanks...
Reply With Quote
  #2 (permalink)  
Old 10-23-03, 21:24
bstjean bstjean is offline
Registered User
 
Join Date: Sep 2002
Location: Montreal, Canada
Posts: 219
Re: FLUSH Table?

Quote:
Originally posted by DrSmartman
Hey All,

I'm trying to restore functionality to a table, but not having much luck. Basically, after running a CHECK TABLE I found some issues. The associated table files (.frm, .MYD, .MYI) were all backed up. Issued a REPAIR TABLE to fix the table. After running CHECK TABLE it looks like all the issues were gone. However, the associated table files were replaced with the backups (no, mysqlhotcopy was not used - bad, I know). The replaced files contained the information needed. Unfortunately, everytime I run a count query i get 0 records. I ran FLUSH TABLE, but that wasn't working either. Any ideas???

Many thanks...
Which version of MySQL are you using?
What OS the server runs on?
Have you tried an extended check?
Reply With Quote
  #3 (permalink)  
Old 10-23-03, 23:10
DrSmartman DrSmartman is offline
Registered User
 
Join Date: Aug 2003
Location: Reston, VA
Posts: 59
Hi bstjean,

Thanks for the reply (again). We are running MySQL 3.23 on Red Hat Linux 7.3. I'm not sure I'm familiar with an Extend Check. What does it do? I suppose I'll read the MySQL documentation on that.

The table is repaired, but I can't get the records to show up. I'm thinking I just need to "reload" the table or something. But how? We may try to restart MySQL...restarting seems to do the trick sometimes. Thought there'd be a way to restart (refresh or reload) a table. I thought that is what FLUSH TABLE did.

Anyway, thanks again for the response and continued help. It is much appreciated.

Best Regards,
DrSmartman
Reply With Quote
  #4 (permalink)  
Old 10-23-03, 23:32
bstjean bstjean is offline
Registered User
 
Join Date: Sep 2002
Location: Montreal, Canada
Posts: 219
Quote:
Originally posted by DrSmartman
Hi bstjean,

Thanks for the reply (again). We are running MySQL 3.23 on Red Hat Linux 7.3. I'm not sure I'm familiar with an Extend Check. What does it do? I suppose I'll read the MySQL documentation on that.

The table is repaired, but I can't get the records to show up. I'm thinking I just need to "reload" the table or something. But how? We may try to restart MySQL...restarting seems to do the trick sometimes. Thought there'd be a way to restart (refresh or reload) a table. I thought that is what FLUSH TABLE did.

Anyway, thanks again for the response and continued help. It is much appreciated.

Best Regards,
DrSmartman
Plenty of ways/tricks to do the job... Check these links...

http://www.mysql.com/doc/en/Repair.html
http://www.mysql.com/doc/en/REPAIR_TABLE.html
http://www.mysql.com/doc/en/Corrupte...AM_tables.html
http://www.mysql.com/doc/en/Using_mysqlcheck.html
http://www.mysql.com/doc/en/Table_maintenance.html

Hope this helps!
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