锘??xml version="1.0" encoding="utf-8" standalone="yes"?>婷婷综合久久狠狠色99h,国产伊人久久,欧美精品久久久久久久自慰http://www.shnenglu.com/changshoumeng/category/20662.html浠庝簨宸ヤ綔娑夊強鍚勭涓繪祦緙栫▼璇█錛屾湭鏉ユ湡鏈涗嬌鐢ㄨ繖浜涘埄鍣紝鎶曞叆鍒版煇涓涓撲笟棰嗗煙錛岃繎鏈熷鏈哄櫒瀛︿範涓庢暟鎹寲鎺樻劅鍏磋叮銆?/description>zh-cnFri, 17 Apr 2015 06:24:46 GMTFri, 17 Apr 2015 06:24:46 GMT60mongodb鐨勬祴璇曟姤鍛?/title><link>http://www.shnenglu.com/changshoumeng/archive/2015/04/13/210328.html</link><dc:creator>闀垮姊?/dc:creator><author>闀垮姊?/author><pubDate>Mon, 13 Apr 2015 09:34:00 GMT</pubDate><guid>http://www.shnenglu.com/changshoumeng/archive/2015/04/13/210328.html</guid><wfw:comment>http://www.shnenglu.com/changshoumeng/comments/210328.html</wfw:comment><comments>http://www.shnenglu.com/changshoumeng/archive/2015/04/13/210328.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/changshoumeng/comments/commentRss/210328.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/changshoumeng/services/trackbacks/210328.html</trackback:ping><description><![CDATA[     鎽樿:             娉ㄦ剰錛氭祴璇曟柟娉曟垨鑰呮帹綆楁濊礬錛屽彲鑳芥湁闂錛屾榪庢壒璇勪笌鎸囨銆?  Mongodb鐨勭増鏈? 鎵ц鍛戒護mongod --version寰楀埌   "version" : "3.0.1",&n...  <a href='http://www.shnenglu.com/changshoumeng/archive/2015/04/13/210328.html'>闃呰鍏ㄦ枃</a><img src ="http://www.shnenglu.com/changshoumeng/aggbug/210328.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/changshoumeng/" target="_blank">闀垮姊?/a> 2015-04-13 17:34 <a href="http://www.shnenglu.com/changshoumeng/archive/2015/04/13/210328.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>mongodb鐨勪富浠庢祴璇曚笌澶嶅埗闆嗘祴璇曠殑瀹為獙錛堥檮甯︽祴璇曠殑閰嶇疆鏂囦歡錛?/title><link>http://www.shnenglu.com/changshoumeng/archive/2015/04/13/210327.html</link><dc:creator>闀垮姊?/dc:creator><author>闀垮姊?/author><pubDate>Mon, 13 Apr 2015 09:27:00 GMT</pubDate><guid>http://www.shnenglu.com/changshoumeng/archive/2015/04/13/210327.html</guid><wfw:comment>http://www.shnenglu.com/changshoumeng/comments/210327.html</wfw:comment><comments>http://www.shnenglu.com/changshoumeng/archive/2015/04/13/210327.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/changshoumeng/comments/commentRss/210327.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/changshoumeng/services/trackbacks/210327.html</trackback:ping><description><![CDATA[<div><span style="font-size: 12px;">1.mongodb 鐨勭増鏈?/span></div><div><span style="font-size: 12px;">  v3.0.1</span></div><div><span style="font-size: 12px;">  </span></div><div><span style="font-size: 12px;">2.mongodb鐨勭敤鎴鋒潈闄愬垎閰?/span></div><div><span style="font-size: 12px;"><br /></span></div><div><span style="font-size: 12px;">//鍒涘緩瓚呯駭綆$悊鐢ㄦ埛</span></div><div><span style="font-size: 12px;">use admin</span></div><div><span style="font-size: 12px;">db.createUser(</span></div><div><span style="font-size: 12px;">  {</span></div><div><span style="font-size: 12px;">    user:"superuser",</span></div><div><span style="font-size: 12px;">    pwd:"superuser@nMhU3x",</span></div><div><span style="font-size: 12px;">    roles:["root"]</span></div><div><span style="font-size: 12px;">  }</span></div><div><span style="font-size: 12px;">)</span></div><div><span style="font-size: 12px;"><br /></span></div><div><span style="font-size: 12px;"><span style="white-space:pre"> </span>鍙傝冩枃妗o細http://demo.netfoucs.com/xuzheng_java/article/details/42550653</span></div><div><span style="white-space: pre; font-size: 12px;"> </span></div><div><span style="font-size: 12px;">3. mongodb 鍒濇鍚姩鏃訛紝瑙傚療鍏跺崰鐢ㄧ殑紓佺洏絀洪棿銆傚彂鐜板崰鐢ㄤ簡20G絀洪棿錛岃繖涓巑ongodb涓轟簡鎻愰珮鍐欐ц兘錛?/span></div><div><span style="font-size: 12px;">   涓庡垎閰嶆暟鎹湁鍏熾?/span></div><div><span style="font-size: 12px;">   </span></div><div><span style="font-size: 12px;">   鍘熷洜錛?/span></div><div><span style="font-size: 12px;">   oplogSize錛氭寚瀹氱殑澶嶅埗鎿嶄綔鏃ュ織錛圤PLOG錛夌殑鏈澶уぇ灝忋俶ongod鍒涘緩涓涓狾PLOG鐨勫ぇ灝忓熀浜庢渶澶у彲鐢?/span></div><div><span style="font-size: 12px;">   絀洪棿閲忋傚浜?4浣嶇郴緇燂紝OPLOG閫氬父鏄?錛呯殑鍙敤紓佺洏絀洪棿銆備竴鏃ongod絎竴嬈″垱寤篛PLOG錛屾敼鍙榦plog</span></div><div><span style="font-size: 12px;">   Size灝嗕笉浼氬獎鍝峅PLOG鐨勫ぇ灝忋?/span></div><div><span style="font-size: 12px;">   </span></div><div><span style="font-size: 12px;">   鎴戞妸oplogSize閰嶇疆涓?G鍙戠幇錛屽垵濮嬪寲鏃剁敓鎴愪簡涓涓猯ocal.1錛屽ぇ灝忎負1G銆?/span></div><div><span style="font-size: 12px;">   </span></div><div><span style="font-size: 12px;">4. 閽堝mongodb鐨剋arnning鐨勭郴緇熺駭鍒殑浼樺寲錛?/span></div><div><span style="font-size: 12px;">      </span></div><div><span style="font-size: 12px;">   絎竴姝ワ細</span></div><div><span style="font-size: 12px;">  浣跨敤root鐢ㄦ埛鏉冮檺鐧誨綍錛?/span></div><div><span style="font-size: 12px;">  </span></div><div><span style="font-size: 12px;">   echo "never" > /sys/kernel/mm/transparent_hugepage/enabled</span></div><div><span style="font-size: 12px;">   echo "never" > /sys/kernel/mm/transparent_hugepage/defrag</span></div><div><span style="font-size: 12px;"><br /></span></div><div><span style="font-size: 12px;">   絎簩姝ワ細</span></div><div><span style="font-size: 12px;">   浣跨敤root鐢ㄦ埛鏉冮檺鐧誨綍錛?/span></div><div><span style="font-size: 12px;">  </span></div><div><span style="font-size: 12px;">   vim /etc/profile</span></div><div><span style="font-size: 12px;"><br /></span></div><div><span style="font-size: 12px;">   娣誨姞浠ヤ笅鍛戒護錛?/span></div><div><span style="font-size: 12px;"><br /></span></div><div><span style="font-size: 12px;">  ulimit -f unlimited</span></div><div><span style="font-size: 12px;">  ulimit -t unlimited</span></div><div><span style="font-size: 12px;">  ulimit -v unlimited</span></div><div><span style="font-size: 12px;">  ulimit -n 64000</span></div><div><span style="font-size: 12px;">  ulimit -m unlimited</span></div><div><span style="font-size: 12px;">  ulimit -u 32000</span></div><div><span style="font-size: 12px;"><br /></span></div><div><span style="font-size: 12px;">5.  鍦ㄥ仛mongodb涓諱粠澶嶅埗鏃訛紝鍦ㄦ病鏈夊紑鍚?-auth妯″紡鏃訛紝榪愯姝e父銆?/span></div><div><span style="font-size: 12px;">    鐒跺悗錛屽紑鍚富搴?--auth妯″紡錛?/span></div><div><span style="font-size: 12px;">    鍙戠幇浠庡簱閬囧埌楠岃瘉闂錛屾暟鎹笉鑳藉悓姝ユ垚鍔熴?/span></div><div><span style="font-size: 12px;">    鍦ㄨ繖縐嶆儏鍐典笅錛屽仛瀹為獙澶辮觸錛屽皻鏈В鍐熾?/span></div><div><span style="font-size: 12px;"><br /></span></div><div><span style="font-size: 12px;">6.  鍙戠幇mongodb鍒濆鍖栨椂錛宒ata鍗犵敤鐗╃悊絀洪棿鏄?3G;鐒跺悗鎻掑叆1KW鏉℃暟鎹悗錛屽崰鐢ㄧ┖闂存槸29G錛?/span></div><div><span style="font-size: 12px;">    鑻ユ彃鍏?KW鏉℃暟鎹紝鍗犵敤絀洪棿鏄?0G<span style="white-space:pre"> </span></span></div><div><span style="font-size: 12px;">   </span></div><div><span style="font-size: 12px;">  30601 LBSUser   20   0 56.9g(VIRT) 2.8g(RES) 2.4g S  0.0  9.0   0:14.47 mongod </span></div><div><span style="font-size: 12px;">  </span></div><div><span style="font-size: 12px;">  </span></div><div><span style="font-size: 12px;">7.   mongodb涓諱粠澶嶅埗鐨勯厤緗枃浠惰錛?/span></div><div><span style="font-size: 12px;"><br /></span></div><div><span style="font-size: 12px;">     mongodb-master-slave.tar</span></div><div><span style="font-size: 12px;"><br /></span></div><div><span style="font-size: 12px;">     閰嶇疆鏂囦歡鐨勮鏄庯細</span></div><div><span style="font-size: 12px;">     鍙傝冿細http://www.it165.net/database/html/201402/5303.html</span></div><div><span style="font-size: 12px;"><br /></span></div><div><span style="font-size: 12px;">8.   mongodb鍓湰闆嗙殑閰嶇疆鏂囦歡瑙侊細</span></div><div><span style="font-size: 12px;">     mongodb-replset.tar.gz<span style="white-space:pre"> </span> </span><a title="閰嶇疆鏂囦歡" href="/Files/changshoumeng/mongodb-replset.tar.zip">閰嶇疆鏂囦歡<br /></a></div><div><span style="font-size: 12px;">   </span>mongodb-master-slave.tar.zip <a title="閰嶇疆鏂囦歡" href="/Files/changshoumeng/mongodb-master-slave.tar.zip" style="font-size: 12px;">閰嶇疆鏂囦歡</a></div><div><span style="font-size: 12px;"><br /></span></div><div><span style="font-size: 12px;">   </span></div><div><span style="font-size: 12px;">   </span></div><div><span style="font-size: 12px;">  </span></div><img src ="http://www.shnenglu.com/changshoumeng/aggbug/210327.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/changshoumeng/" target="_blank">闀垮姊?/a> 2015-04-13 17:27 <a href="http://www.shnenglu.com/changshoumeng/archive/2015/04/13/210327.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>瀵規暟鎹簱绱㈠紩鐨勪竴鐐規葷粨http://www.shnenglu.com/changshoumeng/archive/2015/02/11/209789.html闀垮姊?/dc:creator>闀垮姊?/author>Wed, 11 Feb 2015 03:16:00 GMThttp://www.shnenglu.com/changshoumeng/archive/2015/02/11/209789.htmlhttp://www.shnenglu.com/changshoumeng/comments/209789.htmlhttp://www.shnenglu.com/changshoumeng/archive/2015/02/11/209789.html#Feedback0http://www.shnenglu.com/changshoumeng/comments/commentRss/209789.htmlhttp://www.shnenglu.com/changshoumeng/services/trackbacks/209789.html
闂錛歮ysql 澶氬垪绱㈠紩鐨勬渶宸﹀墠緙 
鍙傝冿細http://blog.sina.com.cn/s/blog_4deb16580100i8v2.html
緇撹錛氱儲寮曟枃浠舵槸鏍規嵁鏈宸﹁竟鐨勪竴鍒楄繘琛屾帓搴忕殑錛岀劧鍚庢寜鐓т簩鍒嗘煡鎵炬硶鏌ユ壘鐨勩?/div>
闂錛氱儲寮曠殑綾誨瀷錛氭櫘閫氱儲寮曘佸敮涓鎬х儲寮曘佷富閿佸叏鏂囩儲寮?/div>
鍙傝冿細http://opq149766320.iteye.com/blog/561183
緇撹錛?/div>
闂錛?MySQL Hash绱㈠紩鍜孊-Tree绱㈠紩鐨勫尯鍒?/div>
鍙傝冿細http://database.51cto.com/art/201010/229525.htm
緇撹錛氭槧灝勮鍒欏鑷寸殑緙虹偣銆佸啿紿佸鑷寸殑緙虹偣
     


]]>im鐨勯毦鐐?/title><link>http://www.shnenglu.com/changshoumeng/archive/2015/02/10/209778.html</link><dc:creator>闀垮姊?/dc:creator><author>闀垮姊?/author><pubDate>Tue, 10 Feb 2015 07:31:00 GMT</pubDate><guid>http://www.shnenglu.com/changshoumeng/archive/2015/02/10/209778.html</guid><wfw:comment>http://www.shnenglu.com/changshoumeng/comments/209778.html</wfw:comment><comments>http://www.shnenglu.com/changshoumeng/archive/2015/02/10/209778.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/changshoumeng/comments/commentRss/209778.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/changshoumeng/services/trackbacks/209778.html</trackback:ping><description><![CDATA[im鐨勬灦鏋勶紝涓嶆槸闅懼湪娑堟伅鐨勮漿鍙戯紝鑰屾槸闅懼湪<br />1.鐢ㄦ埛鐘舵佺殑緇存姢<br />2.鐢ㄦ埛紺句氦緗戠粶鐨勬瀯閫?img src ="http://www.shnenglu.com/changshoumeng/aggbug/209778.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/changshoumeng/" target="_blank">闀垮姊?/a> 2015-02-10 15:31 <a href="http://www.shnenglu.com/changshoumeng/archive/2015/02/10/209778.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>灝哅YSQL澶氬簱琛ㄧ殑鏁版嵁榪佺Щ鍒癛EDIS鐨凷HELL鑴氭湰http://www.shnenglu.com/changshoumeng/archive/2014/07/18/207691.html闀垮姊?/dc:creator>闀垮姊?/author>Fri, 18 Jul 2014 09:29:00 GMThttp://www.shnenglu.com/changshoumeng/archive/2014/07/18/207691.htmlhttp://www.shnenglu.com/changshoumeng/comments/207691.htmlhttp://www.shnenglu.com/changshoumeng/archive/2014/07/18/207691.html#Feedback0http://www.shnenglu.com/changshoumeng/comments/commentRss/207691.htmlhttp://www.shnenglu.com/changshoumeng/services/trackbacks/207691.html#!/bin/sh

