我是靠谱客的博主 传统夕阳,这篇文章主要介绍Failed to start mysql.service Unit not found.,现在分享给大家,希望可以做个参考。

执行完yum安装命令后发现竟然无法启动错误提示如下

[root@localhost ~]# systemctl start mysql.service

Failed to start mysql.service: Unit mysql.service not found.

查了半天资料,终于了解到MariaDB代替了mysql数据库

因此用上述命令启动不起来,正确的方法如下

# yum install mariadb -y //如果已安装可以省略

# systemctl start mariadb.service //启动服务

# systemctl enable mariadb.service //开机启动服务

# mysql -u root -p //登录mysql

最后

以上就是传统夕阳最近收集整理的关于Failed to start mysql.service Unit not found.的全部内容,更多相关Failed内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(59)

评论列表共有 0 条评论

立即
投稿
返回
顶部