时间:2022-12-06 01:49
在centos中使用wget命令安装mysql,具体方法如下:
1.首先,在centos命令行中使用yum安装wget命令;
yum install wget
2.wget命令安装好后,使用wget命令下载mysql的repo源,并安装;
wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
sudo rpm -ivh mysql-community-release-el7-5.noarch.rpm
3.repo源安装好后,继续在命令行中执行以下命令即可安装mysql;
sudo yum install mysql-server