<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[mesum的专栏]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/mesum</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; mesum]]></copyright><item><title><![CDATA[ibatis配置log4j输出sql语句等日志信息]]></title><link>https://blog.csdn.net/mesum/article/details/84471019</link><guid>https://blog.csdn.net/mesum/article/details/84471019</guid><author>mesum</author><pubDate>Tue, 20 Aug 2013 14:03:05 +0800</pubDate><description><![CDATA[
log4j.logger.java.sql.Connection=DEBUGlog4j.logger.java.sql.Statement=DEBUGlog4j.logger.java.sql.PreparedStatement=DEBUGlog4j.logger.java.sql.ResultSet=DEBUG
log4j.logger.com.ibatis=DEBUGlog4j.logg...]]></description><category></category></item><item><title><![CDATA[连接池]]></title><link>https://blog.csdn.net/mesum/article/details/84365898</link><guid>https://blog.csdn.net/mesum/article/details/84365898</guid><author>mesum</author><pubDate>Sun, 09 Dec 2012 12:30:12 +0800</pubDate><description><![CDATA[连接池的设计
 
1.driver,jdbc,username,password
2.连接池内部维护一个忙的连接列表，一个空闲连接列表
3.初始化连接池，即创建最小连接数个空闲连接，放到空闲连接列表中。
4.有需要来取链接时，看下空闲连接表中有无可用连接，如果有，将这个链接放到忙的连接列表中，并将此链接返回。如果没有，并且忙的连接列表的个数没达到最大连接数，则创建一个连接，将这个连接放到...]]></description><category></category></item><item><title><![CDATA[设置MySQL自动增长起点和步长]]></title><link>https://blog.csdn.net/mesum/article/details/84358620</link><guid>https://blog.csdn.net/mesum/article/details/84358620</guid><author>mesum</author><pubDate>Tue, 20 Nov 2012 14:03:37 +0800</pubDate><description><![CDATA[




mysql&amp;gt; SET @auto_increment_increment=10;                      
mysql&amp;gt; SHOW VARIABLES LIKE 'auto_inc%';                       +--------------------------+-------+                       ...]]></description><category></category></item><item><title><![CDATA[java实现md5签名]]></title><link>https://blog.csdn.net/mesum/article/details/84287176</link><guid>https://blog.csdn.net/mesum/article/details/84287176</guid><author>mesum</author><pubDate>Mon, 10 Sep 2012 20:51:26 +0800</pubDate><description><![CDATA[在linux下，大家常使用md5算法对文件进行签名。
对于md5sum 命令的说明 参考链接 http://baike.baidu.com/view/1919192.htm
 
平时在程序中也时常需要对文件进行md5签名，代码如下
 


import java.io.IOException;
import java.io.InputStream;
import java.secu...]]></description><category></category></item><item><title><![CDATA[Linux系统各个目录的一般作用]]></title><link>https://blog.csdn.net/mesum/article/details/84280012</link><guid>https://blog.csdn.net/mesum/article/details/84280012</guid><author>mesum</author><pubDate>Wed, 29 Aug 2012 13:04:45 +0800</pubDate><description><![CDATA[　对于linux新手来说，最感到迷惑的问题之一就是文件都存在哪里呢？特别是对于那些从windows转过来的新手来说，linux的目录结构看起来有些奇怪哦。所以，在这里讲一下linux下的主要目录以及它们都是用来干什么的。 　　/ 　　This is the root directory. The mothership. The home field. The one and only top di...]]></description><category></category></item><item><title><![CDATA[solr的部署]]></title><link>https://blog.csdn.net/mesum/article/details/84280010</link><guid>https://blog.csdn.net/mesum/article/details/84280010</guid><author>mesum</author><pubDate>Wed, 29 Aug 2012 13:02:00 +0800</pubDate><description><![CDATA[在Linux下安装配置Solr的过程：wget http://apache.mirror.phpchina.com/tomcat/tomcat-6/v6.0.16/bin/apache-tomcat-6.0.16.zipunzip apache-tomcat-6.0.16.zipmv apache-tomcat-6.0.16 /opt/tomcatchmod 755 /opt/tomcat/bin...]]></description><category></category></item><item><title><![CDATA[查看crontab的日志]]></title><link>https://blog.csdn.net/mesum/article/details/84277951</link><guid>https://blog.csdn.net/mesum/article/details/84277951</guid><author>mesum</author><pubDate>Fri, 24 Aug 2012 11:26:15 +0800</pubDate><description><![CDATA[昨天crontab中的同步任务没有执行，不知道是什么原因没有执行，貌似任务hang住了，想查询一下crontab到底问题出在哪里，或者hang在了什么地方。 1.  linux看 /var/log/cron这个文件就可以，可以用tail -f /var/log/cron观察 2.  unix在 /var/spool/cron/tmp文件中，有croutXXX001864的tmp文件，tail 这些...]]></description><category></category></item><item><title><![CDATA[mysql 出错提示]]></title><link>https://blog.csdn.net/mesum/article/details/84275239</link><guid>https://blog.csdn.net/mesum/article/details/84275239</guid><author>mesum</author><pubDate>Sat, 18 Aug 2012 19:57:09 +0800</pubDate><description><![CDATA[1.ERROR 1044 (42000): Access denied for user 'tracy'@'localhost' to database 'innodbTest'
 
