MySQL安装过程中遇到的问题及解决办法

MySQL的下载与安装:https://blog.csdn.net/weixin_42869365/article/details/83472466

在cmd中执行mysqld --initialize --console语句报错

mysqld: Could not create or access the registry key needed for the MySQL application to log to the Windows EventLog. Run the application with sufficient privileges once to create the key, add the key manually, or turn off logging for that application

.)
在这里插入图片描述
解决办法:在配置文件mysql.ini中加上

[mysqld]

explicit_defaults_for_timestamp=true

2、报错如下:2

020-08-25T08:40:32.425253Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2020-08-25T08:40:32.974813Z 0 [ERROR] --initialize specified but the data directory has files in it. Aborting. 2020-08-25T08:40:33.030731Z 0 [ERROR] Aborting

在这里插入图片描述
解决办法:删除和bin在同一目录下的data文件夹

tips:cmd要以管理员的身份运行

  • 11
    点赞
  • 13
    收藏
    觉得还不错? 一键收藏
  • 10
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 10
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值