mysql安装mysql-5.7.35-1.el7.x86_64.rpm-bundle.tar,问题及其他ip访问mysql
参考文档:centos7通过rpm-bundle方式安装mysql5.7.35 - Shapley - 博客园
下载 mysql包后,
1. 解压
tar -xvf mysql-5.7.35-1.el7.x86_64.rpm-bundle.tar
2. 安装顺序
rpm -ivh mysql-community-common-5.7.35-1.el7.x86_64.rpm
rpm -ivh mysql-community-libs-5.7.35-1.el7.x86_64.rpm
rpm -ivh mysql-community-libs-compat-5.7.35-1.el7.x86_64.rpm
rpm -ivh mysql-community-client-5.7.35-1.el7.x86_64.rpm
rpm -ivh mysql-community-devel-5.7.35-1.el7.x86_64.rpm
rpm -ivh mysql-community-server-5.7.35-1.el7.x86_64.rpm
3. 问题file /usr/share/mysql/czech/errmsg.sys from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64
[root@localhost packages]# rpm -ivh mysql-community-common-5.7.35-1.el7.x86_64.rpm
警告:mysql-community-common-5.7.35-1.el7.x86_64.rpm: 头V3 DSA/SHA256 Signature, 密钥 ID 5072e1f5: NOKEY
准备中... ################################# [100%]file /usr/share/mysql/czech/errmsg.sys from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64file /usr/share/mysql/danish/errmsg.sys from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64file /usr/share/mysql/dutch/errmsg.sys from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64file /usr/share/mysql/english/errmsg.sys from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64file /usr/share/mysql/estonian/errmsg.sys from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64file /usr/share/mysql/french/errmsg.sys from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64file /usr/share/mysql/german/errmsg.sys from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64file /usr/share/mysql/greek/errmsg.sys from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64file /usr/share/mysql/hungarian/errmsg.sys from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64file /usr/share/mysql/italian/errmsg.sys from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64file /usr/share/mysql/japanese/errmsg.sys from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64file /usr/share/mysql/korean/errmsg.sys from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64file /usr/share/mysql/norwegian-ny/errmsg.sys from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64file /usr/share/mysql/norwegian/errmsg.sys from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64file /usr/share/mysql/polish/errmsg.sys from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64file /usr/share/mysql/portuguese/errmsg.sys from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64file /usr/share/mysql/romanian/errmsg.sys from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64file /usr/share/mysql/russian/errmsg.sys from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64file /usr/share/mysql/serbian/errmsg.sys from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64file /usr/share/mysql/slovak/errmsg.sys from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64file /usr/share/mysql/spanish/errmsg.sys from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64file /usr/share/mysql/swedish/errmsg.sys from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64file /usr/share/mysql/ukrainian/errmsg.sys from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64file /usr/share/mysql/charsets/Index.xml from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64file /usr/share/mysql/charsets/armscii8.xml from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64file /usr/share/mysql/charsets/ascii.xml from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64file /usr/share/mysql/charsets/cp1250.xml from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64file /usr/share/mysql/charsets/cp1251.xml from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64file /usr/share/mysql/charsets/cp1256.xml from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64file /usr/share/mysql/charsets/cp1257.xml from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64file /usr/share/mysql/charsets/cp850.xml from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64file /usr/share/mysql/charsets/cp852.xml from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64file /usr/share/mysql/charsets/cp866.xml from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64file /usr/share/mysql/charsets/dec8.xml from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64file /usr/share/mysql/charsets/geostd8.xml from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64file /usr/share/mysql/charsets/greek.xml from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64file /usr/share/mysql/charsets/hebrew.xml from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64file /usr/share/mysql/charsets/hp8.xml from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64file /usr/share/mysql/charsets/keybcs2.xml from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64file /usr/share/mysql/charsets/koi8r.xml from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64file /usr/share/mysql/charsets/koi8u.xml from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64file /usr/share/mysql/charsets/latin1.xml from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64file /usr/share/mysql/charsets/latin2.xml from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64file /usr/share/mysql/charsets/latin5.xml from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64file /usr/share/mysql/charsets/latin7.xml from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64file /usr/share/mysql/charsets/macce.xml from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64file /usr/share/mysql/charsets/macroman.xml from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64file /usr/share/mysql/charsets/swe7.xml from install of mysql-community-common-5.7.35-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.68-1.el7.x86_64
[root@localhost packages]#
解决方法,卸载mariadb
需要卸载mariadb-libs-1:5.5.68-1.el7.x86_64, MySQL 与 mariadb 冲突;
卸载
yum remove mariadb-libs-1:5.5.68-1.el7.x86_64
然后 依次安装;
[root@localhost packages]# rpm -ivh mysql-community-common-5.7.35-1.el7.x86_64.rpm
警告:mysql-community-common-5.7.35-1.el7.x86_64.rpm: 头V3 DSA/SHA256 Signature, 密钥 ID 5072e1f5: NOKEY
准备中... ################################# [100%]
正在升级/安装...1:mysql-community-common-5.7.35-1.e################################# [100%]
[root@localhost packages]#
[root@localhost packages]#
[root@localhost packages]#
[root@localhost packages]# rpm -ivh mysql-community-libs-5.7.35-1.el7.x86_64.rpm
警告:mysql-community-libs-5.7.35-1.el7.x86_64.rpm: 头V3 DSA/SHA256 Signature, 密钥 ID 5072e1f5: NOKEY
准备中... ################################# [100%]
正在升级/安装...1:mysql-community-libs-5.7.35-1.el7################################# [100%]
[root@localhost packages]#
[root@localhost packages]# rpm -ivh mysql-community-libs-compat-5.7.35-1.el7.x86_64.rpm
警告:mysql-community-libs-compat-5.7.35-1.el7.x86_64.rpm: 头V3 DSA/SHA256 Signature, 密钥 ID 5072e1f5: NOKEY
准备中... ################################# [100%]
正在升级/安装...1:mysql-community-libs-compat-5.7.3################################# [100%]
[root@localhost packages]#
[root@localhost packages]#
[root@localhost packages]# rpm -ivh mysql-community-client-5.7.35-1.el7.x86_64.rpm
警告:mysql-community-client-5.7.35-1.el7.x86_64.rpm: 头V3 DSA/SHA256 Signature, 密钥 ID 5072e1f5: NOKEY
准备中... ################################# [100%]
正在升级/安装...1:mysql-community-client-5.7.35-1.e################################# [100%]
[root@localhost packages]#
[root@localhost packages]# rpm -ivh mysql-community-devel-5.7.35-1.el7.x86_64.rpm
警告:mysql-community-devel-5.7.35-1.el7.x86_64.rpm: 头V3 DSA/SHA256 Signature, 密钥 ID 5072e1f5: NOKEY
准备中... ################################# [100%]
正在升级/安装...1:mysql-community-devel-5.7.35-1.el################################# [100%]
[root@localhost packages]#
[root@localhost packages]# rpm -ivh mysql-community-server-5.7.35-1.el7.x86_64.rpm
警告:mysql-community-server-5.7.35-1.el7.x86_64.rpm: 头V3 DSA/SHA256 Signature, 密钥 ID 5072e1f5: NOKEY
准备中... ################################# [100%]
正在升级/安装...1:mysql-community-server-5.7.35-1.e################################# [100%]
[root@localhost packages]#
如果安装:rpm -ivh mysql-community-server-5.7.35-1.el7.x86_64.rpm 报错:
[root@C20220509116252 mysql-5.7.35]# rpm -ivh mysql-community-server-5.7.35-1.el7.x86_64.rpm
warning: mysql-community-server-5.7.35-1.el7.x86_64.rpm: Header V3 DSA/SHA256 Signature, key ID 5072e1f5: NOKEY
error: Failed dependencies:
/usr/bin/perl is needed by mysql-community-server-5.7.35-1.el7.x86_64
libaio.so.1()(64bit) is needed by mysql-community-server-5.7.35-1.el7.x86_64
libaio.so.1(LIBAIO_0.1)(64bit) is needed by mysql-community-server-5.7.35-1.el7.x86_64
libaio.so.1(LIBAIO_0.4)(64bit) is needed by mysql-community-server-5.7.35-1.el7.x86_64
perl(Getopt::Long) is needed by mysql-community-server-5.7.35-1.el7.x86_64
perl(strict) is needed by mysql-community-server-5.7.35-1.el7.x86_64
[root@C20220509116252 mysql-5.7.35]#
那么
yum install libaio
yum install perl
查看mysqld状态
systemctl status mysqld.service
启动mysql
systemctl start mysqld.service
第一次登陆查看密码
grep 'temporary password' /var/log/mysqld.log
密码为: WbpvVLfMr5<Y
登录msyql
mysql -u root -p
首次登录查看 提示修改密码;
set password for root@localhost = password('NewPassword..');
###注 ,mysql密码,要 大小写+数字+特殊字符
my.conf 配置文件位置 /etc/my.conf
==============================
========================
开启防火墙端口 3306
firewall-cmd --zone=public --add-port=3306/tcp --permanent
查看防火墙状态
systemctl status firewalld.service
设置 ,其他指定 ip 访问mysql
数据库实例名 如: zabbix_server
用户名,随意些,如果未创建则,自动创建;如果已有 则 不变;
grant all privileges on 数据库实例名.* to 用户名@"192.168.40.202" identified by"密码";
让全部ip ,访问 全部 mysql
grant all privileges on *.* to 用户名@"%" identified by"密码";
mysql安装mysql-5.7.35-1.el7.x86_64.rpm-bundle.tar,问题及其他ip访问mysql相关推荐
- yum安装出现Error: Package: glibc-headers-2.17-157.el7.x86_64 (centos7.3)类似报错解决方案
yum安装出现Error: Package: glibc-headers-2.17-157.el7.x86_64 (centos7.3)类似报错解决方案 参考文章: (1)yum安装出现Error: ...
- 防火墙规则,指定ip访问mysql数据库3306端口
防火墙规则,指定ip访问mysql数据库3306端口 # 防火墙脚本,vi编辑保存 vi /etc/forward #!/bin/sh echo "starting forward...&q ...
- 指定ip地址和端口号登录mysql数据库_防火墙规则,指定ip访问mysql数据库3306端口...
防火墙规则,指定ip访问mysql数据库3306端口 2019年12月08日 阅读数:6 这篇文章主要向大家介绍防火墙规则,指定ip访问mysql数据库3306端口,主要内容包括基础应用.实用技巧.原 ...
- centos 内网ip访问mysql数据库
centos 内网ip访问mysql数据库 参考博文: CentOS 配置mysql允许远程登录 Centos6.5 双网卡配置一个上外网一个接局域网 这个博文仅作参考 公司租用景安的服务器,给景安 ...
- Centos7.9安装Mysql5.7.32_mysql-5.7.32-1.el7.x86_64.rpm-bundle.tar_亲测成功---Linux工作笔记041
[root@nfs_client ~]# cat /etc/redhat-release 查看操作系统版本 CentOS Linux release 7.5.1804 (Core) [root@nfs ...
- c mysql连接池_在LINUX下用C/C++写了一个连接池(访问MYSQL)的类
一.头文件[存为:connPool.h] #ifndef __CONNECTION_POOL_H__ #define __CONNECTION_POOL_H__ #include "mute ...
- php ip访问mysql什么配置_PHP与MYSQL配合完成IP的存取
如何存储IP 程序设计要在功能实现的基础上最大限度的优化性能.而数据库设计是程序设计中不可忽略的重要部分,巧存IP地址可以一定程度提升性能. 利用函数算法处理 MySQL没有直接提供IP类型字段,但有 ...
- 如何通过IP访问MySQL数据库
1.改表法 如果不从远程登陆,可以用localhost.这个时候只要在localhost的那台电脑,登入mysql后,更改"mysql"数据库中"user"表里 ...
- yun安装kubernetes-master-1.5.2-0.7.git269f928.el7.x86_64: [Errno 256] No more mirrors to try
1.我用的163的镜像源,清理过缓存,重新生成,依然报错: 解决办法执行: yum --enablerepo=extras clean metadata 之后yum安装k8s成功.
最新文章
- 中国开封菊花花会照片1
- 蓝桥杯java第八届第五题--取数位
- Maven构建Struts2框架的注意事项
- Django websocket 长连接使用
- 视音频编解码学习工程:TS封装格式分析器
- 百度UEditor控件中的map组件不支持https使用的问题解决
- SpringBoot(12)---外部化配置(properties文件配置)
- 2020网络数据平面峰会-无损网络,真的无损?-杨益锋
- python htmltestrunner报告_python3使用HTMLTestRunner生成测试报告
- php gdb strace抓包,gdb,strace那些不常用的功能
- 很多人认为,因为我们是平民,做生意试不了错,输不起,试错成本太高
- Linux系统配置kvm+vlan
- 实战必备!文本分类中的一些经验和 tricks
- python youtube视频_Python3 使用you-get,youtube-dl,ffmpeg 下载全网视频并剪切视频
- div 左中右结构布局问题
- 计算机网络教室财产登记表,固定资产清查登记表-资产管理.DOC
- FusionAccess桌面云
- 智能优化算法之灰狼优化算法(GWO)的实现(Python附源码)
- Redis学习笔记(2)
- linux-c之函数(函数指针、函数传参、命令行参数)
热门文章
- 最新版计算机软件著作权登记申请表填写说明
- Vue 页面渲染的流程
- MongoDB数据库批量更新
- R语言使用as.Date函数把dataframe中的多个数据列(multiple columns)从字符串转化到日期类型
- 集团企业主数据管理系统应用思路
- 亚马逊、Lazada、Shopee、wish、eBay、速卖通、阿里国际、沃尔玛、newegg、mercari测评(补单)自养号,风控严情况下,卖家们要如何保障自己的安全?
- 计算机设备不可投放,对于电脑显示无法停止通用卷设备,该如何解决
- ubuntu18.04 systemd配置学习手册(1) --相关概念
- Android---BaseApplication
- Django的ManyToManyField及其属性through