yum安装MySQL

安装MySQL
yum install mariadb-server -y
启动MySQL服务
systemctl start mariadb
开机启动
systemctl enable mariadb
允许远程连接
grant all on *.* to root@'%' identified by 'password' with grant option; flush privileges;
yum install mariadb-server -y
systemctl start mariadb
systemctl enable mariadb
grant all on *.* to root@'%' identified by 'password' with grant option; flush privileges;