DBFILE
=./migratedata2redis.sql

for((nDBIndex=0;nDBIndex<4;nDBIndex++))
do

if [ -$DBFILE ]
then
        rm 
-rf $DBFILE
fi
    
        
for((nTBIndex=0;nTBIndex<64;nTBIndex++))
        
do    
    
        (   
        cat 
<<EOF
                
                
SELECT concat( 
                
'*4\r\n\$4\r\nzadd\r\n',  
                
'\$', LENGTH(redis_key), '\r\n', 
                redis_key
, '\r\n', 
                
'\$', LENGTH(redis_score), '\r\n', 
                redis_score
, '\r\n', 
                
'\$', LENGTH(redis_value), '\r\n', 
                redis_value
, '\r'
                )       
                FROM(
                
select FtoID ,FmsgID,FdbIndex,FtableIndex,FmsgTimestamp,
                concat(
"offlinemsg_",FtoID) as redis_key,
                FmsgTimestamp as redis_score
,
                concat(FmsgID
,"_",      FdbIndex,"_",   FtableIndex) as redis_value
                from db_im_user_msg_
$nDBIndex.t_im_user_msgidlist_$nTBIndex
                )
                AS T;           
        
EOF
        ) 
>> $DBFILE
    
        done
    
echo 
"begin migrate data to redis,use $DBFILE .."
mysql db_im_user_msg_
$nDBIndex --skip-column-names --raw < $DBFILE | redis-cli --pipe
echo 
"migrate data to redis,end"
    
