How to Get Query Statistics from MySQL for Performance Monitoring

August 1, 2019

Here at Mindsize, the performance of your online store is of the highest priority to us. We employ several methods of monitoring performance and gathering metrics. I want to highlight one method that gives us insight into the number of queries running on your MySQL database server. It is useful on a single site, and

How to extract a single table from a MySQL sql file

June 18, 2019

Ever received a large MySQL dump file and only needed one table out of it? I ran across just this issue. The full database took significant time to import and I only needed a small subsection of the DB, just one single table. Rather than waiting for it all to import, I pulled together a

Find and update WordPress posts with comments older than NNN days

March 12, 2018

I have a use case where I need to disable comments on posts in WordPress where the last comment was more than one year, or 365 days, ago. Posts can be found with this query: SELECT p.ID, p.post_title, p.post_date, p.comment_status, p.`ping_status` FROM wp_posts AS p WHERE p.ID IN ( SELECT c.comment_post_ID FROM wp_comments AS c