码迷,mamicode.com
首页 > 其他好文 > 详细

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      阅读:280      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   color   使用   io   数据   2014   

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

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

标签:style   blog   http   color   使用   io   数据   2014   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!