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

前端 未结 13 1483
一整个雨季
一整个雨季 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 13:18

    On Linux Mint 18 the default config file that has the sql-mode option set is located here :

    /usr/my.cnf
    

    And relevant line is:

    sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
    

    So You can set there.

    If not sure what config file has such option You can search for it:

    $ sudo find / -iname "*my.cnf*"
    

    And get a list:

    /var/lib/dpkg/alternatives/my.cnf
    /usr/my.cnf
    /etc/alternatives/my.cnf
    /etc/mysql/my.cnf.fallback
    /etc/mysql/my.cnf
    
    0 讨论(0)
提交回复
热议问题