当前位置:网站首页>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
边栏推荐
- 【BUUCTF】 EasySql
- PHP generate images into Base64
- MySQL back to table query optimization
- 从控制层返回到js的json数据带“\”转译符,怎么去掉
- On simple code crawling Youdao translation_ 0's problem (to be solved)
- Introduction to the renewal of substrate source code: the pallet alliance is incorporated into the main line,
- 提权扫描工具
- Why is the resolution of the image generated by PHP GD library 96? How to change it to 72
- PHP conditional operator
- ctfshow nodejs
猜你喜欢
"As a service", the inevitable choice of enterprise digital transformation
Detailed explanation of the first three passes of upload Labs
Mysql database foundation: stored procedures and functions
Rpm2rpm packaging steps
[buuctf] [actf2020 freshman competition]exec1
More than 20 years after Hong Kong's return, Tupu digital twin Hong Kong Zhuhai Macao Bridge has shocked
Solve the error in my QT_ thread_ global_ End(): 3 threads didn't exit
ThinkPHP show method parameter controllable command execution
Using docker to manage MySQL services under Windows
Go language mutex lock
随机推荐
PHP excel export function encapsulation (based on phpexcel class)
Solve the error in my QT_ thread_ global_ End(): 3 threads didn't exit
【科学文献计量】外文文献及中文文献关键词的挖掘与可视化
Laravel artist command error
Pytoch viewing model parameter quantity and calculation quantity
从控制层返回到js的json数据带“\”转译符,怎么去掉
I want to ask how to open an account at China Merchants Securities? Is it safe to open a stock account through the link
QQ 居然被盗了?原因在这......
Apache Doris comparison optimization Encyclopedia
提权扫描工具
Click the TD cell of table to open the dialog pop-up window. After obtaining the value, put the value back into the TD cell
DiceCTF - knock-knock
Upgrade composer self update
Dart extended feature
Detailed explanation of the first three passes of upload Labs
DefCamp Capture the Flag (D-CTF) 2021-22 web
Implementation of forwarding server using IO multiplexing
PHP common authentication / third-party methods
Advanced usage of go language for loop break and continue
(8) JMeter component detailed once only controller