{"id":10911,"date":"2025-01-17T06:52:24","date_gmt":"2025-01-17T06:52:24","guid":{"rendered":"https:\/\/www.trustedhosting.in\/blog\/?p=10911"},"modified":"2025-01-17T06:52:24","modified_gmt":"2025-01-17T06:52:24","slug":"how-to-disable-mysql-strict-mode","status":"publish","type":"post","link":"https:\/\/www.webystrata.com\/blog\/how-to-disable-mysql-strict-mode\/","title":{"rendered":"How to Disable  MySQL Strict Mode"},"content":{"rendered":"<h1><a href=\"https:\/\/www.trustedhosting.in\/cpanel-hosting.html\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-10913 size-full\" title=\"How to Disable  MySQL Strict Mode\" src=\"https:\/\/www.trustedhosting.in\/blog\/wp-content\/uploads\/2025\/01\/1013994_OJ8XXC0.jpg\" alt=\"How to Disable  MySQL Strict Mode\" width=\"1300\" height=\"1300\" srcset=\"https:\/\/www.webystrata.com\/blog\/wp-content\/uploads\/2025\/01\/1013994_OJ8XXC0.jpg 1300w, https:\/\/www.webystrata.com\/blog\/wp-content\/uploads\/2025\/01\/1013994_OJ8XXC0-300x300.jpg 300w, https:\/\/www.webystrata.com\/blog\/wp-content\/uploads\/2025\/01\/1013994_OJ8XXC0-1024x1024.jpg 1024w, https:\/\/www.webystrata.com\/blog\/wp-content\/uploads\/2025\/01\/1013994_OJ8XXC0-150x150.jpg 150w, https:\/\/www.webystrata.com\/blog\/wp-content\/uploads\/2025\/01\/1013994_OJ8XXC0-768x768.jpg 768w\" sizes=\"auto, (max-width: 1300px) 100vw, 1300px\" \/><\/a><\/h1>\n<h1>How to Disable MySQL Strict Mode<\/h1>\n<div class=\"instructions screensteps-textblock\" tabindex=\"0\">\n<div id=\"text-content_8d4ab0f8-b026-4bfd-bf82-ad94bd597887\" class=\"text-block-content\">\n<blockquote><p>You\u00a0<strong>must<\/strong>\u00a0disable MySQL\u00ae Strict Mode in order to run WHMCS on your server. We recommend disabling it at the time of installation to avoid later database errors.<\/p><\/blockquote>\n<\/div>\n<\/div>\n<div class=\"instructions screensteps-textblock screensteps-wrapper--tip screensteps-wrapper\" tabindex=\"0\" role=\"status\" aria-label=\"tip\">\n<div id=\"text-content_9ca65d67-bd3f-4a6d-82f8-df53980873f0\" class=\"text-block-content\">\n<p>Disabling MySQL Strict Mode requires full\u00a0<code>root<\/code>\u00a0permissions for your server. If you do not have\u00a0<code>root<\/code>-level access, contact your <a href=\"https:\/\/www.trustedhosting.in\/cpanel-hosting.html\" target=\"_blank\" rel=\"noopener\">hosting<\/a> provider or system administrator.<\/p>\n<\/div>\n<\/div>\n<div class=\"step step-depth-1\" data-step-uuid=\"b5349381-8432-427b-a832-14322fd71ec9\">\n<h2 id=\"disable-mysql-strict-mode\" tabindex=\"0\">Disable MySQL Strict Mode<\/h2>\n<div class=\"instructions screensteps-textblock\" tabindex=\"0\">\n<div id=\"text-content_cf06f950-4a9b-4892-999b-f416450b0420\" class=\"text-block-content\">\n<p>You can use several different methods to disable MySQL Strict Mode depending on your preferences and the control panel you use.<\/p>\n<\/div>\n<\/div>\n<div class=\"instructions screensteps-textblock screensteps-wrapper--info screensteps-wrapper\" tabindex=\"0\" role=\"status\" aria-label=\"info\">\n<div id=\"text-content_4ab2c9c2-8c77-4816-b208-d30d650dcd40\" class=\"text-block-content\">\n<blockquote><p>The example below illustrates disabling MySQL Strict Mode on a cPanel server using the\u00a0<strong>Terminal<\/strong>\u00a0feature. You can also use these steps using an SSH client.<\/p><\/blockquote>\n<\/div>\n<\/div>\n<div class=\"instructions screensteps-textblock\" tabindex=\"0\">\n<div id=\"text-content_b19369d9-50bc-4c48-8ee3-50804707f186\" class=\"text-block-content\">\n<p>To disable MySQL Strict Mode:<\/p>\n<p>1. Log in to WHM as the root user and go to\u00a0<strong>Server Configuration &gt;&gt; Terminal<\/strong>.<\/p>\n<p>2. Open the MySQL configuration file using your preferred text editor (for example,\u00a0<code>nano<\/code>\u00a0or\u00a0<code>vi<\/code>). For cPanel servers, this is the\u00a0<code>\/etc\/my.cnf<\/code>\u00a0file:<\/p>\n<div class=\"code-block copy-clipboard--parent\">\n<pre id=\"code-content_e04e2301-0543-489b-93fb-1279798702ea\" tabindex=\"0\"><code>nano -w \/etc\/my.cnf<\/code><\/pre>\n<div class=\"copy-clipboard copy-clipboard--tt-right\">3. Edit the <code>sql_mode<\/code>\u00a0setting to remove the current value:<\/div>\n<\/div>\n<div class=\"code-block copy-clipboard--parent\">\n<pre id=\"code-content_c6285f5d-5567-461f-9dce-3d8c07d4aca7\" tabindex=\"0\"><code>sql_mode=<\/code><\/pre>\n<div class=\"copy-clipboard copy-clipboard--tt-right\">4. Restart the MySQL service. To do this in WHM, go to <strong>Restart Services &gt;&gt; SQL Server (MySQL)<\/strong>.<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>How to Disable MySQL Strict Mode You\u00a0must\u00a0disable MySQL\u00ae Strict Mode in order to run WHMCS on your server. We recommend&hellip;<\/p>\n","protected":false},"author":1,"featured_media":10913,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-10911","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-whmcs"],"_links":{"self":[{"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/posts\/10911","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/comments?post=10911"}],"version-history":[{"count":2,"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/posts\/10911\/revisions"}],"predecessor-version":[{"id":10914,"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/posts\/10911\/revisions\/10914"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/media\/10913"}],"wp:attachment":[{"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/media?parent=10911"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/categories?post=10911"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/tags?post=10911"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}