Centos7.5无网络安装mysql5.6 rpm 包
关于mysql就不做过多介绍了,话不多说直接开整
下载mysql rpm包
此处为了方便大家笔者提供了官网和百度网盘下载两种方式
官网地址
https://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-client-5.6.44-1.el7.x86_64.rpm
https://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-server-5.6.44-1.el7.x86_64.rpm
百度网盘
链接:https://pan.baidu.com/s/1hz28fK2jfUXg7CiIQzAb2g
提取码:gc1n
复制这段内容后打开百度网盘手机App,操作更方便哦
将下载的rpm包上传到服务器并安装启动
[root@localhost ~]# ll | grep MySQL
-rw-r--r-- 1 root root 20460600 7月 5 13:23 MySQL-client-5.6.44-1.el7.x86_64.rpm
-rw-r--r-- 1 root root 62822796 7月 5 11:37 MySQL-server-5.6.44-1.el7.x86_64.rpm
[root@localhost ~]# rpm -ivh MySQL-server-5.6.44-1.el7.x86_64.rpm --force
警告:MySQL-server-5.6.44-1.el7.x86_64.rpm: 头V3 DSA/SHA1 Signature, 密钥 ID 5072e1f5: NOKEY
准备中... ################################# [100%]
正在升级/安装...
1:MySQL-server-5.6.44-1.el7 ################################# [100%]
警告:用户mysql 不存在 - 使用root
警告:群组mysql 不存在 - 使用root
警告:用户mysql 不存在 - 使用root
警告:群组mysql 不存在 - 使用root
....警告可以忽略等到输出配置完成即可
WARNING: Default config file /etc/my.cnf exists on the system
This file will be read by default by the MySQL server
If you do not want to use this, either remove it, or use the
--defaults-file argument to mysqld_safe when starting the server
只要没有致命错误都可以忽略
[root@localhost ~]# rpm -ivh MySQL-client-5.6.44-1.el7.x86_64.rpm
启动mysql
[root@localhost ~]# mkdir -pv /var/log/mariadb/ //创建日志文件和路径
mkdir: 已创建目录 "/var/log/mariadb/"
[root@localhost ~]# touch /var/