
Mysql 故障处理
Leo-2016
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
解决Mysql 主从或主主报1062错误
1062错误——主键冲突,出现这种情况就是从库出现插入操作,主库又插入相同的数据,iothread没问题,sqlthread出错处理此种错误一般有两种思路:1、直接跳过错误执行语句2、找到错误执行语句,修复主库2数据语句跳过操作方法如下:1062 错误提示如下: Last_Errno: 1062 Last_Error: Could not execute Wri...原创 2019-06-19 11:40:10 · 12353 阅读 · 0 评论 -
解决Mysql 主从或主主报1032错误
1032错误的主要原因是主库更新或者是删除的记录在从库上不存在引起的。处理此种错误一般有两种思路:1、直接跳过错误执行语句2、找到错误执行语句,修复从库数据第一种解决方案会有造成主从不一致的隐患(delete语句可以跳过),第二种是从根本上解决问题比较推荐语句跳过操作方法如下:1032 错误提示如下:Replicate_Wild_Ignore_Table: ...原创 2019-06-19 11:41:16 · 9942 阅读 · 0 评论 -
Mysql 5.7 多源复制 创建相同的数据库时提示 Slave: Can't create database 'test'; database exists Error_code: 1007
Mysql 5.7 多源复制有个限制,源数据库的名称不能相同。下面测试在两个源主库创建相同数据库test,第二个主库创建的时候查看从库状态报错如下所示:查看从库进程状态mysql> SHOW SLAVE STATUS FOR CHANNEL 'Master_2'/G;...Last_SQL_Errno: 1007Last_SQL_Error: Error 'Can't creat...原创 2019-06-19 11:47:17 · 1646 阅读 · 0 评论 -
Mysql 5.7搭建多源复制时遇到 Error_code: 1593 these UUIDs must be different for replication to work
show slave status/G; 显示错误信息Seconds_Behind_Master: NULLMaster_SSL_Verify_Server_Cert: No Last_IO_Errno: 1593 Last_IO_Error: Fatal error: The slave I/O thread stops b...原创 2019-11-14 22:47:20 · 1215 阅读 · 0 评论 -
ERROR 1133 (42000): Can't find any matching row in the user table
执行授权语句和授权时提示:ERROR 1133 (42000): Can't find any matching row in the user tablemysql> grant select on test.* to test@'192.168.56.8';ERROR 1133 (42000): Can't find any matching row in the user t...原创 2019-06-24 12:07:51 · 819 阅读 · 0 评论 -
Mysql 5.7搭建多源复制时遇到 Error_code: 1593 these UUIDs must be different for replication to work
show slave status/G; 显示错误信息Seconds_Behind_Master: NULLMaster_SSL_Verify_Server_Cert: No Last_IO_Errno: 1593 Last_IO_Error: Fatal error: The slave I/O thread stops b...原创 2019-06-24 17:46:23 · 780 阅读 · 0 评论 -
mysql 迁移数据文件之后报 [ERROR] InnoDB: The innodb_system data file 'ibdata1' must be writable
场景:我把备份的数据目录还原回来启动数据库报错,查看错误日志信息如下:2018-04-04 1:34:27 140362091378496 [ERROR] mysqld: File '/data/mysql/data/aria_log_control' not found (Errcode: 13 "Permission denied")2018-04-04 1:34:27 14036...原创 2019-06-24 17:50:52 · 4502 阅读 · 1 评论 -
mysql5.7 误删管理员root%'localhost'账户
1)停止数据库kill Mysql进程2)在加上 --skip-grant-tables启动mysql 进程加粗样式其中--skip-grant-tables意思是启动MySQL 服务的时候跳过权限表认证。启动后,连接到MySQL 的root 将不需要口令cd /mysqldata/mysql/bin./mysqld_safe --defaults-file=/etc/my.cnf ...原创 2019-07-11 18:43:12 · 1843 阅读 · 0 评论