done


榪欎釜鑴氭湰鏄皢浠ュ搴撳琛ㄥ瓨鍌ㄥ湪MYSQL鐨勬暟鎹縼縐誨埌REDIS鐨勪竴涓簱閲屻?br />
浣嗘槸鍋囧錛岄渶姹傛槸灝嗚繖浜涙暟鎹畨鍏║ID鐨勮鍒欒縼縐誨埌REDIS鐨勪笉鍚岀殑搴撻噷鍛紝鎬庝箞鍔烇紵

#!/bin/sh

DBFILE
=./migratedata2redis.sql

function select_data()
{    
    DBINDEX
=$1
    TBINDEX
=$2
    MOINDEX
=$3
    
    
#echo "select_data $DBINDEX $TBINDEX $MOINDEX"

    (
        cat 
<<EOF                
        
SELECT concat( 
                
'*4\r\n\$4\r\nzadd\r\n',  
                
'\$', LENGTH(redis_key), '\r\n', 
                redis_key
, '\r\n', 
                
'\$', LENGTH(redis_score), '\r\n', 
                redis_score
, '\r\n', 
                
'\$', LENGTH(redis_value), '\r\n', 
                redis_value
, '\r'
                )       
                FROM(
                
select FtoID ,FmsgID,FdbIndex,FtableIndex,FmsgTimestamp,
                concat(
"offlinemsg_",FtoID) as redis_key,
                FmsgTimestamp as redis_score
,
                concat(FmsgID) as redis_value
                from db_im_user_msg_
$DBINDEX.t_im_user_msgidlist_$TBINDEX
                where FtoID
%4=$MOINDEX
                )
                AS T1;          
                
               
                
SELECT concat( 
                
'*3\r\n\$3\r\nset\r\n',  
                
'\$', LENGTH(redis_key), '\r\n', 
                redis_key
, '\r\n', 
                
'\$', LENGTH(redis_value), '\r\n', 
                redis_value
, '\r'
                )       
                FROM(
                
select FtoID ,FmsgID,FdbIndex,FtableIndex,FmsgTimestamp,
                concat(
"msg_",FmsgID) as redis_key,
                FmsgTimestamp as redis_score
,
                concat(FmsgID
,"_",      FdbIndex,"_",   FtableIndex) as redis_value
                from db_im_user_msg_
$DBINDEX.t_im_user_msgidlist_$TBINDEX
                where FtoID
%4=$MOINDEX
                )
                AS T2;    
EOF
     ) 
>> $DBFILE   
    
}

