mysql数据库从window向liunx迁移的时候或是执行转储文件时报错Invalid default value for 'END_DATE_
处理方法:
1.找见my.cnf 或是my.ini,我的是centos7.2版本的.该文件在 /etc/my.cnf下
# find / -name my.cnf
或是:
# find / -name my.cnf
2.找见在myid下插入
sql_mode=ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION lower_case_table_names=1
效果如图:
3.重新启动mysql服务:
我的是centos7.2-7.6版本的,mysql数据库通过bpm安装,启动命令是
systemctl start mysqld.service //启动 systemctl status mysqld.service //查看启动转态 注:service mysqld status 使用这个会报错