当前位置:网站首页>An error is reported when installing dataspherestudio doc: invalid default value for 'update_ time‘
An error is reported when installing dataspherestudio doc: invalid default value for 'update_ time‘
2022-06-30 14:25:00 【mizuhokaga】
0. Complete error report :
install DataSphereStudio-Doc, In the installation Linkiss when , Report errors
ERROR 1067 (42000) at line 32 in file: '/usr/local/dss_linkis/linkis/db/linkis_ddl.sql': Invalid default value for 'update_time'
Failed to + source linkis_ddl.sql
***********Error: failed to + install Linkis
1. analysis
Check the details sql Found to be datetime The problem of
DROP TABLE IF EXISTS `linkis_ps_configuration_config_value`;
CREATE TABLE linkis_ps_configuration_config_value(
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`config_key_id` bigint(20),
`config_value` varchar(200),
`config_label_id`int(20),
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE INDEX(`config_key_id`, `config_label_id`)
)ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
DataSphere Studio Requirements are mentioned in the document mysql 5.5+
- I found one mysql 5.5.47 test ,[Err] 1067 - Invalid default value for ‘update_time’
- I have another one mysql 5.7 Run the above sql normal
It seems that it is mysql Version problem , You have to upgrade mysql Version can solve !
3. reason
Look up
MySQL5.6 Official documents
Find out :
As of MySQL 5.6.5, TIMESTAMP and DATETIME columns can be automatically initializated and updated to the current date and time (that is, the current timestamp). Before 5.6.5, this is true only for TIMESTAMP, and for at most one TIMESTAMP column per table
That is to say MySQL5.6 After version DATETIME The type field can be set with default value and auto update , The previous only TIMESTAMP.
Remove the default value to run normally
边栏推荐
- Project management - common English vocabulary I
- Problem: wechat developer tool visitor mode cannot use this function
- ot initialized – call ‘refresh’ before invoking lifecycle methods via the context: Root WebApplicati
- 深入理解.Net中的线程同步之构造模式(二)内核模式2.内核模式构造物Semaphone
- 數據恢複軟件EasyRecovery15下載
- Pit used by go language array type
- Ctfshow getting started with the web (ThinkPHP topic)
- Logiciel de récupération de données easyrecovery15 téléchargement
- Four isolation levels of MySQL
- Solve the error in my QT_ thread_ global_ End(): 3 threads didn't exit
猜你喜欢

QQ 居然被盗了?原因在这......

XSS challenge (1-5) more detailed answers

Shell programming overview

【科学文献计量】外文文献及中文文献关键词的挖掘与可视化

Thinkphp5 log file contains trick

What network security problems are exposed when a large-scale QQ number theft event occurs?

Solve the error in my QT_ thread_ global_ End(): 3 threads didn't exit

ThinkPHP v3.2 comment annotation injection write shell

Heavyweight: the domestic ide was released, developed by Alibaba, and is completely open source!

Go language mutex lock
随机推荐
Thinkphp5 log file contains trick
【Redis 系列】redis 学习十六,redis 字典(map) 及其核心编码结构
Laravel RBAC laravel permission use
Wuenda 2022 machine learning special course evaluation is coming!
Realize a simple LAN communication (similar to feiqiu)
PHP recursive multi-level classification, infinite classification
JS delete the objects in the array and specify to delete the objects
Laravel artist command error
Talk about Vue's two terminal diff algorithm, analysis of the rendering principle of the mobile terminal, and whether the database primary key must be self incremented? What scenarios do not suggest s
Go language for loop multivariable use
Service online governance
Optimization of unit test efficiency: why test programs? What are the benefits of testing?
[scientific research data processing] [practice] frequency analysis chart of category variables, distribution chart of numerical variables and normality test (including lognormal)
提权扫描工具
go channel && select
DB2 SQL Error: SQLCODE=-206, SQLSTATE=42703
Upgrade composer self update
Introduction to the renewal of substrate source code: the pallet alliance is incorporated into the main line,
深入理解.Net中的线程同步之构造模式(二)内核模式2.内核模式构造物Semaphone
想請教一下,我在佛山,到哪裏開戶比較好?手機開戶是安全麼?