2024年7月27日 星期六
通知

[Warning] TIMESTAMP with implicit DEFAULT value is deprecated

重启MySQL服务时出现以下警告,网上搜索了一下,可以关闭此警告,特此记录,方便事后查阅。MySQL5.6.6开始这种默认设置的方法被废弃了。在MySQL启动时会出现以下警告:

[Warning] TIMESTAMP with implicit DEFAULT value is decodecated. Please use --explicit_defaults_for_timestamp

关闭警告,在my.cnf中加入

[mysqld]
explicit_defaults_for_timestamp=true
原创文章,转载请注明: 转载自荣耀博客
本文链接地址: [Warning] TIMESTAMP with implicit DEFAULT value is deprecated

关于 荣耀博客

好记性,不如烂笔头。

发表回复