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

 

posted @ 2018-05-16 19:23  Angelye  阅读(3044)  评论(0编辑  收藏  举报