一个分享个人学习、开发经验的Blog,http://www.joyphper.net

Failed to issue method call: Unit mysql.service failed to load: No such file or directory.

posted @ 2015-11-30 22:15 | 阅读:4518 | 评论:1 | 分类: 数据库

Failed to issue method call: Unit mysql.service failed to load: No such file or directory.这个错误是由于CentOS 7已经将MySQL替换为MariaDB了,当你yum install mysql-server的时候会提示没有这个包,换用yum install mariadb mariadb -y安装完毕,使用命令 service mysql start 会出现错误:

Redirecting to /bin/systemctl restart mysql.service

Failed to issue method call: Unit mysql.service failed to load: No such file or directory.

CentOS 7需要使用systemctl命令,对于MariaDB用 systemctl start|stop|restart mariadb.service

共有1条评论 发表评论>>

Rashad 发表于:2017-04-17 18:53
Amazing issues here. I am very satisfied to peer your article.

Thank you so much and I'm having a look forward to
contact you. Will you please drop me a e-mail?
点击换一张验证码