function traverse_tb()
{
    DBINDEX
=$1
    MOINDEX
=$2
    
   
#echo "traverse_tb $DBINDEX $MOINDEX"

    
    
for((nTBIndex=0;nTBIndex<64;nTBIndex++))
    
do
        select_data 
$DBINDEX $nTBIndex $MOINDEX
    done
}

function traverse_md()
{
    DBINDEX
=$1
   
#    echo "traverse_md $DBINDEX"

    
for((nModNum=0;nModNum<4;nModNum++))
    
do        
        [ 
-$DBFILE ] &&  rm -rf $DBFILE
        traverse_tb 
$DBINDEX $nModNum
        echo 
" mysql db_im_user_msg_$DBINDEX --skip-column-names --raw < $DBFILE | redis-cli --pipe -n $nModNum "
        mysql db_im_user_msg_
$DBINDEX --skip-column-names --raw < $DBFILE | redis-cli --pipe -$nModNum
    
#    echo "migrate data to redis,end"
    done
}

function traverse_db()
{
    
for((nDBIndex=0;nDBIndex<4;nDBIndex++))
    
do
        echo 
-"\n-------traverse_db $nDBIndex--------------"
        traverse_md 
$nDBIndex            
    done
}


function main()
{
    traverse_db
}

main
         
