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

相关文章
相关标签/搜索