从MySQL5.6.6开始这种默认设置的方法被废弃了。在MySQL启动时会出现以下警告: [php] [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (seedocumentation for more details). [/php] 关闭警告,在my.cnf中的mysqld加入 [php] explicit_defaults_for_timestamp=true [/php]
发表评论