centos mysql 8: doesn’t have a default value
修改配置文件/etc/my.cnf
在[mysqld]下添加
sql-mode='NO_ENGINE_SUBSTITUTION'
mysql 8以前的版本用:sql-mode='NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'
重启mysql
>select @@global.sql_mode;
转载请记录来源!!!!
https://www.cnblogs.com/leihongnu/