在数据库执行脚本文件时,执行到一半会遇到  这种问题:

 

出错处: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

 

参考下面的文章

 

 

相关文章:

  • 2022-01-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-18
  • 2021-06-02
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-09
  • 2021-12-01
  • 2021-09-05
  • 2021-10-26
  • 2021-06-10
  • 2021-08-28
相关资源
相似解决方案