#启动mysql时会提示找不到对应的服务
[root@ceph-104 ~]# service mysqld restart
Redirecting to /bin/systemctl restart mysqld.service
Failed to restart mysqld.service: Unit mysqld.service not found.
[root@ceph-104 ~]# /bin/systemctl restart mysqld.service

原因是centos8不支持mysql,需要更换成MariaDB

首先需要安装mariadb-server

[root@ceph-104 ~]# yum install mariadb-server -y

启动服务

[root@ceph-104 ~]# systemctl start mariadb.service

添加到开机启动

[root@ceph-104 ~]# systemctl enable mariadb.service

相关文章:

  • 2021-10-30
  • 2021-12-17
  • 2022-12-23
  • 2021-09-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-25
  • 2021-09-04
  • 2022-12-23
相关资源
相似解决方案