标签:style blog http color 使用 io 数据 2014
场景,两个不同服务器上的数据库,进行数据库同步
但是执行之后,提示报错
错误代码: 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
标签:style blog http color 使用 io 数据 2014
原文地址:http://www.cnblogs.com/joeylee/p/3877578.html