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. Please refer to Restart > MySQL in Windows or Linux system. 

Was this answer helpful? 0 Users Found This Useful (0 Votes)