WordPress database error MySQL server has gone away
-
Hi
We have been experiencing some issues and when I reviewed our php error logs I have seen a few entries suggesting that a long running query has timed out. The error we see is;
WordPress database error MySQL server has gone away for query #012#011#011#011SELECT P.ID, P.post_content#012#011#011#011FROM wp_posts AS P#012#011#011#011LEFT JOIN wp_yoast_indexable AS I#012#011#011#011#011ON P.ID = I.object_id#012#011#011#011#011AND I.link_count IS NOT NULL#012#011#011#011#011AND I.object_type = ‘post’#012#011#011#011LEFT JOIN wp_yoast_seo_links AS L#012#011#011#011#011ON L.post_id = P.ID#012#011#011#011#011AND L.target_indexable_id IS NULL#012#011#011#011#011AND L.type = ‘internal’#012#011#011#011#011AND L.target_post_id IS NOT NULL#012#011#011#011#011AND L.target_post_id != 0#012#011#011#011WHERE ( I.object_id IS NULL OR L.post_id IS NOT NULL )#012#011#011#011#011AND P.post_status = ‘publish’#012#011#011#011#011AND P.post_type IN (‘post’, ‘page’, ‘testimonial’, ‘product’, ‘wpb_gutenberg_param’, ‘sfs-footer’, ‘wppcp_group’, ‘wppcp_fproduct_tabs’)#012#011#011#011LIMIT 3 /* From [bags-of-books.co.uoast-yk/wp-cron.php?doing_wp_cron=1771605154.8753519058227539062500] in [/nas/content/live/bagsofbomaster/wp-content/plugins/wordpress-seo/src/actions/indexing/post-link-indexing-action.php:56] */ made by do_action_ref_array(‘wpseo_indexable_index_batch’), WP_Hook->do_action, WP_Hook->apply_filters, Yoast\WP\SEO\Integrations\Admin\Background_Indexing_Integration->index, Yoast\WP\SEO\Actions\Indexing\Abstract_Link_Indexing_Action->index, Yoast\WP\SEO\Actions\Indexing\Post_Link_Indexing_Action->get_objects
I have no idea how to resolve this. Normally I’d be able to establish what the actual query is and to make sure the appropriate indexes are in place and if they are that they are used in execution of the query. I have verified that all yoast tables have indexes and optimised the tables. The tables are all of the type InnoDB. Other than wp_yoast_prominent_words and wp_yoast_seo_links which have a collation of utf8mb3_general_ci the other tables have a collation of utf8mb4_unicode_520_ci.
Any suggestions how to resolve this error would be appreciated.
The page I need help with: [log in to see the link]
You must be logged in to reply to this topic.