首页 > 其他 > 详细

msyql同步的时候报错 : 错误代码: 1293 Incorrect table definition;there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause

时间:2014-07-30 12:05:23      阅读:476      评论:0      收藏:0      [点我收藏+]

场景,两个不同服务器上的数据库,进行数据库同步

bubuko.com,布布扣

但是执行之后,提示报错

错误代码: 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

具体的可以看看这篇文章 MySQL的timestamp类型自动更新问题 http://blog.sina.com.cn/s/blog_49a665e10100cb52.html

msyql同步的时候报错 : 错误代码: 1293 Incorrect table definition;there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause,布布扣,bubuko.com

msyql同步的时候报错 : 错误代码: 1293 Incorrect table definition;there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause

原文:http://www.cnblogs.com/joeylee/p/3877578.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!