环境推荐: centos7+php7.3+nginx+mysql5.7+redis
安装mysql
yum install -y wget
wget https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm
yum localinstall mysql80-community-release-el7-3.noarch.rpm -y
yum install -y yum-utils
yum repolist enabled | grep "mysql.*-community.*"
yum-config-manager --disable mysql80-community
yum-config-manager --enable mysql57-community
yum repolist enabled | grep mysql
rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
yum install -y mysql-community-server
systemctl start mysqld
systemctl enable mysqld
grep 'temporary password' /var/log/mysqld.log
mysql -u root -p
ALTER USER 'root'@'localhost' IDENTIFIED BY 'Shsjyh@2023!';
create database kodbox;
set global validate_password_policy=LOW;
GRANT ALL PRIVILEGES ON kodbox.* TO 'kodexp'&#