MYSQL
灰帽DBA
这个作者很懒,什么都没留下…
展开
-
MYSQL OS errno 24 - Too many open files
OS errno 24 - Too many open files使用xtrabackup备份时候报错210716 08:49:48 [01] Copying ./ecology/workrelate_share_permissions.ibd to /backupmysql/data/ecology/workrelate_share_permissions.ibdxtrabackup: Can't create/write to file '/backupmysql/data/ecology.原创 2021-09-02 15:44:47 · 2291 阅读 · 0 评论 -
mysql 8.0 警告日志大量写入sha256_password‘ is deprecated and will be removed
sha256_password' is deprecated and will be removed in a future release. Please use caching_sha2_password insteadmysql server errorlog忽然爆出大量的sha256_password' is deprecated and will be removed in a future release.错误,导致error不停写入报错信息2021-07-11T13:17:25.06.原创 2021-07-13 07:36:07 · 8374 阅读 · 0 评论 -
测试环境 MySQL 5.7.31 单实例升级 MySQL 8.0.22
测试环境 MySQL 5.7.31 单实例升级 MySQL 8.0.22升级MySQL-5.7.31至 MySQL-8.0.22注意事项:1.升级前需要收集完整源库信息,字符集、sql_mode、数据量、用户等主要信息2.如果是生产环境需要做好源库的备份,配置文件的备份3.升级过程中需要确保应用程序全部关闭,也可以把业务账户删除或者账户加锁、也可以通过设置限制连接数4.升级后进行业务验证1.原MySQL系统环境1.1.系统版本 [root@mysql~]# cat /etc/re.原创 2021-01-07 21:57:56 · 1678 阅读 · 1 评论 -
CentOS 7.8下Percona-toolkit的安装和配置
1.当前系统版本[root@mgr01]# cat /etc/redhat-release CentOS Linux release 7.8.2003 (Core)2.配置好网络yum源,安装perl的依赖关系[root@mgr01]# yum install perl-DBI -y[root@mgr01]# yum install perl-DBD-MySQL -y[root@mgr01]# yum install perl-Time-HiRes -y[root@mgr01]# yum.原创 2020-12-25 03:10:58 · 528 阅读 · 0 评论 -
Can‘t exec “mysqlbinlog“: No such file or directory BinlogManager.pm line 106.
Can't exec "mysqlbinlog": No such file or directory at /usr/share/perl5/vendor_perl/MHA/BinlogManager.pm line 106.[root@mha-m mha_master]# masterha_check_repl -conf=/etc/mha_master/mha.cnfThu Nov 12 20:28:51 2020 - [warning] Global configuration file .原创 2020-11-12 20:42:24 · 1344 阅读 · 0 评论 -
masterha_check_ssh验证互信时候报错/usr/share/perl5/vendor_perl/MHA/SSHCheck.pm line 148.
masterha_check_ssh验证互信时候报错[root@mha-m .ssh]# masterha_check_ssh -conf=/etc/mha_master/mha.cnfThu Nov 12 20:02:10 2020 - [warning] Global configuration file /etc/masterha_default.cnf not found. Skipping./etc/mha_master/mha.cnf: at /usr/share/perl5/ven.原创 2020-11-12 20:09:21 · 5996 阅读 · 0 评论 -
CentOS 7安装 mha4mysql-manager-0.58 依赖 Requires: perl(:MODULE_COMPAT_5.10.1)
1.CentOS7在安装mha-manager时报依赖关系的错,Requires: perl(:MODULE_COMPAT_5.10.1),现存的yum无法安装perl依赖关系[root@mha-m ~]# yum install -y mha4mysql-manager-0.58-0.el7.centos.noarch.rpm Loaded plugins: fastestmirror, langpacksExamining mha4mysql-manager-0.58-0.el7.cento..原创 2020-11-12 17:57:08 · 7128 阅读 · 4 评论 -
RHEL 7.8 64bit MYSQL linux-generic 8.0.20 初始化安装
1. 准备最基础信息的my.cnf本案例my.cnf配置文件是最基础的初始化配置文件,只能保证mysql服务正常开启,并不适用生产环境,关于更多关于buffer等性能参数需要根据主机的硬件环境进行后续相应配置[root@mysql~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.8 (Maipo)MySQL-mysql-8.0.201.1. 准备my.cnf 配置文件[root@mysql ...原创 2020-10-25 22:28:31 · 496 阅读 · 0 评论 -
Last_Errno: 1594 the master's binary log is corrupted Last_SQL_Errno: 1062
mysql主从复制不同步异常查看从库同步状态,发现Slave_SQL_Running: No状态异常,主备库已经不再同步,初步怀疑是断电倒是binlog的问题mysql> show slave status\G*************************** 1. row *************************** Slave_IO_Stat原创 2017-10-13 15:06:28 · 858 阅读 · 0 评论 -
ERROR 1062 (23000): ALTER TABLE causes auto_increment resequencing, resulting in duplicate entry '1'
测试环境1.MYSQL版本+------------+| version() |+------------+| 5.7.18-log |+------------+2.建表语句mysql> show create table M;原创 2017-08-22 11:31:49 · 1519 阅读 · 0 评论 -
ERROR 1366 (HY000): Incorrect integer value: 'False' for column 'bd_ip' at row 1943555
更改MySQL表的属性,前期没有考虑到性能问题,将存IP端的列设置了varchar类型,由于数据量询量不断增大,使用char类型存储IP地址不仅占用空间而且影响MySQL查询效率,在多表jion时性能差异就更明显了,所以存储ip用int类型,int只占用4个字节,因为省空间,空间就是效率,选用字段的一般原则是能用占用少字节的字段就不用大字段MySQL支持5个主要几个类型是tinyint,原创 2017-08-16 13:52:00 · 2166 阅读 · 0 评论 -
解决 libev.so.4()(64bit) is needed by percona-xtrabackup-2.3.4-1.el6.x86_64案例
在mysql主从同步时经常会用到Xtra, XtraBackup可以说是一个相对完美的免费开源数据备份工具,支持在线无锁表同步复制和可并行高效率的安全备份恢复机制相比mysqldump来说优势较大,在RHEL6中安装XtraBackup时发生缺少依赖包的现象,本人针对缺少依赖包现象进行解决1.本实验环境[root@master ~]# uname -r2.6.32-573.el6.x原创 2016-05-17 05:33:03 · 19918 阅读 · 7 评论 -
ERROR 1366 (HY000): Incorrect string value: '\ ' for column ' ' at row 1
概述:01.版本 MYSQL 5.6mysql> select version();+-----------+| version() |+-----------+| 5.6.29 |+-----------+02.操作系统版本[root@mynode1 ~]# cat /etc/redhat-release Red Hat Enterprise Linux Ser原创 2016-05-25 16:39:19 · 2243 阅读 · 0 评论 -
A slave with the same server_uuid as this slave has connected to the master
Got fatal error 1236 from master when reading data from binary log: 'A slave with the same server_uuid as this slave has connected to the master;mysql version 5.6.28 system version rhel 6.7在用虚拟机配原创 2016-05-24 05:43:34 · 5862 阅读 · 0 评论 -
MYSQL一个简单的问题 error: Failed dependencies: MySQL-server conflicts with mysql-server
RHEL6.7 安装MySQL-server-5.6.28时发现有冲突,报错已经很明显,是RHEL6.7安装时默认自带版本与现有安装版本冲突[root@mdb mysdata]# rpm -ivh --replacefiles MySQL-s*.rpmwarning: MySQL-server-5.6.28-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signa原创 2016-03-17 11:18:35 · 2783 阅读 · 0 评论