centos7安装mysql8.0
环境准备centos7的虚拟机redhat的 mysql安装包下载mysql安装包的官网MySQL :: Download MySQL Community Server (Archived Versions)https://downloads.mysql.com/archives/community/1.删除centos自带的mariadb查看:rpm -qa | grep mariadb删除:r
·
环境准备
centos7的虚拟机
redhat的 mysql安装包
下载mysql安装包的官网
1.删除centos自带的 mariadb
查看:rpm -qa | grep mariadb
删除:rpm -e ....
因为mariadb被postfix需要,所以我们需要一块删除掉
2.安装
tar -xvf mysql....
为了避免安装失败我们给mysql这个文件夹附上 777的权限
cd ../
chmod 777 mysql/
按照顺序安装
rpm -ivh mysql-community-common-8.0.26-1.el7.x86_64.rpm
rpm -ivh mysql-community-client-plugins-8.0.26-1.el7.x86_64.rpm
rpm -ivh mysql-community-libs-8.0.26-1.el7.x86_64.rpm
rpm -ivh mysql-community-client-8.0.26-1.el7.x86_64.rpm
rpm -ivh mysql-community-server-8.0.26-1.el7.x86_64.rpm --force --nodeps
3.配置数据库
借鉴这篇博客就行(上面是因为8和5.7稍微有点不同才写的)
(6条消息) centos7安装mysql(完整)_Raicho的博客-CSDN博客_centos安装mysql csdnhttps://blog.csdn.net/weixin_45797918/article/details/104929127?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522163949478516780357272382%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&request_id=163949478516780357272382&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~sobaiduend~default-2-104929127.pc_search_result_control_group&utm_term=cenos7%E5%AE%89%E8%A3%85mysql&spm=1018.2226.3001.4187 (6条消息) CentOS7安装mysql8.0.12_心有山海静而无边-CSDN博客_centos mysql8https://blog.csdn.net/qq_38591756/article/details/82958333?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522163958116216780261933300%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&request_id=163958116216780261933300&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-82958333.pc_search_result_control_group&utm_term=centos7%E5%AE%89%E8%A3%85mysql8.0&spm=1018.2226.3001.4187
更多推荐
已为社区贡献3条内容
所有评论(0)