2017-07-28T12:46:35.138596Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).

創(chuàng)新互聯(lián)專注于企業(yè)全網(wǎng)營銷推廣、網(wǎng)站重做改版、陽江網(wǎng)站定制設計、自適應品牌網(wǎng)站建設、H5網(wǎng)站設計、電子商務商城網(wǎng)站建設、集團公司官網(wǎng)建設、成都外貿(mào)網(wǎng)站建設、高端網(wǎng)站制作、響應式網(wǎng)頁設計等建站業(yè)務,價格優(yōu)惠性價比高,為陽江等各大城市提供網(wǎng)站開發(fā)制作服務。
其實這個報錯在安裝的初始化的時候就已經(jīng)有了(在第一篇安裝的文章中能看到),只不過沒有影響安裝和啟動,所以并沒有管,以為只是安裝的時候檢查類的報錯,后來在重啟MySQL發(fā)現(xiàn)在error日志里面也會出現(xiàn)這個報錯
解決方法:
在mysql官方網(wǎng)站上找到這么一段話
Those nonstandard behaviors remain the default for TIMESTAMP but as of MySQL 5.6.6 are deprecated and this warning appears at startup:
[Warning] TIMESTAMP with implicit DEFAULT value is deprecated.
Please use --explicit_defaults_for_timestamp server option (see
documentation for more details).
As indicated by the warning, to turn off the nonstandard behaviors,
enable the new explicit_defaults_for_timestamp system variable at server startup.
With this variable enabled, the server handles TIMESTAMP as follows instead:
這段話的意思是在5.6以后有這么一項檢查,所以要開啟標準的 explicit_defaults_for_timestamp功能,但是默認是關閉的。
在my.cnf中加入
[mysqld]
explicit_defaults_for_timestamp=true
如果還是報錯,按mysql提示的執(zhí)行下面的mysql啟動命令:
./bin/mysqld_safe --user=mysql --explicit_defaults_for_timestamp=1 &
當前名稱:[Warning]TIMESTAMPwithimplicitDEFAULTvalueisdeprecated.
分享URL:http://chinadenli.net/article2/gsgjic.html
成都網(wǎng)站建設公司_創(chuàng)新互聯(lián),為您提供定制網(wǎng)站、App設計、網(wǎng)站設計公司、企業(yè)網(wǎng)站制作、網(wǎng)頁設計公司、網(wǎng)站排名
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)