Failed to start mysqld.service: Unit not found

启动mysql时

systemctl start mysql.service

提示

Failed to start mysqld.service: Unit not found

解决方法

yum install -y mariadb-server
systemctl start mariadb.service
systemctl enable mariadb.service

ok

[root@iZf8z9gs5xht62gcoz8u81Z ~]# mysql
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 2
Server version: 5.5.68-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

 

posted @ 2021-01-01 23:08  1769987233  阅读(572)  评论(0)    收藏  举报