摘要: 测试用 create table test(num1 varchar(10),num2 varchar(100),num3 varchar(10)); drop procedure test; DELIMITER ;; CREATE PROCEDURE test() BEGIN DECLARE y 阅读全文
posted @ 2018-11-14 11:25 Coye 阅读(359) 评论(0) 推荐(0) 编辑
摘要: 有个小朋友修复从库,但是 后,报错信息如下 Could not execute Write_rows event on table hsfdssdb.mf_textannounce; Got error 1 from storage engine, Error_code: 1030; handler 阅读全文
posted @ 2018-11-14 11:02 Coye 阅读(479) 评论(2) 推荐(0) 编辑
摘要: 参考 https://dev.mysql.com/doc/refman/8.0/en/insert optimization.html https://dev.mysql.com/doc/refman/8.0/en/optimizing innodb bulk data loading.html S 阅读全文
posted @ 2018-11-06 11:07 Coye 阅读(754) 评论(0) 推荐(0) 编辑
摘要: 需要安装schedule模块,该模块网址: "https://pypi.org/project/schedule/" import schedule import time import sys def job(): print time.strftime("%Y %m %d %H:%M:%S", 阅读全文
posted @ 2018-08-16 15:00 Coye 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 最简配置文件 [mysqld] port=3306 datadir=/mysql/data/ log_error=/mysql/data/mysql_error.log basedir=/usr/local/mysql/ 初始化 /usr/local/mysql/bin/mysqld --defau 阅读全文
posted @ 2018-04-20 01:19 Coye 阅读(182) 评论(0) 推荐(0) 编辑
摘要: Determine YARN and MapReduce Memory Configuration Settings "https://docs.hortonworks.com/HDPDocuments/HDP2/HDP 2.0.9.1/bk_installing_manually_book/con 阅读全文
posted @ 2018-01-29 11:56 Coye 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 原因:内存不足,SWAP不足 创建分区文件,大小 4G [root@mysql05 ~]# dd if=/dev/zero of=/data/swapfile bs=1k count=4096000 4096000+0 records in 4096000+0 records out 4194304 阅读全文
posted @ 2018-01-29 10:55 Coye 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 环境 :Percona Server for MySQL 5.5.18 1. 报错日志: 171212 19:59:58 [ERROR] Slave SQL: Query partially completed on the master (error on master: 1317) and wa 阅读全文
posted @ 2017-12-12 20:55 Coye 阅读(746) 评论(0) 推荐(0) 编辑
摘要: 准备 yum install cmake yum install -y bison yum install -y libaio-devel yum install -y boost yum install gcc-c++ (不然cmake过程中会报错 ) CMake Error at /usr/cm 阅读全文
posted @ 2017-11-22 10:11 Coye 阅读(2219) 评论(0) 推荐(0) 编辑
摘要: 环境:Percona Server for MySQL 5.5.18 模拟三个Terminal,实现当引用锁定表的查询被杀死时,错误日志中出现的Got error 1 when reading table Terminal A mysql set session autocommit=0; Quer 阅读全文
posted @ 2017-11-11 14:58 Coye 阅读(444) 评论(0) 推荐(1) 编辑