{"id":3242,"date":"2016-09-29T21:24:32","date_gmt":"2016-09-29T21:24:32","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=3242"},"modified":"2016-09-29T21:24:32","modified_gmt":"2016-09-29T21:24:32","slug":"disable-mysql-strict-mode-server","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2016\/09\/29\/disable-mysql-strict-mode-server\/","title":{"rendered":"How do I disable MySQL strict mode on the server?"},"content":{"rendered":"<p>Please follow the under mentioned instructions to turn off the MySQL strict mode. Make the following changes in the &#8220;my.ini\/my.cnf&#8221;:<\/p>\n<p>Look for the following line:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nsql-mode = &quot;STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION&quot;\n\n<\/pre>\n<p>Change it to:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\nsql_mode=&quot;&quot;\n\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n\nRestart the MySQL service.\n\n<\/pre>\n<p>or<\/p>\n<p>Look for the following line , this line will set MySQL strict mode<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\nsql-mode = &quot;STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION&quot;\n\n<\/pre>\n<p>To disable MySQL strict mode, you can change the above line as follow:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\nsql_mode=&quot;TRADITIONAL,NO_AUTO_CREATE_USER,,NO_ENGINE_SUBSTITUTION&quot;\n\n<\/pre>\n<p>Restart the MySQL service.<\/p>\n<p>You may be able to run an SQL query within your database management tool such as phpMyAdmin which can normally be found from your web hosting control panel:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\nSET @@global.sql_mode= &#039;&#039;;\n\n<\/pre>\n<p>Test<\/p>\n<p>Run the following:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n#mysql -uroot -p -e &#039;select @@GLOBAL.sql_mode;&#039;\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n+------------------------+\n| @@GLOBAL.sql_mode      |\n+------------------------+\n| TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION |\n+------------------------+\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Please follow the under mentioned instructions to turn off the MySQL strict mode. Make the following changes in the &#8220;my.ini\/my.cnf&#8221;: Look for the following line: sql-mode = &quot;STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION&quot; Change it to: sql_mode=&quot;&quot; Restart the MySQL service. or Look for the following line , this line will set MySQL strict mode sql-mode = &quot;STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION&quot; To disable &#8230; <a title=\"How do I disable MySQL strict mode on the server?\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2016\/09\/29\/disable-mysql-strict-mode-server\/\" aria-label=\"Read more about How do I disable MySQL strict mode on the server?\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[70],"tags":[],"class_list":["post-3242","post","type-post","status-publish","format-standard","hentry","category-mysql"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/3242","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=3242"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/3242\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=3242"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=3242"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=3242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}