Closed aiyogg closed 3 years ago
使用源码编译方式安装, --------------------+ | Database | +--------------------+ | information_schema | | db_base | | db_cache_web | | db_tars | | db_tars_web | | db_user_system | | go-mega | | mysql | | performance_schema | | tars_property | | tars_stat | +--------------------+
MariaDB [db_tars_web]> show tables; +-----------------------+ | Tables_in_db_tars_web | +-----------------------+ | t_patch_task | +-----------------------+
排查发现该问题由 mysql 版本导致:CURRENT_TIMESTAMP 只针对 mysql 5.6以上的 datetime 类型才有效
使用源码编译方式安装, --------------------+ | Database | +--------------------+ | information_schema | | db_base | | db_cache_web | | db_tars | | db_tars_web | | db_user_system | | go-mega | | mysql | | performance_schema | | tars_property | | tars_stat | +--------------------+
MariaDB [db_tars_web]> show tables; +-----------------------+ | Tables_in_db_tars_web | +-----------------------+ | t_patch_task | +-----------------------+