{"id":948890,"date":"2015-03-17T08:37:57","date_gmt":"2015-03-17T15:37:57","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mysql-crashing-when-pro-activated\/"},"modified":"2015-03-19T18:41:58","modified_gmt":"2015-03-20T01:41:58","slug":"mysql-crashing-when-pro-activated","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mysql-crashing-when-pro-activated\/","title":{"rendered":"MySQL crashing when Pro activated"},"content":{"rendered":"<p>Ever since the last update our website keeps crashing due to MySQL becoming unresponsive (due to CPU on the server being spun right up, not sure what comes first&#8230; chicken\/egg)<\/p>\n<p>In any case, consistently, it&#8217;s the following SQL query that fails first in the error log:<\/p>\n<pre><code>\n[16-Mar-2015 23:34:42 UTC] WordPress database error Lost connection to MySQL server during query for query SELECT SQL_CALC_FOUND_ROWS DISTINCT wp_posts.*, MIN(wp_postmeta.meta_value) as EventStartDate, tribe_event_end_date.meta_value as EventEndDate FROM wp_posts  INNER JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) LEFT JOIN wp_postmeta as tribe_event_end_date ON ( wp_posts.ID = tribe_event_end_date.post_id AND tribe_event_end_date.meta_key = &#039;_EventEndDate&#039; )  WHERE 1=1  AND ( \n  wp_term_relationships.term_taxonomy_id IN (107)\n) AND wp_posts.post_type = &#039;tribe_events&#039; AND (wp_posts.post_status = &#039;publish&#039;) AND ( \n  wp_postmeta.meta_key = &#039;_EventStartDate&#039;\n) AND wp_posts.ID IN  (    SELECT ID FROM wp_posts WHERE ID NOT IN ( SELECT post_id FROM wp_postmeta WHERE wp_postmeta.meta_key = &#039;groups-groups_read_post&#039; )    UNION ALL    SELECT post_id AS ID FROM wp_postmeta WHERE wp_postmeta.meta_key = &#039;groups-groups_read_post&#039; AND wp_postmeta.meta_value IN (&#039;&#039;)  )  AND (wp_postmeta.meta_value &gt;= &#039;2015-03-16 00:00:00&#039; OR (wp_postmeta.meta_value &lt;= &#039;2015-03-16 00:00:00&#039; AND tribe_event_end_date.meta_value &gt;= &#039;2015-03-16 00:00:00&#039; )) GROUP BY wp_posts.ID ORDER BY DATE(MIN(wp_postmeta.meta_value)) ASC, TIME(wp_postmeta.meta_value) ASC LIMIT 0, 3 made by require(&#039;wp-blog-header.php&#039;), require_once(&#039;wp-includes\/template-loader.php&#039;), include(&#039;\/themes\/wbn\/page-home.php&#039;), dynamic_sidebar, call_user_func_array, WP_Widget-&gt;display_callback, TribeEventsAdvancedListWidget-&gt;widget, TribeEventsListWidget-&gt;widget_output, tribe_get_events, TribeEventsQuery::getEvents, WP_Query-&gt;__construct, WP_Query-&gt;query, WP_Query-&gt;get_posts, W3_Db-&gt;query, W3_DbCache-&gt;query, W3_DbCallUnderlying-&gt;query, W3_Db-&gt;query, W3_DbProcessor-&gt;query, W3_Db-&gt;default_query<\/code><\/pre>\n<p>We don&#8217;t have reoccurring events. This query seems to be linked to the &#8220;event list&#8221; widget. Which is the reason I bought the plugin. <\/p>\n<p>Any ideas on why this would be taking down my database? Running the query directly on the database seems fine. I&#8217;m at a total loss. The solution so far is to completely deactivate the plugin and code my own &#8220;events list&#8221; widget.<\/p>\n","protected":false},"template":"","class_list":["post-948890","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>MySQL crashing when Pro activated -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mysql-crashing-when-pro-activated\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MySQL crashing when Pro activated -\" \/>\n<meta property=\"og:description\" content=\"Ever since the last update our website keeps crashing due to MySQL becoming unresponsive (due to CPU on the server being spun right up, not sure what comes first&#8230; chicken\/egg) In any case, consistently, it&#8217;s the following SQL query that fails first in the error log: [16-Mar-2015 23:34:42 UTC] WordPress database error Lost connection to [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mysql-crashing-when-pro-activated\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-03-20T01:41:58+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mysql-crashing-when-pro-activated\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mysql-crashing-when-pro-activated\/\",\"name\":\"MySQL crashing when Pro activated -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-03-17T15:37:57+00:00\",\"dateModified\":\"2015-03-20T01:41:58+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mysql-crashing-when-pro-activated\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mysql-crashing-when-pro-activated\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mysql-crashing-when-pro-activated\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Events Calendar PRO\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"MySQL crashing when Pro activated\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"MySQL crashing when Pro activated -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mysql-crashing-when-pro-activated\/","og_locale":"en_US","og_type":"article","og_title":"MySQL crashing when Pro activated -","og_description":"Ever since the last update our website keeps crashing due to MySQL becoming unresponsive (due to CPU on the server being spun right up, not sure what comes first&#8230; chicken\/egg) In any case, consistently, it&#8217;s the following SQL query that fails first in the error log: [16-Mar-2015 23:34:42 UTC] WordPress database error Lost connection to [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mysql-crashing-when-pro-activated\/","article_modified_time":"2015-03-20T01:41:58+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mysql-crashing-when-pro-activated\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mysql-crashing-when-pro-activated\/","name":"MySQL crashing when Pro activated -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-03-17T15:37:57+00:00","dateModified":"2015-03-20T01:41:58+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mysql-crashing-when-pro-activated\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/mysql-crashing-when-pro-activated\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mysql-crashing-when-pro-activated\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Events Calendar PRO","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/"},{"@type":"ListItem","position":5,"name":"MySQL crashing when Pro activated"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/948890","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/948890\/revisions"}],"predecessor-version":[{"id":948900,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/948890\/revisions\/948900"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=948890"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}