<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[ahzxj2012的专栏]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/ahzxj2012</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; ahzxj2012]]></copyright><item><title><![CDATA[Java并发编程：线程池的使用]]></title><link>https://blog.csdn.net/ahzxj2012/article/details/82142945</link><guid>https://blog.csdn.net/ahzxj2012/article/details/82142945</guid><author>ahzxj2012</author><pubDate>Tue, 28 Aug 2018 09:57:12 +0800</pubDate><description><![CDATA[Java并发编程：线程池的使用

　　在前面的文章中，我们使用线程的时候就去创建一个线程，这样实现起来非常简便，但是就会有一个问题：

　　如果并发的线程数量很多，并且每个线程都是执行一个时间很短的任务就结束了，这样频繁创建线程就会大大降低系统的效率，因为频繁创建线程和销毁线程需要时间。

　　那么有没有一种办法使得线程可以复用，就是执行完一个任务，并不被销毁，而是可以继续执行其他的任务？

　　...]]></description><category></category></item><item><title><![CDATA[innobackupex 备份出现异常]]></title><link>https://blog.csdn.net/ahzxj2012/article/details/78793331</link><guid>https://blog.csdn.net/ahzxj2012/article/details/78793331</guid><author>ahzxj2012</author><pubDate>Wed, 13 Dec 2017 16:29:45 +0800</pubDate><description><![CDATA[备份问题：[root@ppdb01 backup]# innobackupex --defaults-file=/home/h5act3306/my.cnf --user=root --password=dba默认密码  --host=127.0.0.1 --port=3306 --slave-info /data/backup/
[root@ppdb01 backup]# innobackup]]></description><category></category></item><item><title><![CDATA[redis集群主从中断，报io过高]]></title><link>https://blog.csdn.net/ahzxj2012/article/details/76044513</link><guid>https://blog.csdn.net/ahzxj2012/article/details/76044513</guid><author>ahzxj2012</author><pubDate>Tue, 25 Jul 2017 09:39:16 +0800</pubDate><description><![CDATA[问题原因：
1、由于这个集群redis操作非常频繁，1分钟操作数据达到1-2G，所有自动aof非常频繁，主从复制打包rdb也非常频繁，之前配置已经无法满足要求
报异常如下
6943:M 19 Jul 20:22:57.326 # Connection with slave 10.215.84.40:6009 lost.
32944:C 19 Jul 20:23:14.920 * DB sa]]></description><category></category></item><item><title><![CDATA[redis-migrate-tool迁移工具]]></title><link>https://blog.csdn.net/ahzxj2012/article/details/74347984</link><guid>https://blog.csdn.net/ahzxj2012/article/details/74347984</guid><author>ahzxj2012</author><pubDate>Tue, 04 Jul 2017 17:56:31 +0800</pubDate><description><![CDATA[Redis 集群迁移工具，基于redis复制，快速，稳定。 
特点：

快速。多线程。基于redis复制。实时迁移。迁移过程中，源集群不影响对外提供服务。异构迁移。支持Twemproxy集群，redis cluster集群，rdb文件 和 aof文件。过滤功能。当目标集群是Twemproxy，数据会跳过Twemproxy直接导入到后端的redis。迁移状态显示。完善的数据抽样校验。

]]></description><category></category></item><item><title><![CDATA[redis集群安装踩过的坑]]></title><link>https://blog.csdn.net/ahzxj2012/article/details/73479847</link><guid>https://blog.csdn.net/ahzxj2012/article/details/73479847</guid><author>ahzxj2012</author><pubDate>Tue, 20 Jun 2017 08:17:35 +0800</pubDate><description><![CDATA[redis安装方式一

1.安装gcc命令:yum install -y gcc


#安装gcc
[root@localhost src]# yum install -y gcc

#出现如下信息则安装成功
Installed:
gcc.x86_64 0:4.4.7-17.el6

