How to make sql-mode=“NO_ENGINE_SUBSTITUTION” permanent in MySQL my.cnf

前端 未结 13 1480
一整个雨季
一整个雨季 2020-12-13 12:52

UPDATE FIXED 1/18/15

After we recently updated to MySQL 5.6.27 (from the Ubuntu repo), this option now works. So this appears to have been a problem with the previ

13条回答
  •  醉梦人生
    2020-12-13 12:57

    It should be:

    [mysqld]
    sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
    

    instead of

    [mysqld]
    sql_mode="NO_ENGINE_SUBSTITUTION"
    

    then restart mysqld service.

提交回复
热议问题