Jump to content

Please help


kingbikram

Recommended Posts

Hello MySQL Guru's,

I need some help on mysql and i have no idea about it. I am a sys. admin.

 

I have two files

248296  file1.MYD

108112  file2.MYI

 

These files are occupying some space which is giving hard time to the file system.

I want to clean/shrink them.

 

Can I do it and how?

 

Thanks a million in advance

Link to comment
Share on other sites

  • 2 weeks later...

Those are data (*.MYD) and index (*.MYI) files for a mysql table.  if you delete them, it will delete the mysql table (and probably screw with the database as well).  If you need to shrink them, remove some data from the table.

 

If the table is no longer inserted into (i.e. it's read only) you can use myisampack to compress it.

 

You can try and OPTIMIZE the table, but you probably won't get much improvement.

 

http://dev.mysql.com/doc/refman/5.0/en/optimize-table.html

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.