1 mysql启动
Failed to start mysqld.service: Unit not found.
2 查询/etc/init.d/下是否存在mysqld
ll /etc/init.d/ | grep mysqld
发现该目录下并没有mysqld的文件,若存在,请备份一下
3、查询mysqld
find / -name mysqld
4、执行复制操作,/usr/local/mysql/是我自己的mysql安装目录,大家根据查询出来的结果复制
cp /usr/local/mysql/support-files/mysqld /etc/init.d/mysqld
然后 service mysqld start 启动成功!