Centos7 安装MySql

使用以下命令安装MySql

sudo yum update
yum install wget
wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
sudo rpm -ivh mysql-community-release-el7-5.noarch.rpm
yum update
sudo yum install mysql-server
sudo systemctl start mysqld

初始化MySql:

sudo mysql_secure_installation

 

posted @ 2019-04-26 21:00  杨浪  阅读(283)  评论(0编辑  收藏  举报