鍒濇鎬濊礬鏄細鍏堟妸鏁版嵁鍏ㄩ噺榪佺Щ鍒頒竴涓簱錛岀劧鍚巏eys * 鍒版寚瀹氱殑璁板綍錛屽啀涓涓竴涓殑move涓閬嶃?br />




]]>鑾峰彇鍒嗗簱鍒嗚〃鐨勬昏褰曟暟鐩紝mysql瀛樺偍榪囩▼涓嶴HELL鑴氭湰瀹炵幇http://www.shnenglu.com/changshoumeng/archive/2014/07/15/207655.html闀垮姊?/dc:creator>闀垮姊?/author>Tue, 15 Jul 2014 11:25:00 GMThttp://www.shnenglu.com/changshoumeng/archive/2014/07/15/207655.htmlhttp://www.shnenglu.com/changshoumeng/comments/207655.htmlhttp://www.shnenglu.com/changshoumeng/archive/2014/07/15/207655.html#Feedback0http://www.shnenglu.com/changshoumeng/comments/commentRss/207655.htmlhttp://www.shnenglu.com/changshoumeng/services/trackbacks/207655.htmlDROP PROCEDURE IF EXISTS  sp_getmsgtotal;


DELIMITER
//
CREATE PROCEDURE sp_getmsgtotal()
BEGIN
    
