{"id":279,"date":"2017-07-22T19:12:28","date_gmt":"2017-07-22T19:12:28","guid":{"rendered":"http:\/\/www.3pixls.com\/blog\/?p=279"},"modified":"2017-07-22T19:12:28","modified_gmt":"2017-07-22T19:12:28","slug":"warning-mysql_query-unable-to-save-result-set-in-wordpress","status":"publish","type":"post","link":"https:\/\/www.3pixls.com\/blog\/warning-mysql_query-unable-to-save-result-set-in-wordpress\/","title":{"rendered":"warning: mysql_query(): unable to save result set in wordpress"},"content":{"rendered":"<p><code>Warning: mysqli_query(): MySQL server has gone away in siteroot\\wp-includes\\wp-db.php on line 1878<\/code><br \/>\nand<br \/>\n<code>Warning: mysqli_query(): Error reading result set's header in siteroot\\wp-includes\\wp-db.php on line 1878<\/code><\/p>\n<p>&nbsp;<\/p>\n<h4>Modify your wp-config.php file<\/h4>\n<p>Open wp-config.php with a text editor such as Notepad. The wp-config.php file is located in your WordPress installation folder in your hosting account. If there is no file called wp-config.php, open\u00a0<strong>wp-config-sample.php<\/strong>\u00a0and save it as\u00a0<strong>wp-config.php<\/strong>. You will be working in this file from now on.<\/p>\n<p>In wp-config.php, locate the section that looks like this example:<\/p>\n<div class=\"hacker code-sample-blue\">\/** The name of the database for WordPress *\/<br \/>\ndefine(&#8216;DB_NAME&#8217;, &#8216;putyourdbnamehere&#8217;);<br \/>\n\/** MySQL database username *\/<br \/>\ndefine(&#8216;DB_USER&#8217;, &#8216;usernamehere&#8217;);<br \/>\n\/** MySQL database password *\/<br \/>\ndefine(&#8216;DB_PASSWORD&#8217;, &#8216;yourpasswordhere&#8217;);<br \/>\n\/** MySQL hostname *\/<br \/>\ndefine(&#8216;DB_HOST&#8217;, &#8216;localhost&#8217;);<\/div>\n<p>Enter the Database information from your Database as follows:<\/p>\n<ul>\n<li><strong>putyourdbnamehere<\/strong>\u00a0is your MySQL Database Name<\/li>\n<li><strong>usernamehere<\/strong>\u00a0is your MySQL User Name<\/li>\n<li><strong>yourpasswordhere<\/strong>\u00a0is your MySQL password<\/li>\n<li><strong>localhost<\/strong>\u00a0is your MySQL Host Name<\/li>\n<\/ul>\n<p>WordPress includes security keys which add encryption of information stored in user&#8217;s cookies. These must be set manually in the wp-config.php file. Locate the section of the file that looks like this:<\/p>\n<div class=\"hacker code-sample-blue\">define(&#8216;AUTH_KEY&#8217;, &#8216;put your unique phrase here&#8217;);<br \/>\ndefine(&#8216;SECURE_AUTH_KEY&#8217;, &#8216;put your unique phrase here&#8217;);<br \/>\ndefine(&#8216;LOGGED_IN_KEY&#8217;, &#8216;put your unique phrase here&#8217;);<br \/>\ndefine(&#8216;NONCE_KEY&#8217;, &#8216;put your unique phrase here&#8217;);<\/div>\n<p>Go to\u00a0<a href=\"http:\/\/api.wordpress.org\/secret-key\/1.1\/\">WordPress&#8217; online key generator<\/a>\u00a0and insert the keys in place of the placeholder text in the wp-config.php file. When you are finished, save and close the wp-config.php file.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Warning: mysqli_query(): MySQL server has gone away in siteroot\\wp-includes\\wp-db.php on line 1878 and Warning: mysqli_query(): Error reading result set&#8217;s header in siteroot\\wp-includes\\wp-db.php on line 1878 &nbsp; Modify your wp-config.php file Open wp-config.php with a text editor such as Notepad. The wp-config.php file is located in your WordPress installation folder in your hosting account. If there [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[9],"tags":[],"_links":{"self":[{"href":"https:\/\/www.3pixls.com\/blog\/wp-json\/wp\/v2\/posts\/279"}],"collection":[{"href":"https:\/\/www.3pixls.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.3pixls.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.3pixls.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.3pixls.com\/blog\/wp-json\/wp\/v2\/comments?post=279"}],"version-history":[{"count":1,"href":"https:\/\/www.3pixls.com\/blog\/wp-json\/wp\/v2\/posts\/279\/revisions"}],"predecessor-version":[{"id":280,"href":"https:\/\/www.3pixls.com\/blog\/wp-json\/wp\/v2\/posts\/279\/revisions\/280"}],"wp:attachment":[{"href":"https:\/\/www.3pixls.com\/blog\/wp-json\/wp\/v2\/media?parent=279"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.3pixls.com\/blog\/wp-json\/wp\/v2\/categories?post=279"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.3pixls.com\/blog\/wp-json\/wp\/v2\/tags?post=279"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}