Linux下安装MySQL执行scripts/mysql_install_db --user=mysql脚本时,报错如下:

Filling help tables...2019-12-24 16:46:55 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).

  解决办法:

  在my.cnf配置文件添加:

explicit_defaults_for_timestamp=true

  执行结果:

[Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).

 

 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).

 

   保存退出即可。

相关文章:

  • 2022-12-23
  • 2022-03-09
  • 2022-12-23
  • 2021-09-08
  • 2022-12-23
  • 2022-12-23
  • 2021-08-24
  • 2021-08-05
猜你喜欢
  • 2022-12-23
  • 2022-02-23
  • 2022-02-04
  • 2021-09-28
  • 2022-12-23
  • 2021-10-26
  • 2021-08-14
相关资源
相似解决方案