{"id":1658,"date":"2022-05-30T14:23:46","date_gmt":"2022-05-30T14:23:46","guid":{"rendered":"https:\/\/www.velaninfo.com\/rs\/?post_type=techtips&#038;p=1658"},"modified":"2022-05-30T14:23:46","modified_gmt":"2022-05-30T14:23:46","slug":"how-to-disable-strict-mode-in-mysql","status":"publish","type":"techtips","link":"https:\/\/www.velaninfo.com\/rs\/techtips\/how-to-disable-strict-mode-in-mysql\/","title":{"rendered":"How to disable Strict Mode in MySQL?"},"content":{"rendered":"<p>There are 2 steps we can follow to<a href=\"https:\/\/www.velaninfo.com\/rs\/tech-tips\/mysql\/\"><strong> turn off MySQL Strict Mode<\/strong><\/a>. These 2 methods work in most versions of MySQL and MariaDB.<\/p>\n<ol>\n<li><strong> Disable strict Mode with my.cnf \/ my.ini<\/strong><\/li>\n<\/ol>\n<p>This method disables it by changing the SQL_MODE value to a my.cnf (Linux) file OR my.ini (Windows server) file and restart the MySQL server.<\/p>\n<p>my.cnf file can be found in one of the few locations (depending on which distribution you are using). The most common places are \/etc\/my.cnf and \/etc\/mysql\/my.cnf<\/p>\n<p>NOTE: Make the following changes to my.ini (Windows Operating System) or my.cnf (Linux Operating System). Inside that file, look up the [mysqld] heading and check the sql_mode value. It may look like this (actual sql_mode value may vary):<\/p>\n<p>See the following line:<\/p>\n<p>SQL-mode = &#8220;STRICT_TRANS_TABLES, NO_AUTO_CREATE_USER, NO_ENGINE_SUBSTITUTION&#8221;<\/p>\n<p>You can change the sql_mode value to NO_ENGINE_SUBSTITUTION to completely disable strict mode, but you may want to check each default mode before disabling it or simply change it to:<\/p>\n<p>SQL-mode = &#8220;&#8221; (i.e. Empty)<\/p>\n<p>If sql_mode is not set, you can add it under the heading [mysqld], then save the file, and restart MySQL.<\/p>\n<p>Restart MySQL service.<\/p>\n<p>OR<\/p>\n<ol start=\"2\">\n<li><strong> Disable Strict Mode with SQL<\/strong><\/li>\n<\/ol>\n<p>This method allows you to disable strict mode on your MySQL server using the following command.<\/p>\n<p>$ MySQL -u root -p -e &#8220;SET GLOBAL sql_mode = &#8216;NO_ENGINE_SUBSTITUTION&#8217;;&#8221;<\/p>\n<p>Now, you can verify that the mode is set using the following:<\/p>\n<p>$ MySQL -u root -p -e &#8220;CHOOSE @@ GLOBAL.sql_mode;&#8221;<\/p>\n<p>At Velan, our<a href=\"https:\/\/www.velaninfo.com\/mservices\/managed-it-services\"><strong> server support engineers<\/strong><\/a> can set up MySQL servers and help to disable strict mode. If you are interested in our service, please fill out the <a href=\"https:\/\/www.velaninfo.com\/contact\"><strong>quick connect form<\/strong><\/a> to get in touch with us.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are 2 steps we can follow to turn off MySQL Strict Mode. These 2 methods work in most versions of MySQL and MariaDB. Disable strict Mode with my.cnf \/ my.ini This method disables it by changing the SQL_MODE value to a my.cnf (Linux) file OR my.ini (Windows server) file and restart the MySQL server&#8230;.<a class=\"continue-reading text-uppercase\" href=\"https:\/\/www.velaninfo.com\/rs\/techtips\/how-to-disable-strict-mode-in-mysql\/\"> Continue Reading <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.velaninfo.com\/rs\/wp-content\/themes\/velaninfo\/images\/reading_arw.png\" alt=\"Continue Reading\" width=\"16\" height=\"12\"\/><\/a><\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"tags":[],"class_list":["post-1658","techtips","type-techtips","status-publish","hentry","Categories_tech_tip-mysql"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v19.5 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to disable Strict Mode in MySQL?<\/title>\n<meta name=\"description\" content=\"How to disable Strict Mode in MySQL PHPMyAdmin, Cpanel, and workbench. Turn on and Turn off my SQL Strict Mode Ubuntu.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.velaninfo.com\/rs\/techtips\/how-to-disable-strict-mode-in-mysql\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to disable Strict Mode in MySQL?\" \/>\n<meta property=\"og:description\" content=\"How to disable Strict Mode in MySQL PHPMyAdmin, Cpanel, and workbench. Turn on and Turn off my SQL Strict Mode Ubuntu.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.velaninfo.com\/rs\/techtips\/how-to-disable-strict-mode-in-mysql\/\" \/>\n<meta property=\"og:site_name\" content=\"Velan\" \/>\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:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/how-to-disable-strict-mode-in-mysql\\\/\",\"url\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/how-to-disable-strict-mode-in-mysql\\\/\",\"name\":\"How to disable Strict Mode in MySQL?\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/#website\"},\"datePublished\":\"2022-05-30T14:23:46+00:00\",\"description\":\"How to disable Strict Mode in MySQL PHPMyAdmin, Cpanel, and workbench. Turn on and Turn off my SQL Strict Mode Ubuntu.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/how-to-disable-strict-mode-in-mysql\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/how-to-disable-strict-mode-in-mysql\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/how-to-disable-strict-mode-in-mysql\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tech Tips\",\"item\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to disable Strict Mode in MySQL?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/#website\",\"url\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/\",\"name\":\"Velan\",\"description\":\"Velaninfo Services India Pvt Ltd\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to disable Strict Mode in MySQL?","description":"How to disable Strict Mode in MySQL PHPMyAdmin, Cpanel, and workbench. Turn on and Turn off my SQL Strict Mode Ubuntu.","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:\/\/www.velaninfo.com\/rs\/techtips\/how-to-disable-strict-mode-in-mysql\/","og_locale":"en_US","og_type":"article","og_title":"How to disable Strict Mode in MySQL?","og_description":"How to disable Strict Mode in MySQL PHPMyAdmin, Cpanel, and workbench. Turn on and Turn off my SQL Strict Mode Ubuntu.","og_url":"https:\/\/www.velaninfo.com\/rs\/techtips\/how-to-disable-strict-mode-in-mysql\/","og_site_name":"Velan","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.velaninfo.com\/rs\/techtips\/how-to-disable-strict-mode-in-mysql\/","url":"https:\/\/www.velaninfo.com\/rs\/techtips\/how-to-disable-strict-mode-in-mysql\/","name":"How to disable Strict Mode in MySQL?","isPartOf":{"@id":"https:\/\/www.velaninfo.com\/rs\/#website"},"datePublished":"2022-05-30T14:23:46+00:00","description":"How to disable Strict Mode in MySQL PHPMyAdmin, Cpanel, and workbench. Turn on and Turn off my SQL Strict Mode Ubuntu.","breadcrumb":{"@id":"https:\/\/www.velaninfo.com\/rs\/techtips\/how-to-disable-strict-mode-in-mysql\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.velaninfo.com\/rs\/techtips\/how-to-disable-strict-mode-in-mysql\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.velaninfo.com\/rs\/techtips\/how-to-disable-strict-mode-in-mysql\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.velaninfo.com\/rs\/"},{"@type":"ListItem","position":2,"name":"Tech Tips","item":"https:\/\/www.velaninfo.com\/rs\/techtips\/"},{"@type":"ListItem","position":3,"name":"How to disable Strict Mode in MySQL?"}]},{"@type":"WebSite","@id":"https:\/\/www.velaninfo.com\/rs\/#website","url":"https:\/\/www.velaninfo.com\/rs\/","name":"Velan","description":"Velaninfo Services India Pvt Ltd","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.velaninfo.com\/rs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/techtips\/1658","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/techtips"}],"about":[{"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/types\/techtips"}],"author":[{"embeddable":true,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/comments?post=1658"}],"version-history":[{"count":1,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/techtips\/1658\/revisions"}],"predecessor-version":[{"id":1659,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/techtips\/1658\/revisions\/1659"}],"wp:attachment":[{"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/media?parent=1658"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/tags?post=1658"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}