Docker中centos8安装mysql
wget http://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
rpm -ivh mysql57-community-release-el7-11.noarch.rpm
yum -y install mysql-community-server --nogpgcheck
yum module disable mysql
yum -y install mysql-community-server --nogpgcheck
1
2
3
4
5
2
3
4
5
systemctl start mysqld
grep 'temporary password' /var/log/mysqld.log
1
2
2
vi /etc/my.cnf
validate_password_policy=LOW
validate_password_length=6
1
2
3
2
3
systemctl restart mysqld
1
ALTER USER 'root'@'localhost' IDENTIFIED BY '*******';
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '********' WITH GRANT OPTION;
FLUSH PRIVILEGES;
1
2
3
4
5
2
3
4
5
yum -y install gcc automake autoconf libtool make
yum install gcc gcc-c++
1
2
2