1293 - Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in

 

在數據庫執行腳本文件時,執行到一半會遇到  這種問題:html

 

出錯處:2018-05-14 18:53:38
行號:712454
錯誤代碼: 1293 - Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clausemysql

 

 

緣由: 兩臺服務器的mysql版本不一致. 低版本不支持在一個表裏面 有2個TIMESTAMP 類型  的列.sql

 

咱們使用 SELECT VERSION();  來查看一下服務器的版本數據庫

 

源是使用的  5.6.16-enterprise-commercial-advanced-log服務器

 

而目標使用的是 5.1.51-communitypost

 

參考下面的文章url

 

msyql同步的時候報錯 : 錯誤代碼: 1293 Incorrect table definition;there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause

相關文章
相關標籤/搜索