本篇内容主要讲解“服务器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”有了更深的了解,不妨来实际操作一番吧!这里是亿速云网站,更多相关内容可以进入相关频道进行查询,关注我们,继续学习!
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。