Rocky Linux 9.5 安装 MySQL 8.0
Rocky Linux 9.5
[root@netkiller ~]# dnf install -y mysql-server [root@netkiller ~]# systemctl enable mysqld Created symlink /etc/systemd/system/multi-user.target.wants/mysqld.service → /usr/lib/systemd/system/mysqld.service.
备份配置文件
cp /etc/my.cnf{,.original} cp /etc/my.cnf.d/mysql-server.cnf{,.original} cp /etc/my.cnf.d/client.cnf{,.original} cat >> /etc/my.cnf.d/mysql-server.cnf <<EOF # Add by Neo character-set-server=utf8mb4 collation-server=utf8mb4_general_ci explicit_defaults_for_timestamp=true lower_case_table_names=1 EOF
设置文件打开数据
cat >> /etc/security/limits.d/20-nofile.conf <<EOF mysql soft nofile 65535 mysql hard nofile 65535 redis soft nofile 65535 redis hard nofile 65535 EOF mkdir /etc/标签:8.0,Rocky,mysql,cnf,etc,Linux,9.5,cp,my From: https://blog.csdn.net/u010604770/article/details/144976394