Dependency Installed:
cloog-ppl.x86_64 0:0.15.7-1.2.]]></description><category></category></item><item><title><![CDATA[创建redis集群报错 /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load suc]]></title><link>https://blog.csdn.net/ahzxj2012/article/details/73468119</link><guid>https://blog.csdn.net/ahzxj2012/article/details/73468119</guid><author>ahzxj2012</author><pubDate>Mon, 19 Jun 2017 15:38:33 +0800</pubDate><description><![CDATA[错误详细如下：
/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- redis (LoadError)
from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `requir]]></description><category></category></item><item><title><![CDATA[Unable to partial resync with the slave for lack of backlog (Slave request was: 2595405802583).]]></title><link>https://blog.csdn.net/ahzxj2012/article/details/72955890</link><guid>https://blog.csdn.net/ahzxj2012/article/details/72955890</guid><author>ahzxj2012</author><pubDate>Fri, 09 Jun 2017 11:36:09 +0800</pubDate><description><![CDATA[问题描述：redis主从中断报错 Unable to partial resync with the slave for lack of backlog (Slave request was: 2595405802583).导致从机rdb每一分钟刷一次内存，
内存够用还有30G，这种积压导致每次主从全量同步，导致从机cpu总是报警，偶尔挂了


问题解决方法：
在主机上登录  设置以下参]]></description><category></category></item><item><title><![CDATA[xargs: unmatched double quote; by default quotes are special to xargs unless you use the -0 option]]></title><link>https://blog.csdn.net/ahzxj2012/article/details/72898094</link><guid>https://blog.csdn.net/ahzxj2012/article/details/72898094</guid><author>ahzxj2012</author><pubDate>Wed, 07 Jun 2017 11:45:03 +0800</pubDate><description><![CDATA[删除十进制大量key，不能一次性删除，需要一点点删除


删除方法如下：./redis-cli -p 6388 keys "lastLoginWatchIdInApp:info:6*" | xargs ./redis-cli -p 6388  del     (info:6 ,后面这个6字表示十进制，共输入0-9和a-e)


删除redis数据报错 ：
xargs: unmatch]]></description><category></category></item><item><title><![CDATA[redis报错(error) LOADING Redis is loading the dataset in memory]]></title><link>https://blog.csdn.net/ahzxj2012/article/details/70849157</link><guid>https://blog.csdn.net/ahzxj2012/article/details/70849157</guid><author>ahzxj2012</author><pubDate>Thu, 27 Apr 2017 12:20:01 +0800</pubDate><description><![CDATA[问题描述：
[maintainer@bbkdb008 redis]$ ./redis-cli -p 6394 FLUSHALL  报这样错
[maintainer@bbkdb008 redis]$ ./redis-cli -p 6394 flushdb 也报这样错。

重启是没有问题的。设置最近最久未使用也报这样的问题。


解决方法：
修改配置文件 vi redis.conf
]]></description><category></category></item><item><title><![CDATA[在原最大分区基础上再增加分区方法]]></title><link>https://blog.csdn.net/ahzxj2012/article/details/70213565</link><guid>https://blog.csdn.net/ahzxj2012/article/details/70213565</guid><author>ahzxj2012</author><pubDate>Mon, 17 Apr 2017 17:03:07 +0800</pubDate><description><![CDATA[CREATE TABLE `t_user_worditem_record` (
  `id` bigint(25) NOT NULL AUTO_INCREMENT COMMENT '主键值，最大值超过亿',
  `book_id` int(10) NOT NULL COMMENT '课本id',
  `lesson_id` int(10) NOT NULL COMMENT '课文id',]]></description><category></category></item><item><title><![CDATA[MySQL前缀索引和索引选择性]]></title><link>https://blog.csdn.net/ahzxj2012/article/details/70154246</link><guid>https://blog.csdn.net/ahzxj2012/article/details/70154246</guid><author>ahzxj2012</author><pubDate>Thu, 13 Apr 2017 09:59:04 +0800</pubDate><description><![CDATA[有时候需要索引很长的字符列，这会让索引变得大且慢。通常可以索引开始的部分字符，这样可以大大节约索引空间，从而提高索引效率。但这样也会降低索引的选择性。索引的选择性是指不重复的索引值（也称为基数，cardinality)和数据表的记录总数的比值，范围从1/#T到1之间。索引的选择性越高则查询效率越高，因为选择性高的索引可以让MySQL在查找时过滤掉更多的行。唯一索引的选择性是1，这是最好的索引选择性]]></description><category></category></item><item><title><![CDATA[更新表数据，或者复制数据到新表出现这样问题ERROR 1180 (HY000): Got error 5 during COMMIT]]></title><link>https://blog.csdn.net/ahzxj2012/article/details/68483668</link><guid>https://blog.csdn.net/ahzxj2012/article/details/68483668</guid><author>ahzxj2012</author><pubDate>Thu, 30 Mar 2017 10:13:33 +0800</pubDate><description><![CDATA[解决方案如下：


mysql> select @@wsrep_max_ws_size;
+---------------------+
| @@wsrep_max_ws_size |
+---------------------+
|          1073741824 |
+---------------------+
1 row in set (0.00 sec)]]></description><category></category></item><item><title><![CDATA[mysql 5.6忘记root密码，需要重新找回，找回方法如下]]></title><link>https://blog.csdn.net/ahzxj2012/article/details/64437589</link><guid>https://blog.csdn.net/ahzxj2012/article/details/64437589</guid><author>ahzxj2012</author><pubDate>Tue, 21 Mar 2017 09:04:12 +0800</pubDate><description><![CDATA[vi /etc/my.cnf    #编辑文件，找到[mysqld]，在下面添加一行skip-grant-tables

[mysqld]

skip-grant-tables

:x!  #保存退出

service mysql restart  #重启MySQL服务

2、进入MySQL控制台

mysql -uroot -p   #直接按回车，这时不需要输入root密]]></description><category></category></item><item><title><![CDATA[刚建的mysql主从,但是主机的bin日志没有开启，报如下错：Got fatal error 1236 from master when reading data from binary log: ']]></title><link>https://blog.csdn.net/ahzxj2012/article/details/64124826</link><guid>https://blog.csdn.net/ahzxj2012/article/details/64124826</guid><author>ahzxj2012</author><pubDate>Mon, 20 Mar 2017 14:08:58 +0800</pubDate><description><![CDATA[报错内容如下：Got fatal error 1236 from master when reading data from binary log: 'Could not find first log file name in binary log index file'。






解决方法如下：1、

启用binlog
my.ini
#log-bin=mysql-bin]]></description><category></category></item><item><title><![CDATA[mysql 5.5 主从同步数据到 msyql5.6数据库，报错为Slave is not configured or failed to initialize properly. You must]]></title><link>https://blog.csdn.net/ahzxj2012/article/details/59118754</link><guid>https://blog.csdn.net/ahzxj2012/article/details/59118754</guid><author>ahzxj2012</author><pubDate>Wed, 01 Mar 2017 19:18:01 +0800</pubDate><description><![CDATA[报错为：

Slave is not configured or failed to initialize properly. You must at least set --server-id
 to enable either a master or a slave. Additional error messages can be found in t




1、分析得之：]]></description><category></category></item><item><title><![CDATA[mysql主从同步报错，错误问题看下面详细介绍]]></title><link>https://blog.csdn.net/ahzxj2012/article/details/54174279</link><guid>https://blog.csdn.net/ahzxj2012/article/details/54174279</guid><author>ahzxj2012</author><pubDate>Sat, 07 Jan 2017 15:17:27 +0800</pubDate><description><![CDATA[1、错误原因：搭好主从，
stop slave; 报下面这句错误
You must at least set --server-id to enable either a master or a slave. Additional error messages can be found in the MySQL error log
2、解决方法，重新备份一次，做主从也不行，请教公司DBA大牛]]></description><category></category></item><item><title><![CDATA[linux几种快速清空文件内容的方法]]></title><link>https://blog.csdn.net/ahzxj2012/article/details/54091560</link><guid>https://blog.csdn.net/ahzxj2012/article/details/54091560</guid><author>ahzxj2012</author><pubDate>Thu, 05 Jan 2017 11:43:50 +0800</pubDate><description><![CDATA[几种快速清空文件内容的方法：


　　$ : > filename #其中的 : 是一个占位符, 不产生任何输出.

　　$ > filename

　　$ echo “” > filename

　　$ echo /dev/null > filename

　　$ echo > filename

　　$ cat /dev/null > filename]]></description><category></category></item><item><title><![CDATA[主从同步成功，需要删除主数据库里的其他数据库就报这种错Event Scheduler: Failed to open table mysql.event]]></title><link>https://blog.csdn.net/ahzxj2012/article/details/54019878</link><guid>https://blog.csdn.net/ahzxj2012/article/details/54019878</guid><author>ahzxj2012</author><pubDate>Wed, 04 Jan 2017 15:34:29 +0800</pubDate><description><![CDATA[原因：因为数据库以前安装版本和新版本不一样，拷贝的时候把内部 event信息也拷贝过来了，所以导致这种问题




解决方法：
第一步：查看从机event表数据结构
mysql> show create table mysql.event;
CREATE TABLE `event` (
  `db` char(64) CHARACTER SET utf8 COLLATE utf8]]></description><category></category></item><item><title><![CDATA[查看mysql主从配置的状态及修正 slave不启动问题]]></title><link>https://blog.csdn.net/ahzxj2012/article/details/54017969</link><guid>https://blog.csdn.net/ahzxj2012/article/details/54017969</guid><author>ahzxj2012</author><pubDate>Wed, 04 Jan 2017 13:15:23 +0800</pubDate><description><![CDATA[1、查看master的状态
show master status;  //Position不应该为0
show processlist;  
//state状态应该为Has sent all binlog to slave; waiting for binlog to be updated
2、查看slave状态
show slave status;
//Slave_IO_Runnin]]></description><category></category></item><item><title><![CDATA[查看数据库里所有表的行数与存储大小]]></title><link>https://blog.csdn.net/ahzxj2012/article/details/53894153</link><guid>https://blog.csdn.net/ahzxj2012/article/details/53894153</guid><author>ahzxj2012</author><pubDate>Tue, 27 Dec 2016 11:32:14 +0800</pubDate><description><![CDATA[SELECT  table_name,table_rows, ROUND(SUM(data_length + index_length)/1024/1024/1024, 1) AS "Total GB" FROM  INFORMATION_SCHEMA.TABLES       
WHERE  table_schema NOT IN ("information_schema", "perform]]></description><category></category></item></channel></rss>