在數據庫執行腳本文件時,執行到一半會遇到 這種問題:
出錯處: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