从阿里云mysql5.6导出表,本地使用的是 5.5.20,报错:
Error Code : 1293
Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause
google发现:
http://stackoverflow.com/questions/4489548/why-there-can-be-only-one-timestamp-column-with-current-timestamp-in-default-cla,解释了答案。
mysql5.6提升了这个特性,支持多个timestamp:
http://dev.mysql.com/doc/relnotes/mysql/5.6/en/news-5-6-5.html
更换mysql数据库版本。
--------
黏贴个文章:
mac下配置多个mysql版本,过程中出现了些问题,我下载的是5.5、5.6、5.7。以后有时间详述。mysqld_multi,使用5.5版本的,5.7版本我这边一直不对。也找不到原因。。。浪费了大量时间。。。
https://dbarobin.com/2015/01/14/install-multiple-version-of-mysql-on-osx/