MySQL官网下载安装yum/rpm步骤

1、打开浏览器搜索 mysql
MySQL官网下载安装yum/rpm步骤

2、点击导航栏 "下载"
MySQL官网下载安装yum/rpm步骤

3、下拉 点击 "社区版"
MySQL官网下载安装yum/rpm步骤

4、找YUM库
MySQL官网下载安装yum/rpm步骤

5、下载yumrpm文件
MySQL官网下载安装yum/rpm步骤
MySQL官网下载安装yum/rpm步骤

6、卸载系统自带的mariadb
MySQL官网下载安装yum/rpm步骤

7、安装.rpm
[root@test tools]# rpm -ivh mysql80-community-release-el7-3.noarch.rpm

8、yum安装
[root@test tools]# yum install mysql-server -y

9、初始化MySQL
[root@test tools]# mysqld --initialize

10、给执行权限
[root@test tools]# chown -R mysql:mysql /var/lib/mysql

11、修改配置文件为无密码登录
[root@test tools]# vi /etc/my.cnf
底部加入: skip-grant-tables

12、启动MySQL 并登录
MySQL官网下载安装yum/rpm步骤

猜你喜欢

转载自blog.51cto.com/kangxi/2439196