{"id":7342921,"date":"2016-05-03T09:08:12","date_gmt":"2016-05-03T09:08:12","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/database-error-216\/"},"modified":"2016-08-31T17:12:08","modified_gmt":"2016-08-31T17:12:08","slug":"database-error-216","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/database-error-216\/","title":{"rendered":"Database error"},"content":{"rendered":"<p>I&#8217;m moving a WP installation from a development server to a soon-to-be-live server.  I&#8217;ve moved the installation, but am getting the basic &#8220;<br \/>\nError establishing a database connection&#8221; error.  However, a simple php script in the same directory as wp-config.php, with exactly the same details for the connection, can connect fine and query the selected DB no problem.  I&#8217;m really confused by this!<\/p>\n<p>Any pointers to what I should be checking?<\/p>\n<p>Thanks,<br \/>\nEd<\/p>\n","protected":false},"template":"","class_list":["post-7342921","topic","type-topic","status-publish","hentry","topic-tag-database-connection-error"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/7342921","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/7342921\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=7342921"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}