且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在CentOS7中,无法启动MySQL

更新时间:2023-01-31 09:37:32

运行时

yum install mysql

默认情况下,

命令会安装mariadb而不是mysql.因此,请尝试以下命令

command by default it installs mariadb not mysql. so try this following command

yum list installed | grep mariadb

如果缺少mariadb服务器,请尝试以下命令

if mariadb-server is missing try this following command

yum install mariadb-server

它将安装服务器软件包,然后启动服务

it installs the server package then start the service

systemctl start mariadb

service mariadb start

我的问题已通过这种方式解决. 谢谢

My issue is solved in this way. Thanks