本文主要是介绍龙蜥Anolis 8.4 anck 安装mysql5.7,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
el8没有用mysql5.7了,镜像里是mysql8。
禁用
sudo dnf remove @mysql
sudo dnf module reset mysql
sudo dnf module disable mysql
修改Yum源
sudo vi /etc/yum.repos.d/mysql-community.repo
[mysql57-community]
name=MySQL 5.7 Community Server
baseurl=http://repo.mysql.com/yum/mysql-5.7-community/el/7/$basearch/
enabled=1
gpgcheck=0[mysql-connectors-community]
name=MySQL Connectors Community
baseurl=http://repo.mysql.com/yum/mysql-connectors-community/el/7/$basearch/
enabled=1
gpgcheck=0[mysql-tools-community]
name=MySQL Tools Community
baseurl=http://repo.mysql.com/yum/mysql-tools-community/el/7/$basearch/
enabled=1
gpgcheck=0
配置yum
sudo dnf config-manager --disable mysql80-community
sudo dnf config-manager --enable mysql57-community
sudo dnf install mysql-community-server
sudo systemctl enable --now mysqld.service
修改密码
sudo grep 'temporary password' /var/log/mysqld.log
sudo mysql_secure_installation
填新密码并进行配置
这篇关于龙蜥Anolis 8.4 anck 安装mysql5.7的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!