当前位置:网站首页>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
边栏推荐
- DiceCTF - knock-knock
- Realize a simple LAN communication (similar to feiqiu)
- Shell programming overview
- In the digital age, XDR (extended detection and response) has unlimited possibilities
- JS array
- Meaning of while (~scanf ("%d%d", & A, & B))
- DB2 SQL Error: SQLCODE=-206, SQLSTATE=42703
- Lfi-rce without controllable documents
- Cost forecast of PMP (BAC, EAC, etc)
- 【 scientific literature measurement 】 mining and visualization of keywords in foreign and Chinese Literature
猜你喜欢

提权扫描工具

How to execute a query SQL

KnightCTF WEB

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

Race of golang

用Unity实现Flat Shading

Using docker to manage MySQL services under Windows

More than 20 years after Hong Kong's return, Tupu digital twin Hong Kong Zhuhai Macao Bridge has shocked

Why does the folder appear open in another program

Initial attack and defense world Misc
随机推荐
【Kubernetes系列】K8s设置MySQL8大小写不敏感
Project management - common English vocabulary I
Laravel8 custom log directory, rename
Dart extended feature
MFQE 2.0: A New Approach for Multi-FrameQuality Enhancement on Compressed Video
MySQL back to table query optimization
表格储存中sql查询的时候,查询结果增加主键报错,查询结果超过10w行。需要对主键增加上多元索引吗?
Shell programming overview
Problem: wechat developer tool visitor mode cannot use this function
想請教一下,我在佛山,到哪裏開戶比較好?手機開戶是安全麼?
Summary of use of laravel DCAT admin
remote: Support for password authentication was removed on August 13, 2021. Please use a personal ac
提权扫描工具
Ctfshow getting started with the web (ThinkPHP topic)
Small exercise of process and signal
[kubernetes series] k8s set mysql8 case insensitive
Use PHP to delete the specified text content in the file
Notes on reverse learning in the first week of winter vacation
我想问一下招商证券怎么开户?通过链接办理股票开户安全吗
编程实战赛来啦!B站周边、高级会员等好礼送你啦!