declare DBNAME varchar(64) ;
    
declare TBNAME varchar(64);
    
declare total       integer default 0 ;
    
declare dbindex   integer default 0 ;
    
declare tbindex  integer default 0 ;

    loop1:
WHILE dbindex< 8 DO
        
set DBNAME=concat("db_im_msg_record_" , dbindex);        
        
set tbindex = 0;
            
            loop2:
WHILE tbindex<32 DO
                
set TBNAME=concat("t_im_msg_",tbindex);    

                
set @SQL= concat("SELECT COUNT(*INTO @num FROM ",DBNAME,".",TBNAME,";");
                
select @SQL;
                
prepare stmt_1 from @SQL ;
                
execute stmt_1 ;
                
deallocate prepare stmt_1 ;
                
set total = total +@num;
                
set tbindex = tbindex+ 1;
            
END WHILE loop2;    
        
        
set dbindex=dbindex+1;
           

    
END WHILE loop1;
    
    
select total ;
END
//

浣嗘槸瀛樺偍榪囩▼錛岄潰涓寸潃 榪欐牱鐨勯棶棰橈細
Thread stack overrun:  10368 bytes used of a 131072 byte stack, and 128000 bytes needed. 
闇瑕侀噸鍚痬ysqld銆?br />楹葷儲銆?br />
鎹竴縐峉HELL鑴氭湰瀹炵幇


#!/bin/bash

MYSQL=/usr/local/mysql/bin/mysql
#SQLOPT=" -u$USER -p$PASS -S/tmp/mysql-new.sock $@"
SQLOPT="-h192.168.1.10 -uusername -ppassword"
RESULTFILE
=./result.txt


