当前位置:Gxlcms > 数据库问题 > 解决CentOS7 无法启动mysql 的解决办法

解决CentOS7 无法启动mysql 的解决办法

时间:2021-07-01 10:21:17 帮助过:292人阅读

试着去启动mysql服务,仍然不行

# systemctl start mysql
Failed to issue method call: Unit mysql.service failed to load: No such file or directory.

# systemctl start  mysql.service
Failed to issue method call: Unit mysql.service failed to load: No such file or directory

# systemctl enable mysql.service
Failed to issue method call: Access denied

下面讲正确的步骤

# yum install mariadb-server -y
# systemctl start mariadb.service
# systemctl enable mariadb.service
# mysql
Welcome to the MariaDB monitor.  Commands end with ; 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‘ to clear the current input statement.

MariaDB [(none)]> 

搞定!

如何设置mysql root密码

# mysql_secure_installation

解决CentOS7 无法启动mysql 的解决办法

标签:method   star   nod   pretty   管理   iss   社区   moni   代号   

人气教程排行