MySQL8.0.19最新版本rpm包和源码包百度地址
链接:https://pan.baidu.com/s/1e0dn7zqBVos54xy56eq6VA
提取码:1udm
rpm包安装步骤如下:mysql-8.0.19-1.el7.x86_64.rpm-bundle.tar
tar -xvf mysql-8.0.19-1.el7.x86_64.rpm-bundle.tar
rpm -ivh mysql-community-common-8.0.19-1.el7.x86_64.rpm --nodeps --force
rpm -ivh mysql-community-libs-8.0.19-1.el7.x86_64.rpm --nodeps --force
rpm -ivh mysql-community-client-8.0.19-1.el7.x86_64.rpm --nodeps --force
rpm -ivh mysql-community-server-8.0.19-1.el7.x86_64.rpm --nodeps --force
mysqld --initialize;
rm -rf *.rpm
源码包安装步骤如下:mysql-8.0.19-el7-x86_64.tar.gz
tar -zxvf mysql-8.0.19-el7-x86_64.tar.gz
chmod -R 777 /usr/local/mysql/
/usr/local/mysql/bin/mysqld --initialize --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --lc_messages=en_US
编译根据需求自定义路径
小节
1.MySQL配置文件在/etc/my.cnf
2.skip-grant-tables参数支持免密登录
3.开放3306端口
firewall-cmd --state ## 结果显示为running或not running
systemctl stop firewalld.service
systemctl disable firewalld.service
systemctl start firewalld.service
firewall-cmd --zone=public --add-port=3306/tcp --permanent
firewall-cmd --reload