Centos7的mysql安装
下载官方mysql源
1 | wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm |
加载rpm源
1 | rpm -ivh mysql-community-release-el7-5.noarch.rpm |
yum安装
1 | yum install mysql mysql-devel mysql-server -y |
开启mysqlserver
1 | systemctl start mysqld |
设置mysql远程权限
1 | --切换数据库 |