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

前端 未结 13 1551
一整个雨季
一整个雨季 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条回答
  •  -上瘾入骨i
    2020-12-13 13:02

    The solution is pretty easy... Searched for it for a while and it turns out that you just have to edit 2 config-files:

    • /usr/my.cnf
    • /etc/mysql/my.cnf

    in both files you'll have to add:

    [mysqld]
    ...
    sql_mode=NO_ENGINE_SUBSTITUTION
    

    At least, that's what's working for 5.6.24-2+deb.sury.org~precise+2

提交回复
热议问题