Find non-standard files in mysql data directory

find . -type f -not -name "*.frm" -not -name "*.MYI" -not -name "*.MYD" -not -name "*.TRG" -not -name "*.TRN" -not -name "db.opt"
These files should be removed to keep the size of data directory under control. If you exclude the known important file types like frm and MYD then what-ever is left can be either moved or deleted.

By: shantanuo
2020-02-09 06:45:50

What Others Think

I am not good at programming so that it was too difficult for me to understand what you have shared here. Gsm antenna can you explain it? I hope that I want to learn it so it would be very easy if you can give us am explanation for it.
zaiyamariya · 34 weeks and 2 days ago
Nice to see this post. I hope the post will be helpful for the programmers. In this post, the author shares some many programming codes, and these codes are really helpful for the programmers. Keep sharing this kind of post for us. Orange mobile network UK
ryanbabraham · 26 weeks and 6 days ago
looneyhans · 20 weeks and 6 days ago
will starting doing this now.. mold remediation thanks for helping me!
idasanka · 16 weeks and 2 days ago
kitchen remodeling des moines How can I get more infos about that products
yeoyeo · 14 weeks and 4 days ago
This is exactly what I was looking for. Thank God I found this site! Thanks for sharing this stairs
sammm · 11 weeks and 3 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: