centos7怎样安装mysql数据库

如题所述

yum -y  install mariadb-server mariadb mariadb-devel
systemctl start mariadb
systemctl enable mariadb
mysql_secure_installation
firewall-cmd --permanent --add-service mysql

systemctl restart firewalld.service
iptables -L -n|grep 3306
温馨提示:答案为网友推荐,仅供参考
第1个回答  2016-08-18
最简单的办法,yum -y instal mysql-server
相似回答