# yum install mysql -y# mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)
试着去启动mysql服务,仍然不行
# systemctl start mysql
Failed to issue methodcall:Unit mysql.service failed to load: No such file or directory.
# systemctl start mysql.service
Failed to issue methodcall:Unit mysql.service failed to load: No such file or directory
# systemctl enable mysql.service
Failed to issue methodcall: Access denied
下面讲正确的步骤
# yum install mariadb-server -y# systemctl start mariadb.service# systemctl enable mariadb.service# mysql
Welcome tothe MariaDB monitor. Commands endwith ; or \g.
Your MariaDB connection id is 10
Server version: 5.5.44-MariaDB MariaDB Server
Copyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others.
Type 'help;'or'\h'for help. Type '\c'toclearthe current input statement.
MariaDB [(none)]>