TIMESTAMP with implicit DEFAULT value is deprecated

2020-09-25 13:38:31 码农 2690

 

问题描述:Windows环境下安装mysql 5.7.25版本时遇到一个问题。初始化命令为 bin/mysqld --initialize --console,执行后报错:TIMESTAMP with implicit DEFAULT value is deprecated。

解决方案:是配置原因造成的问题,需要在根目录下 my.ini文件中 [mysqld] 下面增加一行:

xplicit_defaults_for_timestamp=true

之后,再次初始化,这次就没有报错了。

—— 完 ——
  • 【201305-单选14】以下关于 GIS 空间分析说法不正确的是:
  • 安全电子交易协议SET是由VISA和MasterCard两大信用卡组织联合开发的电子商务安全协议。以下关于SET的叙述中,不正确的是(  )。
  • mysql Error:1052 Column ‘xxx‘ in where clause is ambiguous
  • 关于pom.xml的Missing artifact net.sf.json-lib:json-lib:jar:2.4报错问题
  • C#中List〈string〉和string[]数组之间的相互转换
  • Docker: Error response from daemon: Get “https://registry-1.docker.io/v2/“: net/http: request...
  • Redis持久化机制
  • Which of the following insurance types provide for a loss arising from fraudulent acts by employees?
  • 四大主流芯片架构(X86、ARM、RISC、MIPS)
  • AI大模型常见面试题(注意力机制Attention Mechanism相关)

© CopyRight 2014~2024 薄学网.