我在基于wordpress的网站上遇到问题。所有网站都能正常工作,但是当我打开任何类别链接时,都会收到504超时错误。当我检查日志中是否有错误时,我在日志文件中找到了此代码。谁能解释为什么会这样?预先感谢。
据我了解,当此查询是此文件问题或数据库时,数据库正在超时
[27-Jun-2018 21:30:01 UTC] WordPress database error Lost connection to MySQL server during query for query SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts LEFT JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) LEFT JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) LEFT JOIN wp_postmeta AS mt1 ON (wp_posts.ID = mt1.post_id AND mt1.meta_key = 're_post_expired' ) WHERE 1=1 AND (
wp_term_relationships.term_taxonomy_id IN (8,52,66)
) AND (
( wp_postmeta.meta_key = 're_post_expired' AND wp_postmeta.meta_value != '1' )
OR
mt1.post_id IS NULL
) AND wp_posts.post_type = 'post' AND (wp_posts.post_status = 'publish') GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESC LIMIT 3516, 12 made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/rehub-wise/category.php'), WP_Query->__construct, WP_Query->query, WP_Query->get_posts
[27-Jun-2018 21:30:01 UTC] WordPress database error Lost connection to MySQL server during query for query SELECT wp_posts.ID FROM wp_posts LEFT JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) LEFT JOIN wp_postmeta AS mt1 ON (wp_posts.ID = mt1.post_id AND mt1.meta_key = 're_post_expired' ) WHERE 1=1 AND (
( wp_postmeta.meta_key = 're_post_expired' AND wp_postmeta.meta_value != '1' )
OR
mt1.post_id IS NULL
) AND wp_posts.post_type = 'post' AND ((wp_posts.post_status = 'publish')) GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESC LIMIT 0, 5 made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/rehub-wise/category.php'), get_footer, locate_template, load_template, require_once('/themes/rehub/footer.php'), dynamic_sidebar, WP_Widget->display_callback, WP_Widget_Recent_Posts->widget, WP_Query->__construct, WP_Query->query, WP_Query->get_posts
[27-Jun-2018 21:33:01 UTC] WordPress database error Lost connection to MySQL server during query for query SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts LEFT JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) LEFT JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) LEFT JOIN wp_postmeta AS mt1 ON (wp_posts.ID = mt1.post_id AND mt1.meta_key = 're_post_expired' ) WHERE 1=1 AND (
wp_term_relationships.term_taxonomy_id IN (8,52,66)
) AND (
( wp_postmeta.meta_key = 're_post_expired' AND wp_postmeta.meta_value != '1' )
OR
mt1.post_id IS NULL
) AND wp_posts.post_type = 'post' AND (wp_posts.post_status = 'publish') GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESC LIMIT 12, 12 made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/rehub-wise/category.php'), WP_Query->__construct, WP_Query->query, WP_Query->get_posts