[root@192 tian]# mysql -uroot -pXXXX rule < cron_rule.sql
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1067 (42000) at line 24: Invalid default value for 'update_time'
解决:
在mysql安装目录下找见my.cnf
[mysqld] 下面添加
sql_mode=STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
explicit_defaults_for_timestamp=1
网友评论