windows10配置mysql失败

落叶丶零落
  • 311

各位大神看看下面是什么错误
以下是mysql启动日志:

mysqld: Can't change dir to 'D:\soft\mysql\mysql-5.7.10\data\' (Errcode: 2 - No such file or directory)
2015-12-09T03:10:18.851979Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2015-12-09T03:10:18.851979Z 0 [Warning] Insecure configuration for --secure-file-priv: Current value does not restrict location of generated files. Consider setting it to a valid, non-empty path.
2015-12-09T03:10:18.852979Z 0 [Note] mysqld (mysqld 5.7.10) starting as process 5936 ...
2015-12-09T03:10:18.854968Z 0 [Warning] Can't create test file D:\soft\mysql\mysql-5.7.10\data\yzl021.lower-test
2015-12-09T03:10:18.854968Z 0 [Warning] Can't create test file D:\soft\mysql\mysql-5.7.10\data\yzl021.lower-test
2015-12-09T03:10:18.856879Z 0 [ERROR] failed to set datadir to D:\soft\mysql\mysql-5.7.10\data\
2015-12-09T03:10:18.861884Z 0 [ERROR] Aborting

2015-12-09T03:10:18.862897Z 0 [Note] Binlog end
2015-12-09T03:10:18.863567Z 0 [Note] mysqld: Shutdown complete

回复
阅读 9k
2 个回答

Can't change dir to 'D:\soft\mysql\mysql-5.7.10\data\' (Errcode: 2 - No such file or directory)
哥们你数据库文件存储的路径不存在
重新运行一下MySQLInstanceConfig,重新配置一下数据库文件的存储路径。

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
你知道吗?

宣传栏