tracy这个用户，没有权限创建用户
 
使用root用户登录，运行如下命令
mysql &amp;gt;create database innodb_test;
mysql&amp;gt;grant all on in...]]></description><category></category></item><item><title><![CDATA[mysql 基本命令]]></title><link>https://blog.csdn.net/mesum/article/details/84275237</link><guid>https://blog.csdn.net/mesum/article/details/84275237</guid><author>mesum</author><pubDate>Sat, 18 Aug 2012 19:23:09 +0800</pubDate><description><![CDATA[1.进入mysql客户端
 
	mysql -u username -p
提示输入密码
 
2.显示有哪些数据库
 show databases;
 
3.进入某个数据库
 
 use &amp;lt;dbname&amp;gt;;
 
4.显示这个数据库中的所有表
 show tables;
 
5.退出
 exit;
 
6.创建某个数据库
 
   create da...]]></description><category></category></item><item><title><![CDATA[InnoDB ]]></title><link>https://blog.csdn.net/mesum/article/details/84275230</link><guid>https://blog.csdn.net/mesum/article/details/84275230</guid><author>mesum</author><pubDate>Sat, 18 Aug 2012 19:11:59 +0800</pubDate><description><![CDATA[1.在mysql客户端，输入以下命令
 mysql&amp;gt;show variables like 'have_%';
 图中显示 have_innodb yes，说明此mysql 数据库是支持innodb的。
 
 
2.创建innodb 的表
 
 
create table test (id bigint(20),name varchar(50)) type = innoDB;...]]></description><category></category></item><item><title><![CDATA[模拟ibtais参数注入的过程]]></title><link>https://blog.csdn.net/mesum/article/details/84273712</link><guid>https://blog.csdn.net/mesum/article/details/84273712</guid><author>mesum</author><pubDate>Wed, 15 Aug 2012 11:42:54 +0800</pubDate><description><![CDATA[使用Ibatis时，只需要把sql语句写好，指明需要注入的参数对应对象中的属性就可以了。这样极大的提高了开发效率。
我在工作过程中，遇到了一些场景，需要自己去直接连接JDBC写数据库，我又想模拟Ibatis自动补全参数的功能，所以就写了下面的这些代码。欢迎指证批评。
 
创建数据库连接的代码


import java.sql.Connection;
import java.sql.D...]]></description><category></category></item><item><title><![CDATA[JDBC 连接示例]]></title><link>https://blog.csdn.net/mesum/article/details/84273680</link><guid>https://blog.csdn.net/mesum/article/details/84273680</guid><author>mesum</author><pubDate>Wed, 15 Aug 2012 11:20:23 +0800</pubDate><description><![CDATA[创建JDBC的基础类
 
import java.sql.Connection;
import java.sql.DriverManager;

/**
 * 2012-8-9 tracy.liuy
 */
public class DbConnection {


    public Connection conn = null;

    public DbConn...]]></description><category></category></item><item><title><![CDATA[awk 的使用]]></title><link>https://blog.csdn.net/mesum/article/details/84273657</link><guid>https://blog.csdn.net/mesum/article/details/84273657</guid><author>mesum</author><pubDate>Wed, 15 Aug 2012 10:57:14 +0800</pubDate><description><![CDATA[awk -F, '{sum+=$10}END{printf &quot;sum=%.2f&quot;,sum}' B2B_BILLDLY201206120000.REC
awk -F, 'BEGIN {sum=0;sum1=0} {if($18==1){sum+=$13}else{sum1+=$13}}END{printf &quot;sum=%.2f,sum1=%.2f\n&quot;,sum,sum1}' B2B_BILLDLY2...]]></description><category></category></item><item><title><![CDATA[转载   百万数据查询优化技巧三十则]]></title><link>https://blog.csdn.net/mesum/article/details/84273650</link><guid>https://blog.csdn.net/mesum/article/details/84273650</guid><author>mesum</author><pubDate>Wed, 15 Aug 2012 10:54:15 +0800</pubDate><description><![CDATA[

1.对查询进行优化，应尽量避免全表扫描，首先应考虑在 where 及 order by 涉及的列上建立索引。
2.应尽量避免在 where 子句中对字段进行 null 值判断，否则将导致引擎放弃使用索引而进行全表扫描，如： 
select id from t where num is null 
可以在num上设置默认值0，确保表中num列没有null值，然后这样查询： 
selec...]]></description><category></category></item><item><title><![CDATA[性能问题调优过程经验总结]]></title><link>https://blog.csdn.net/mesum/article/details/84273482</link><guid>https://blog.csdn.net/mesum/article/details/84273482</guid><author>mesum</author><pubDate>Tue, 14 Aug 2012 22:26:41 +0800</pubDate><description><![CDATA[在结算改造项目和Mysql迁移项目中，结算遇到了一些性能问题。 在性能优化的过程中，根据不同的场景采用了不同的方法来解决遇到的问题。我把处理的过程和采用的方法发出来，大家来看下是否这些方法得当。

一、	全量检查


全量检查客户上下线时，要检查数据库表q_customers里120W左右的数据和ad_campaigns里面110W左右的数据。考虑了以下两种方法：1.	所有的数据，要读到内存...]]></description><category></category></item></channel></rss>