龍巖易富通網(wǎng)絡(luò)科技有限公司

龍巖小程序開發(fā),龍巖分銷系統(tǒng)

MySQL 5.6 中 TIMESTAMP 的變化

2015.09.10 | 1142閱讀 | 0條評(píng)論 | 數(shù)據(jù)庫(kù)

從MySQL5.6.6開始這種默認(rèn)設(shè)置的方法被廢棄了。在MySQL啟動(dòng)時(shí)會(huì)出現(xiàn)以下警告: [php] [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (seedocumentation for more details). [/php] 關(guān)閉警告,在my.cnf中的mysqld加入 [php] explicit_defaults_for_timestamp=true [/php]

贊 (

發(fā)表評(píng)論