MySQLはbased on CentOS 7をインストールする.2
946 ワード
rpm -qa | grep mariadb
rpm -e mariadb-libs-5.5.37-1.el7_0.x86_64
// or MariaDB
rpm -e --nodeps mariadb-libs-5.5.37-1.el7_0.x86_64
//
yum install libaio net-tools
// repo
wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
// repo
rpm -ivh mysql-community-release-el7-5.noarch.rpm
// mysql
yum install mysql-server
//
service mysqld restart
//
firewall-cmd --zone=public --add-port=3306/tcp --permanent
firewall-cmd --reload
mysql -u root
mysql > use mysql;
mysql > update user set password=password('123456') where user='root';
mysql > GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'WITH GRANT OPTION; //
mysql > exit;