從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]
發表評論