首页 > 数据库 > MySQL > 正文

CentOS 7.4 64位安装配置MySQL8.0的详细步骤

2024-07-24 12:49:46
字体:
来源:转载
供稿:网友

第一步:获取mysql YUM源

进入mysql官网获取RPM包下载地址

https://dev.mysql.com/downloads/repo/yum/

点击下载

获取到下载链接:

https://repo.mysql.com//mysql80-community-release-el7-1.noarch.rpm

--------------------------------------------------------------------------------

第二步:下载和安装mysql源

•进入mysql文件夹,没有的自行创建

[root@VM_0_10_centos /]# cd /usr/local/mysql/[root@VM_0_10_centos mysql]#

•下载源安装包

[root@VM_0_10_centos mysql]# wget https://repo.mysql.com//mysql80-community-release-el7-1.noarch.rpm--2018-08-04 10:29:39-- https://repo.mysql.com//mysql80-community-release-el7-1.noarch.rpmResolving repo.mysql.com (repo.mysql.com)... 23.219.33.198Connecting to repo.mysql.com (repo.mysql.com)|23.219.33.198|:443... connected.HTTP request sent, awaiting response... 200 OKLength: 25820 (25K) [application/x-redhat-package-manager]Saving to: ‘mysql80-community-release-el7-1.noarch.rpm'100%[==========================================================================>] 25,820 112KB/s in 0.2s 2018-08-04 10:29:40 (112 KB/s) - ‘mysql80-community-release-el7-1.noarch.rpm' saved [25820/25820][root@VM_0_10_centos mysql]# lltotal 28-rw-r--r-- 1 root root 25820 Apr 18 13:24 mysql80-community-release-el7-1.noarch.rpm[root@VM_0_10_centos mysql]#

•安装mysql源

[root@VM_0_10_centos mysql]# yum -y localinstall mysql80-community-release-el7-1.noarch.rpm
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表