本篇内容主要讲解“服务器CentOS7怎么安装MySQL 8.0”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“服务器Cent...
本篇内容主要讲解“服务器CentOS7怎么安装MySQL 8.0”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“服务器CentOS7怎么安装MySQL 8.0”吧!
服务器CentOS 7安装 MySQL 8.0
安装Mysql有两种方式:
----------------------------
直接下载官方的源(比较慢)
https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm # 下载rpm包
yum localinstall mysql80-community-release-el7-1.noarch.rpm # 处理相关依赖
yum install mysql-community-server # 安装
用163的源,分开安装
wget https://mirrors.163.com/mysql/Downloads/MySQL-8.0/mysql-community-common-8.0.18-1.el7.x86_64.rpm
wget https://mirrors.163.com/mysql/Downloads/MySQL-8.0/mysql-community-libs-8.0.18-1.el7.x86_64.rpm
wget https://mirrors.163.com/mysql/Downloads/MySQL-8.0/mysql-community-client-8.0.18-1.el7.x86_64.rpm
wget https://mirrors.163.com/mysql/Downloads/MySQL-8.0/mysql-community-server-8.0.18-1.el7.x86_64.rpm
rpm -ivh mysql-community-common-8.0.18-1.el7.x86_64.rpm # rpm下载
rpm -ivh mysql-community-libs-8.0.18-1.el7.x86_64.rpm
rpm -ivh mysql-community-client-8.0.18-1.el7.x86_64.rpm
rpm -ivh mysql-community-server-8.0.18-1.el7.x86_64.rpm
重启Mysql
service mysqld start
到此,相信大家对“服务器CentOS7怎么安装MySQL 8.0”有了更深的了解,不妨来实际操作一番吧!这里是捷杰建站网站,更多相关内容可以进入相关频道进行查询,关注我们,继续学习!