启动mysql时
1
systemctl start mysql.service
提示
xxxxxxxxxx
1
1
Failed to start mysqld.service: Unit not found
解决方法
x
1
yum install -y mariadb-server
2
3
systemctl start mariadb.service
4
5
systemctl enable mariadb.service
[root@iZf8z9gs5xht62gcoz8u81Z ~]# mysql
xxxxxxxxxx
9
1
[root@iZf8z9gs5xht62gcoz8u81Z ~]# mysql
2
Welcome to the MariaDB monitor. Commands end with ; or g.
3
Your MariaDB connection id is 2
4
Server version: 5.5.68-MariaDB MariaDB Server
5
6
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
7
8
Type 'help;' or 'h' for help. Type 'c' to clear the current input statement.
9