+234 907 428 8984 support@hostbility.com
Affiliate Program 24x7x365 Support

Knowledgebase

How to turn on/off Mysql strict mode in the Windows server? Print

  • 0


By default in the windows server, the strict mode will be enabled on MySQL. Please refer to the following steps to disable strict mode.

  1. Login to your windows server.

  2. You will need to find my.ini to disable strict mode in MySQL.  Go to C:\ProgramData\MySQL\MySQL Server 5.7

  3. In Windows OS, the ProgramData folder is hidden. To show hidden folder, you can tick on "View" from Menu Bar -> Select hidden items.

  4. You can find the my.ini file from "C:\ProgramData\MySQL\MySQL Server 5.7\my.ini

  5. Open my.ini file with Notepad/Notepad++ and find the following line.

    sql-mode = "STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"


  6. You need to set sql-mode to Blank and save the file.

    sql-mode = ""


  7. Restart the MySql service from service.


Was this answer helpful?

« Back

Copyright © 2024 HOSTBILITY. All Rights Reserved.