Home  >  Q&A  >  body text

mysql 5.7.16无法启动

所有操作均在管理员的命令操作符下进行。
启动mysql的时候,提示不能启动,服务没有报告任何错误。


我使用的版本是官方下载的mysql5.7.16解压版,解压后是没有data文件夹的。我按照网上的方法,使用mysqld --initialize命令创建了一个data文件夹。
之后我删除了mysql服务mysqld -remove和data文件夹,想要重新创建data文件夹,但是这次提示不能访问mysql的路径。



我的my.ini文件

PHP中文网PHP中文网2713 days ago908

reply all(3)I'll reply

  • 黄舟

    黄舟2017-04-17 16:00:21

    Please check the log file. The reasons for startup failure are recorded in the log file. Solve the problem according to the records.
    After reading your log and configuration file, I pointed out 1 point. Please replace "" in all paths with "/"

    reply
    0
  • 高洛峰

    高洛峰2017-04-17 16:00:21

    In this unknown situation, it is better to reinstall mysql directly

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-17 16:00:21

    It is recommended that you get started with vagrant and directly apt-get install mysql (debian)

    reply
    0
  • Cancelreply