问题描述
在Linux系统下安装mysql数据库 当进行到
执行mysqld --initialize
初始化数据库
之后准备执行systemctl start mysqld
启动mysql服务报错:
Job for mysqld.service failed because the control process exited with error code. See “systemctl status mysqld.service” and “journalctl-xe” for details.
解决方案
一开始就这个报错一直在搜解决方法
但是一直无法解决
于是我回头看我的整个安装流程
发现在初始化数据库的时候 貌似我并没有执行初始化的动作!
所以初始化失败或者是不初始化 就有可能导致这个错误
所以必须要回头重新初始化
然后再重新启动mysql服务
参考:Linux初始化mysql报错:initialize specified but the data directory has files in it. Aborting.TIMESTAMP with