{"id":1452,"date":"2016-04-24T12:50:35","date_gmt":"2016-04-24T19:50:35","guid":{"rendered":"http:\/\/www.laurenwood.org\/anyway\/?p=1452"},"modified":"2016-04-25T14:40:11","modified_gmt":"2016-04-25T21:40:11","slug":"wordpress-error","status":"publish","type":"post","link":"https:\/\/www.laurenwood.org\/anyway\/2016\/04\/wordpress-error\/","title":{"rendered":"WordPress error"},"content":{"rendered":"<p>One of my cli\u00adent web\u00adsites sud\u00addenly star\u00adted giv\u00ading an error: <quote>Error estab\u00adlish\u00ading a data\u00adbase con\u00adnec\u00adtion<\/quote>. When I went to the <code>\/wp-admin<\/code> <span class=\"caps\">URL<\/span>, the error was still&nbsp;there.<\/p>\n<p>This par\u00adtic\u00adu\u00adlar web\u00adsite is on shared host\u00ading, so I logged into the CPan\u00adel and checked the data\u00adbase was still there. Then I checked the data\u00adbase and found some issues with some of the tables.<\/p>\n<pre>\n[site.wp_links] error: Table upgrade required. Please do \"REPAIR TABLE `wp_links`\" or dump\/reload to fix it!\n[site.wp_options] error: Table upgrade required. Please do \"REPAIR TABLE `wp_options`\" or dump\/reload to fix it!\n[site.wp_postmeta] status: OK\n[site.wp_posts] status: OK\n[site.wp_term_relationships] status: OK\n[site.wp_term_taxonomy] error: Table upgrade required. Please do \"REPAIR TABLE `wp_term_taxonomy`\" or dump\/reload to fix it!\n[site.wp_terms] status: OK\n[site.wp_usermeta] error: Table upgrade required. Please do \"REPAIR TABLE `wp_usermeta`\" or dump\/reload to fix it!\n[site.wp_users] error: Table upgrade required. Please do \"REPAIR TABLE `wp_users`\" or dump\/reload to fix it!\n<\/pre>\n<p>Run\u00adning those <span class=\"caps\">SQL<\/span> quer\u00adies on the appro\u00adpri\u00adate data\u00adbase in phpMy\u00adAd\u00admin fixed the prob\u00adlem. I don\u2019t know wheth\u00ader the host\u00ading com\u00adpany upgraded the data\u00adbase, or some\u00adthing happened with the auto\u00admat\u00adic Word\u00adPress upgrade sys\u00adtem, or if some\u00adthing else caused the problem.<\/p>\n<p>[Update] There were a bunch of oth\u00ader errors that cropped up after\u00adwards with the White Screen of Death; I had to call the host\u00ading com\u00adpany to sort out the serv\u00ader-side errors caus\u00ading those. It\u2019s pos\u00adsible those errors were the ori\u00adgin\u00adal cause of the data\u00adbase prob\u00adlems, whatever they&nbsp;were.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of my cli\u00adent web\u00adsites sud\u00addenly star\u00adted giv\u00ading an error: Error estab\u00adlish\u00ading a data\u00adbase con\u00adnec\u00adtion. When I went to the \/wp-admin <span class=\"caps\">URL<\/span>, the error was still&nbsp;there. This par\u00adtic\u00adu\u00adlar web\u00adsite is on shared host\u00ading, so I logged into the CPan\u00adel and checked the data\u00adbase was still there. Then I checked the data\u00adbase and found some issues \u2026 <a href=\"https:\/\/www.laurenwood.org\/anyway\/2016\/04\/wordpress-error\/\" class=\"more-link\">Con\u00adtin\u00adue read\u00ading<span class=\"screen-reader-text\"> \u201cWord\u00adPress&nbsp;error\u201d<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"wp_typography_post_enhancements_disabled":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":3,"activitypub_interaction_policy_quote":"","activitypub_status":"","footnotes":""},"categories":[6,4],"tags":[],"class_list":["post-1452","post","type-post","status-publish","format-standard","hentry","category-technology","category-wp-mechanics"],"_links":{"self":[{"href":"https:\/\/www.laurenwood.org\/anyway\/wp-json\/wp\/v2\/posts\/1452","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.laurenwood.org\/anyway\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.laurenwood.org\/anyway\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.laurenwood.org\/anyway\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.laurenwood.org\/anyway\/wp-json\/wp\/v2\/comments?post=1452"}],"version-history":[{"count":3,"href":"https:\/\/www.laurenwood.org\/anyway\/wp-json\/wp\/v2\/posts\/1452\/revisions"}],"predecessor-version":[{"id":1455,"href":"https:\/\/www.laurenwood.org\/anyway\/wp-json\/wp\/v2\/posts\/1452\/revisions\/1455"}],"wp:attachment":[{"href":"https:\/\/www.laurenwood.org\/anyway\/wp-json\/wp\/v2\/media?parent=1452"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.laurenwood.org\/anyway\/wp-json\/wp\/v2\/categories?post=1452"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.laurenwood.org\/anyway\/wp-json\/wp\/v2\/tags?post=1452"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}