1293 - Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause


 

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

 

出錯處: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 clause

 

 

原因: 兩台服務器的mysql版本不一致. 低版本不支持在一個表里面 有2個TIMESTAMP 類型  的列.

 

我們使用 SELECT VERSION();  來查看一下服務器的版本

 

源是使用的  5.6.16-enterprise-commercial-advanced-log

 

而目標使用的是 5.1.51-community

 

參考下面的文章

 

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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM