一、下载 下载地址:https://dev.Mysql.com/downloads/mysql/ 二、解压 tar xvf mysql-5.7.39-1.el7.x86_64.rpm-bundle.tar 三、卸载已安
下载地址:https://dev.Mysql.com/downloads/mysql/
tar xvf mysql-5.7.39-1.el7.x86_64.rpm-bundle.tar
rpm -qa|grep mariadb
mariadb-libs-5.5.68-1.el7.x86_64
rpm -e --nodeps mariadb-libs-5.5.68-1.el7.x86_64
rpm -ivh mysql-commUnity-common-5.7.39-1.el7.x86_64.rpm
rpm -ivh mysql-community-libs-5.7.39-1.el7.x86_64.rpm
rpm -ivh mysql-community-client-5.7.39-1.el7.x86_64.rpm
// 如果安装 mysql-community-server-5.7.39-1.el7 报 libaio.so.1 依赖错误,需先安装 libaio-0.3.109-13.el7.x86_64.rpm
rpm -ivh libaio-0.3.109-13.el7.x86_64.rpm
rpm -ivh mysql-community-server-5.7.39-1.el7.x86_64.rpm
安装 server 还可能报错:
rpm -ivh mysql-community-server-5.7.39-1.el7.x86_64.rpm
warning: mysql-community-server-5.7.39-1.el7.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 3a79bd29: NOKEY
error: Failed dependencies:
net-tools is needed by mysql-community-server-5.7.39-1.el7.x86_64
执行以下命令安装 net-tools 解决:
yum install net-tools -y
systemctl start mysqld
cat /var/log/mysqld.log | grep 'passWord is generated'
alter user 'root'@'localhost' identified by 'xxxxxx';
grant all privileges on *.* to 'root'@'%' identified by 'xxxxxx' with grant option;
flush privileges;
firewall-cmd --zone=public --add-port=3306/tcp --permanent
firewall-cmd --reload
firewall-cmd --list-ports
到此这篇关于Centos7下安装MySQL5.7.39的文章就介绍到这了,更多相关CentOS7安装MySQL5.7.39内容请搜索我们以前的文章或继续浏览下面的相关文章希望大家以后多多支持我们!
--结束END--
本文标题: CentOS7下安装MySQL5.7.39的详细过程
本文链接: https://www.lsjlt.com/news/33982.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-05-10
2024-05-10
2024-05-10
2024-05-10
2024-05-10
2024-05-10
2024-05-09
2024-05-09
2024-05-09
2024-05-09
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0