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 · 56 weeks and 5 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 · 49 weeks and 2 days ago
looneyhans · 43 weeks and 2 days ago
will starting doing this now.. mold remediation thanks for helping me!
idasanka · 38 weeks and 4 days ago
kitchen remodeling des moines How can I get more infos about that products
yeoyeo · 37 weeks ago
This is exactly what I was looking for. Thank God I found this site! Thanks for sharing this stairs
sammm · 33 weeks and 6 days ago
Directory under control missoula fence
geebranz · 19 weeks ago
I believe that in everybody's life comes a period when they worry about their safe future. And I'm no exception to this. I have saved quite a big amount and have chosen to start a company of my own. However, my expertise was not sufficient for this. I decided to turn to a hire dedicated developers. They offered me some unique suggestions to promote my company and they also found an excellent team of IT professionals to fulfill my requirements. It's the finest service!
illianna · 11 weeks and 2 days ago
The decision to buy custom essay changed my life greatly! It was so easy to get the necessary paper, and I did not pay a lot for it. Now I understand why students like the writing service, and I will be very happy to contact them again.
Sandra50 · 6 weeks and 6 days ago
I your writing style truly enjoying this internet site . girl scout cookies wax
robinjack · 6 weeks and 4 days ago
For everyone's knowledge, before the release of this product, Gary tested its effectiveness to 15 people and it became successful. tko carts
robinjack · 5 weeks 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: