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
https://forums.phpfreaks.com/topic/102566-please-help/
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
https://forums.phpfreaks.com/topic/102566-please-help/#findComment-532191
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.