function mysql_opt() 
{
        DBNAME
=$1
        SQLSTR
=$2
        
$MYSQL $SQLOPT << EOF
        
use $DBNAME;
        set names utf8;
        
$SQLSTR;
        
EOF
}

function get_count()
{
        
for((nDBIndex=0;nDBIndex<8;nDBIndex++))
        
do
                 DBNAME
=db_im_msg_record_$nDBIndex
                  
#DBNAME=db_im_user_msg_$nDBIndex

                                
for((nTBIndex=0;nTBIndex<1;nTBIndex++))
                                
do
                                        TBNAME
=t_im_msg_$nTBIndex
                                        
#TBNAME=t_im_user_msgidlist_$nTBIndex

                                        RESULT
=`mysql_opt $DBNAME "select count(*) from $TBNAME;"`
                                        
echo "$RESULT  "
                                        
echo $RESULT >> $RESULTFILE
                                
done

        
done
}

function compute_total()
{
        
echo "begin"
        awk 
'BEGIN{sum=0}{print $2;sum+=$2;}END{print sum} ' $RESULTFILE
        
echo "end.."
}

function main()
{
        [ 
-$RESULTFILE ] && rm -rf $RESULTFILE
        get_count
        compute_total
}

main






]]>鏄惁閫夋嫨mongodb鏇挎崲mysqlhttp://www.shnenglu.com/changshoumeng/archive/2013/08/30/202863.html闀垮姊?/dc:creator>闀垮姊?/author>Fri, 30 Aug 2013 01:42:00 GMThttp://www.shnenglu.com/changshoumeng/archive/2013/08/30/202863.htmlhttp://www.shnenglu.com/changshoumeng/comments/202863.htmlhttp://www.shnenglu.com/changshoumeng/archive/2013/08/30/202863.html#Feedback0http://www.shnenglu.com/changshoumeng/comments/commentRss/202863.htmlhttp://www.shnenglu.com/changshoumeng/services/trackbacks/202863.html涓轟粈涔堟垜浠斁寮冧嬌鐢╩ongodb
http://dank.iteye.com/blog/1069050

mysql涓巑ongodb鐨勫簲鐢ㄥ垎鏋?br />http://dank.iteye.com/blog/1062025



]]>
婷婷伊人久久大香线蕉AV| 久久精品综合一区二区三区| 伊人久久国产免费观看视频| 一本一本久久A久久综合精品| 日本久久久久亚洲中字幕| 免费国产99久久久香蕉| 午夜精品久久久久久久无码| 午夜精品久久久久久99热| 精品欧美一区二区三区久久久| 亚洲精品成人网久久久久久| 日韩精品久久久久久| 午夜肉伦伦影院久久精品免费看国产一区二区三区 | 久久精品国产精品国产精品污| 国产精品久久久久乳精品爆| 香蕉久久夜色精品升级完成| 99久久精品国产一区二区三区 | 青青青青久久精品国产 | 狠狠色噜噜狠狠狠狠狠色综合久久| 久久国产成人精品国产成人亚洲| 无码人妻少妇久久中文字幕蜜桃| 欧美色综合久久久久久| 久久综合久久综合九色| 久久婷婷国产综合精品| 亚洲午夜久久久影院伊人| 久久综合色老色| 亚洲国产精品狼友中文久久久 | 国产精品成人久久久久久久 | 久久97久久97精品免视看秋霞 | 武侠古典久久婷婷狼人伊人| 91久久精品电影| 国产精品久久久久久久久免费| 久久精品水蜜桃av综合天堂| 亚洲AV乱码久久精品蜜桃| 7777精品久久久大香线蕉| 国内精品伊人久久久影院| 久久久这里只有精品加勒比| 久久只这里是精品66| 久久99国产精品久久99小说| 久久午夜福利无码1000合集| 久久亚洲中文字幕精品一区| 亚洲国产精品无码久久一区二区|