How to get rid of STRICT SQL mode in MySQL

后端 未结 7 765
日久生厌
日久生厌 2020-12-15 04:59

This is a follow up to this question MYSQL incorrect DATETIME format

How to get rid of STRICT_TRANS_TABLES once and for all?

mysql --help report

7条回答
  •  庸人自扰
    2020-12-15 05:12

    So in the end I removed the MySQL Server I got from the mysql.com, reinstalled it via Homebrew and had to edit

    /usr/local/Cellar/mysql/5.6.xx/my.cnf
    

    Where I could comment out the darned STRICT_TRANS_TABLES.

    However this doesn't explain why the default config overrides the one from /etc/my.cnf, but I spent too much time on this already as it is. And by the way I am still not sure what to do with the mysql.com provided distribution.

提交回复
热议问题