【mysql】 TIMESTAMP with implicit DEFAULT value is deprecated. Please use –explicit

启动Mysql 报错 

[Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use –explicit_defaults_for_timestamp server option (see documentation for more details).

[警告]不赞成使用隐式DEFAULT值的TIMESTAMP。请使用–explicit_defaults_for_timestamp服务器选项(有关更多详细信息,请参阅文档)。

【mysql】 TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit

在配置/etc/my.cnf中 [mysqld] 底下加入

explicit_defaults_for_timestamp=true

【mysql】 TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit

重启Mysql,OK

本文来自网络,不代表协通编程立场,如若转载,请注明出处:https://net2asp.com/70572de08d.html