High CPU usage with mysql on WordPress
-
I was trying to do some maintenance to the Ubuntu server running mysql and apache2 using these commands:
SELECT table_schema AS “Database”, sum(data_length + index_length)/1024/1024 AS “size in MB” FROM information_schema.TABLES GROUP BY table_schema;
optimize table wp_commentmeta, wp_comments, wp_links, wp_odb_logs, wp_options, wp_postmeta, wp_posts, wp_term_relationships, wp_term_taxonomy, wp_termmeta, wp_terms, wp_usermeta, wp_users, wp_yoast_seo_links, wp_yoast_seo_meta;
Then I went to the Feedback section of WordPress to delete old feedback around 24. Select them all and clicked send to trash.
Usually this process is quick. But it was taking a long time.
So I restarted the server, and now, mysql is taking all the cpu usage.Anyway to troubleshoot and fix this problem?
Thanks,
The topic ‘High CPU usage with mysql on WordPress’ is closed to new replies.