时间:2022-09-11来源:www.pcxitongcheng.com作者:电脑系统城
下载地址:https://dev.mysql.com/downloads/mysql/
1 | tar xvf mysql-5.7.39-1.el7.x86_64.rpm-bundle. tar |
1 2 |
rpm -qa| grep mariadb mariadb-libs-5.5.68-1.el7.x86_64 |
1 | rpm -e --nodeps mariadb-libs-5.5.68-1.el7.x86_64 |
1 2 3 4 5 6 |
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 还可能报错:
1 2 3 4 |
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 解决:
1 | yum install net-tools -y |
1 | systemctl start mysqld |
1 | cat /var/log/mysqld .log | grep 'password is generated' |
1 2 3 |
alter user 'root' @ 'localhost' identified by 'xxxxxx' ; grant all privileges on *.* to 'root' @ '%' identified by 'xxxxxx' with grant option ; flush privileges ; |
1 2 3 |
firewall-cmd --zone=public --add-port=3306/tcp --permanent firewall-cmd --reload firewall-cmd --list-ports |
到此这篇关于CentOS7下安装MySQL5.7.39的文章就介绍到这了
2023-10-30
windows上的mysql服务突然消失提示10061 Unkonwn error问题及解决方案2023-10-30
MySQL非常重要的日志bin log详解2023-10-30
详解MySQL事务日志redo log一、单表查询 1、排序 2、聚合函数 3、分组 4、limit 二、SQL约束 1、主键约束 2、非空约束 3、唯一约束 4、外键约束 5、默认值 三、多表查询 1、内连接 1)隐式内连接: 2)显式内连接: 2、外连接 1)左外连接 2)右外连接 四...
2023-10-30
Mysql删除表重复数据 表里存在唯一主键 没有主键时删除重复数据 Mysql删除表中重复数据并保留一条 准备一张表 用的是mysql8 大家自行更改 创建表并添加四条相同的数据...
2023-10-30