数据库mysql-8.0.28-1.el7.x86_64.rpm-bundle
解压后一次执行
1.mysql-8.0.28-1.el7.x86_64.rpm-bundle
2.mysql-8.0.28-1.el7.x86_64.rpm-bundle
3.mysql-8.0.28-1.el7.x86_64.rpm-bundle
4.mysql-8.0.28-1.el7.x86_64.rpm-bundle
5.mysql-8.0.28-1.el7.x86_64.rpm-bundle
6.mysql-8.0.28-1.el7.x86_64.rpm-bundle
7.mysqld --initialize --console
8.chown -R mysql:mysql /var/lib/mysql/
9.systemctl start mysqld