<span id="mktg5"></span>

<i id="mktg5"><meter id="mktg5"></meter></i>

        <label id="mktg5"><meter id="mktg5"></meter></label>
        最新文章專題視頻專題問答1問答10問答100問答1000問答2000關鍵字專題1關鍵字專題50關鍵字專題500關鍵字專題1500TAG最新視頻文章推薦1 推薦3 推薦5 推薦7 推薦9 推薦11 推薦13 推薦15 推薦17 推薦19 推薦21 推薦23 推薦25 推薦27 推薦29 推薦31 推薦33 推薦35 推薦37視頻文章20視頻文章30視頻文章40視頻文章50視頻文章60 視頻文章70視頻文章80視頻文章90視頻文章100視頻文章120視頻文章140 視頻2關鍵字專題關鍵字專題tag2tag3文章專題文章專題2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章專題3
        問答文章1 問答文章501 問答文章1001 問答文章1501 問答文章2001 問答文章2501 問答文章3001 問答文章3501 問答文章4001 問答文章4501 問答文章5001 問答文章5501 問答文章6001 問答文章6501 問答文章7001 問答文章7501 問答文章8001 問答文章8501 問答文章9001 問答文章9501
        當前位置: 首頁 - 科技 - 知識百科 - 正文

        [mysqldumpslow出錯]Diedat/usr/local/mysql/bin/mysqldumps

        來源:懂視網 責編:小采 時間:2020-11-09 13:33:35
        文檔

        [mysqldumpslow出錯]Diedat/usr/local/mysql/bin/mysqldumps

        [mysqldumpslow出錯]Diedat/usr/local/mysql/bin/mysqldumps:[mysqldumpslow 報錯] Died at /usr/local/mysql/bin/mysqldumpslow line 161, chunk 236. mysqldumpslow報錯: Died at /usr/local/mysql/bin/mysqldumpslow line 161, chunk 236. 總結:是因為top數目太多
        推薦度:
        導讀[mysqldumpslow出錯]Diedat/usr/local/mysql/bin/mysqldumps:[mysqldumpslow 報錯] Died at /usr/local/mysql/bin/mysqldumpslow line 161, chunk 236. mysqldumpslow報錯: Died at /usr/local/mysql/bin/mysqldumpslow line 161, chunk 236. 總結:是因為top數目太多

        [mysqldumpslow 報錯] Died at /usr/local/mysql/bin/mysqldumpslow line 161, chunk 236. mysqldumpslow報錯: Died at /usr/local/mysql/bin/mysqldumpslow line 161, chunk 236. 總結:是因為top數目太多了,mysqldumpslow遍歷不過來的緣故。 /usr/local/m

        [mysqldumpslow 報錯] Died at /usr/local/mysql/bin/mysqldumpslow line 161, <> chunk 236.

        mysqldumpslow報錯:Died at /usr/local/mysql/bin/mysqldumpslow line 161, <> chunk 236.總結:是因為top數目太多了,mysqldumpslow遍歷不過來的緣故。

        /usr/local/mysql/bin/mysqldumpslow -s -t 15 /root/db01-102-slow.log


        1,把r去掉試試,還是報錯,參數不識別。

        [root@slave ]# /usr/local/mysql/bin/mysqldumpslow -s -t 15 /root/db01-102-slow.log 
        
        Reading mysql slow query log from 15 /root/db01-102-slow.log
        Can't open 15: 沒有那個文件或目錄 at /usr/local/mysql/bin/mysqldumpslow line 91.
        Count: 22 Time=9.61s (211s) Lock=0.00s (0s) Rows=1.0 (22), [dubbo]@2hosts
         select count(*)
         from coupon_lot
         left join coupon 
         on coupon.coupon_lot_id = coupon_lot.coupon_lot_id
         LEFT JOIN brand
         ON brand.brand_id=coupon_lot.brand_id
         LEFT JOIN product_category
         on product_category.category_id=coupon_lot.category_id
        
        Count: 177 Time=1.40s (247s) Lock=0.00s (0s) Rows=1.0 (177), [dubbo]@2hosts
         select count(*) from user_info
         LEFT JOIN system_region a
         ON province_id =a.region_id
         LEFT JOIN system_region b
         ON city_id = b.region_id
         LEFT JOIN system_region c
         ON district_id = c.region_id
        
        Count: 22 Time=13.20s (290s) Lock=0.00s (0s) Rows=10.0 (220), [dubbo]@2hosts
         select 
         coupon_id, coupon_lot.coupon_lot_id, coupon_lot.remark,
         coupon.code, coupon_lot.coupon_type, coupon.state,
         coupon_lot.ckey, coupon_lot.cvalue, coupon_lot.discount, coupon_lot.type, coupon_lot.channel, 
         coupon_lot.is_reusable, coupon_lot.start_datetime,
         coupon_lot.end_datetime, coupon_lot.create_datetime, coupon.update_datetime ,coupon_lot.department,
         coupon_lot.state as couponLotState, coupon_lot.create_operator,coupon_lot.coupon_category,
         coupon_lot.pdt_code,brand.brand_name,product_category.category_name
         from coupon_lot
         left join coupon 
         on coupon.coupon_lot_id = coupon_lot.coupon_lot_id
         LEFT JOIN brand
         ON brand.brand_id=coupon_lot.brand_id
         LEFT JOIN product_category
         on product_category.category_id=coupon_lot.category_id
         group by coupon_lot.coupon_lot_id
         order by coupon_lot.create_datetime DESC
         limit N,N
        
        Count: 8 Time=1.09s (8s) Lock=0.00s (0s) Rows=10.0 (80), [dubbo]@2hosts
         select 
         return_sn, relating_order_sn, return_from, oi.order_out_sn ,
         add_time , return_type, 
         return_pay, ui.usename as userName, return_consignee, return_goods_count ,
         return_total_fee, total_paid, 
         return_desc, return_order_status, return_pay_status ,
         return_shipping_status, order_return.lock_operator, order_return.return_invoice_no
         from order_return LEFT JOIN order_info oi
         on order_return.relating_order_sn = oi.order_sn 
         left join user_info ui on oi.user_id = ui.user_id
         left join order_payment on order_payment.order_sn = oi.order_sn
         order by order_return.add_time DESC
         limit N,N
        
        Count: 1 Time=1.00s (1s) Lock=0.00s (0s) Rows=1.0 (1), root[root]@localhost
         select sleep(N)
        
        Count: 1 Time=1.13s (1s) Lock=0.00s (0s) Rows=10.0 (10), [dubbo]@[xx]
         select 
         return_sn, relating_order_sn, return_from, oi.order_out_sn ,
         add_time , return_type, 
         return_pay, ui.usename as userName, return_consignee, return_goods_count ,
         return_total_fee, total_paid, 
         return_desc, return_order_status, return_pay_status ,
         return_shipping_status, order_return.lock_operator, order_return.return_invoice_no
         from order_return LEFT JOIN order_info oi
         on order_return.relating_order_sn = oi.order_sn 
         left join user_info ui on oi.user_id = ui.user_id
         left join order_payment on order_payment.order_sn = oi.order_sn
         order by order_return.add_time DESC
         , oi.order_sn 
         limit N,N
        
        Count: 5 Time=2.47s (12s) Lock=0.00s (0s) Rows=0.0 (0), [dubbo]@2hosts
         select
         user_id, usename, nickname, password, user_group_id, realname, gender, email, mobilephone, 
         birthday, province_id, city_id, district_id, marry, income, remarks, create_datetime, 
         active_state, verityEmail, verityPhone, credit, last_login, last_ip, is_locked, channel, 
         tag, union_partner_uuid, union_user_safekey, is_black, qq, weibo_id, verity_email_key, 
         verity_phone_key, verity_email_datetime, verity_phone_datetime, verity_question, 
         verity_answer, cps_code, cps_time_from, cps_time_to, cps_cookie, first_channel
         from user_info where mobilephone = 'S' and (channel is null or trim(channel) ='S')

        2,查看下mysqldumpslow 使用參數,-s后面需要帶參數的,看了西夏at比較合適

        [root@db-master-2 ~]# /usr/local/mysql/bin/mysqldumpslow --help
        Usage: mysqldumpslow [ OPTS... ] [ LOGS... ]
        
        Parse and summarize the MySQL slow query log. Options are
        
         --verbose verbose
         --debug debug
         --help write this text to standard output
        
         -v verbose
         -d debug
         -s ORDER what to sort by (al, at, ar, c, l, r, t), 'at' is default
         al: average lock time
         ar: average rows sent
         at: average query time
         c: count
         l: lock time
         r: rows sent
         t: query time 
         -r reverse the sort order (largest last instead of first)
         -t NUM just show the top n queries
         -a don't abstract all numbers to N and strings to 'S'
         -n NUM abstract numbers with at least n digits within names
         -g PATTERN grep: only consider stmts that include this string
         -h HOSTNAME hostname of db server for *-slow.log filename (can be wildcard),
         default is '*', i.e. match all
         -i NAME name of server instance (if using mysql.server startup script)
         -l don't subtract lock time from total time


        3,在mysqldumpslow的-s后面加入 at參數試試: [root@slave ]# /usr/local/mysql/bin/mysqldumpslow -s at -t 15 /root/db01-102-slow.log

        [root@db-master-2 ~]# /usr/local/mysql/bin/mysqldumpslow -s at -t 15 /root/db01-102-slow.log 
        Reading mysql slow query log from /root/db01-102-slow.log
        Count: 22 Time=13.20s (290s) Lock=0.00s (0s) Rows=10.0 (220), [dubbo]@2hosts
         select 
         coupon_id, coupon_lot.coupon_lot_id, coupon_lot.remark,
         coupon.code, coupon_lot.coupon_type, coupon.state,
         coupon_lot.ckey, coupon_lot.cvalue, coupon_lot.discount, coupon_lot.type, coupon_lot.channel, 
         coupon_lot.is_reusable, coupon_lot.start_datetime,
         coupon_lot.end_datetime, coupon_lot.create_datetime, coupon.update_datetime ,coupon_lot.department,
         coupon_lot.state as couponLotState, coupon_lot.create_operator,coupon_lot.coupon_category,
         coupon_lot.pdt_code,brand.brand_name,product_category.category_name
         from coupon_lot
         left join coupon 
         on coupon.coupon_lot_id = coupon_lot.coupon_lot_id
         LEFT JOIN brand
         ON brand.brand_id=coupon_lot.brand_id
         LEFT JOIN product_category
         on product_category.category_id=coupon_lot.category_id
         group by coupon_lot.coupon_lot_id
         order by coupon_lot.create_datetime DESC
         limit N,N
        
        Count: 22 Time=9.61s (211s) Lock=0.00s (0s) Rows=1.0 (22), [dubbo]@2hosts
         select count(*)
         from coupon_lot
         left join coupon 
         on coupon.coupon_lot_id = coupon_lot.coupon_lot_id
         LEFT JOIN brand
         ON brand.brand_id=coupon_lot.brand_id
         LEFT JOIN product_category
         on product_category.category_id=coupon_lot.category_id
        
        Count: 5 Time=2.47s (12s) Lock=0.00s (0s) Rows=0.0 (0), [dubbo]@2hosts
         select
         user_id, usename, nickname, password, user_group_id, realname, gender, email, mobilephone, 
         birthday, province_id, city_id, district_id, marry, income, remarks, create_datetime, 
         active_state, verityEmail, verityPhone, credit, last_login, last_ip, is_locked, channel, 
         tag, union_partner_uuid, union_user_safekey, is_black, qq, weibo_id, verity_email_key, 
         verity_phone_key, verity_email_datetime, verity_phone_datetime, verity_question, 
         verity_answer, cps_code, cps_time_from, cps_time_to, cps_cookie, first_channel
         from user_info where mobilephone = 'S' and (channel is null or trim(channel) ='S')
        
        Count: 177 Time=1.40s (247s) Lock=0.00s (0s) Rows=1.0 (177), [dubbo]@2hosts
         select count(*) from user_info
         LEFT JOIN system_region a
         ON province_id =a.region_id
         LEFT JOIN system_region b
         ON city_id = b.region_id
         LEFT JOIN system_region c
         ON district_id = c.region_id
        
        Count: 1 Time=1.13s (1s) Lock=0.00s (0s) Rows=10.0 (10), [dubbo]@[10.10.3.8]
         select 
         return_sn, relating_order_sn, return_from, oi.order_out_sn ,
         add_time , return_type, 
         return_pay, ui.usename as userName, return_consignee, return_goods_count ,
         return_total_fee, total_paid, 
         return_desc, return_order_status, return_pay_status ,
         return_shipping_status, order_return.lock_operator, order_return.return_invoice_no
         from order_return LEFT JOIN order_info oi
         on order_return.relating_order_sn = oi.order_sn 
         left join user_info ui on oi.user_id = ui.user_id
         left join order_payment on order_payment.order_sn = oi.order_sn
         order by order_return.add_time DESC
         , oi.order_sn 
         limit N,N
        
        Count: 8 Time=1.09s (8s) Lock=0.00s (0s) Rows=10.0 (80), [dubbo]@2hosts
         select 
         return_sn, relating_order_sn, return_from, oi.order_out_sn ,
         add_time , return_type, 
         return_pay, ui.usename as userName, return_consignee, return_goods_count ,
         return_total_fee, total_paid, 
         return_desc, return_order_status, return_pay_status ,
         return_shipping_status, order_return.lock_operator, order_return.return_invoice_no
         from order_return LEFT JOIN order_info oi
         on order_return.relating_order_sn = oi.order_sn 
         left join user_info ui on oi.user_id = ui.user_id
         left join order_payment on order_payment.order_sn = oi.order_sn
         order by order_return.add_time DESC
         limit N,N
        
        Count: 1 Time=1.00s (1s) Lock=0.00s (0s) Rows=1.0 (1), root[root]@localhost
         select sleep(N)
        
        Died at /usr/local/mysql/bin/mysqldumpslow line 161, <> chunk 236.
        看到后面還是報錯:Died at /usr/local/mysql/bin/mysqldumpslow line 161, <> chunk 236.

        4,去看看/usr/local/mysql/bin/mysqldumpslow的第161行左右,到底是在操作什么腳本。

        156 my @sorted = sort { $stmt{$b}->{$opt{s}} <=> $stmt{$a}->{$opt{s}} } keys %stmt;
        157 @sorted = @sorted[0 .. $opt{t}-1] if $opt{t};
        158 @sorted = reverse @sorted if $opt{r};
        159 
        160 foreach (@sorted) {
        161 my $v = $stmt{$_} || die;
        162 my ($c, $t,$at, $l,$al, $r,$ar) = @{ $v }{qw(c t at l al r ar)};
        163 my @users = keys %{$v->{users}};
        164 my $user = (@users==1) ? $users[0] : sprintf "%dusers",scalar @users;
        165 my @hosts = keys %{$v->{hosts}};
        166 my $host = (@hosts==1) ? $hosts[0] : sprintf "%dhosts",scalar @hosts;
        167 printf "Count: %d Time=%.2fs (%ds) Lock=%.2fs (%ds) Rows=%.1f (%d), $user\@$host\n%s\n\n",
        168 $c, $at,$t, $al,$l, $ar,$r, $_;
        169 }
        170 
        171 sub usage {
        172 my $str= shift;
        看到主要是foreach (@sorted)遍歷函數,也就是遍歷到chunk 236的時候就died結束了,沒有辦法往下繼續foreach了。因為以前寫過代碼,知道報錯所在的這一行

         my $v = $stmt{$_} || die;
        是遍歷第一句,那么肯定是賦值語句,報錯Died,chunk 236肯定是已經遍歷到末尾沒有數據了,看這個函數沒有判斷傳入的參數是否為null的邏輯,所以當文件數據已經遍歷完,但是命令還沒有結束,所以繼續遍歷,遍歷null的時候報錯,所以進程中止了,解決辦法就是做個限制不要遍歷超過原始數據的字符串長度。那么我們再來看執行的命令:

        /usr/local/mysql/bin/mysqldumpslow -s at -t 15 /root/db01-102-slow.log 有 -t 15這一句,那么就是要顯示出前15個記錄,那么如果我的slow.log統計出來只有12個不到15個,而這里有繼續遍歷到15的話,那進程肯定會Died。


        所以這里有2個解決方法:

        1 修改/usr/local/mysql/bin/mysqldumpslow里面的源代碼,加null判斷。

        這個過程有些復雜,暫時略過吧,期待后續空了再研究。


        2 修改命令 /usr/local/mysql/bin/mysqldumpslow -s at -t 15 /root/db01-102-slow.log ,把-t 15修改成-t 10或者-t 5試試。

        試了好幾次,發現臨界點在-t 7上面,如下:

        [root@slave~]# /usr/local/mysql/bin/mysqldumpslow -s at -t 8 /root/db01-102-slow.log 
        Reading mysql slow query log from /root/db01-102-slow.log
        Count: 22 Time=13.20s (290s) Lock=0.00s (0s) Rows=10.0 (220), [dubbo]@2hosts
         select 
         coupon_id, coupon_lot.coupon_lot_id, coupon_lot.remark,
         coupon.code, coupon_lot.coupon_type, coupon.state,
         coupon_lot.ckey, coupon_lot.cvalue, coupon_lot.discount, coupon_lot.type, coupon_lot.channel, 
         coupon_lot.is_reusable, coupon_lot.start_datetime,
         coupon_lot.end_datetime, coupon_lot.create_datetime, coupon.update_datetime ,coupon_lot.department,
         coupon_lot.state as couponLotState, coupon_lot.create_operator,coupon_lot.coupon_category,
         coupon_lot.pdt_code,brand.brand_name,product_category.category_name
         from coupon_lot
         left join coupon 
         on coupon.coupon_lot_id = coupon_lot.coupon_lot_id
         LEFT JOIN brand
         ON brand.brand_id=coupon_lot.brand_id
         LEFT JOIN product_category
         on product_category.category_id=coupon_lot.category_id
         group by coupon_lot.coupon_lot_id
         order by coupon_lot.create_datetime DESC
         limit N,N
        
        Count: 22 Time=9.61s (211s) Lock=0.00s (0s) Rows=1.0 (22), [dubbo]@2hosts
         select count(*)
         from coupon_lot
         left join coupon 
         on coupon.coupon_lot_id = coupon_lot.coupon_lot_id
         LEFT JOIN brand
         ON brand.brand_id=coupon_lot.brand_id
         LEFT JOIN product_category
         on product_category.category_id=coupon_lot.category_id
        
        Count: 5 Time=2.47s (12s) Lock=0.00s (0s) Rows=0.0 (0), [dubbo]@2hosts
         select
         user_id, usename, nickname, password, user_group_id, realname, gender, email, mobilephone, 
         birthday, province_id, city_id, district_id, marry, income, remarks, create_datetime, 
         active_state, verityEmail, verityPhone, credit, last_login, last_ip, is_locked, channel, 
         tag, union_partner_uuid, union_user_safekey, is_black, qq, weibo_id, verity_email_key, 
         verity_phone_key, verity_email_datetime, verity_phone_datetime, verity_question, 
         verity_answer, cps_code, cps_time_from, cps_time_to, cps_cookie, first_channel
         from user_info where mobilephone = 'S' and (channel is null or trim(channel) ='S')
        
        Count: 177 Time=1.40s (247s) Lock=0.00s (0s) Rows=1.0 (177), [xx]@2hosts
         select count(*) from user_info
         LEFT JOIN system_region a
         ON province_id =a.region_id
         LEFT JOIN system_region b
         ON city_id = b.region_id
         LEFT JOIN system_region c
         ON district_id = c.region_id
        
        Count: 1 Time=1.13s (1s) Lock=0.00s (0s) Rows=10.0 (10), [xx]@[xxx]
         select 
         return_sn, relating_order_sn, return_from, oi.order_out_sn ,
         add_time , return_type, 
         return_pay, ui.usename as userName, return_consignee, return_goods_count ,
         return_total_fee, total_paid, 
         return_desc, return_order_status, return_pay_status ,
         return_shipping_status, order_return.lock_operator, order_return.return_invoice_no
         from order_return LEFT JOIN order_info oi
         on order_return.relating_order_sn = oi.order_sn 
         left join user_info ui on oi.user_id = ui.user_id
         left join order_payment on order_payment.order_sn = oi.order_sn
         order by order_return.add_time DESC
         , oi.order_sn 
         limit N,N
        
        Count: 8 Time=1.09s (8s) Lock=0.00s (0s) Rows=10.0 (80), [xx]@2hosts
         select 
         return_sn, relating_order_sn, return_from, oi.order_out_sn ,
         add_time , return_type, 
         return_pay, ui.usename as userName, return_consignee, return_goods_count ,
         return_total_fee, total_paid, 
         return_desc, return_order_status, return_pay_status ,
         return_shipping_status, order_return.lock_operator, order_return.return_invoice_no
         from order_return LEFT JOIN order_info oi
         on order_return.relating_order_sn = oi.order_sn 
         left join user_info ui on oi.user_id = ui.user_id
         left join order_payment on order_payment.order_sn = oi.order_sn
         order by order_return.add_time DESC
         limit N,N
        
        Count: 1 Time=1.00s (1s) Lock=0.00s (0s) Rows=1.0 (1), root[root]@localhost
         select sleep(N)
        
        Died at /usr/local/mysql/bin/mysqldumpslow line 161, <> chunk 236.
        
        -- 臨界點 -t 7
        [root@db-master-2 ~]# /usr/local/mysql/bin/mysqldumpslow -s at -t 7 /root/db01-102-slow.log 
        
        Reading mysql slow query log from /root/db01-102-slow.log
        Count: 22 Time=13.20s (290s) Lock=0.00s (0s) Rows=10.0 (220), [xx]@2hosts
         select 
         coupon_id, coupon_lot.coupon_lot_id, coupon_lot.remark,
         coupon.code, coupon_lot.coupon_type, coupon.state,
         coupon_lot.ckey, coupon_lot.cvalue, coupon_lot.discount, coupon_lot.type, coupon_lot.channel, 
         coupon_lot.is_reusable, coupon_lot.start_datetime,
         coupon_lot.end_datetime, coupon_lot.create_datetime, coupon.update_datetime ,coupon_lot.department,
         coupon_lot.state as couponLotState, coupon_lot.create_operator,coupon_lot.coupon_category,
         coupon_lot.pdt_code,brand.brand_name,product_category.category_name
         from coupon_lot
         left join coupon 
         on coupon.coupon_lot_id = coupon_lot.coupon_lot_id
         LEFT JOIN brand
         ON brand.brand_id=coupon_lot.brand_id
         LEFT JOIN product_category
         on product_category.category_id=coupon_lot.category_id
         group by coupon_lot.coupon_lot_id
         order by coupon_lot.create_datetime DESC
         limit N,N
        
        Count: 22 Time=9.61s (211s) Lock=0.00s (0s) Rows=1.0 (22), [dubbo]@2hosts
         select count(*)
         from coupon_lot
         left join coupon 
         on coupon.coupon_lot_id = coupon_lot.coupon_lot_id
         LEFT JOIN brand
         ON brand.brand_id=coupon_lot.brand_id
         LEFT JOIN product_category
         on product_category.category_id=coupon_lot.category_id
        
        Count: 5 Time=2.47s (12s) Lock=0.00s (0s) Rows=0.0 (0), [xx]@2hosts
         select
         user_id, usename, nickname, password, user_group_id, realname, gender, email, mobilephone, 
         birthday, province_id, city_id, district_id, marry, income, remarks, create_datetime, 
         active_state, verityEmail, verityPhone, credit, last_login, last_ip, is_locked, channel, 
         tag, union_partner_uuid, union_user_safekey, is_black, qq, weibo_id, verity_email_key, 
         verity_phone_key, verity_email_datetime, verity_phone_datetime, verity_question, 
         verity_answer, cps_code, cps_time_from, cps_time_to, cps_cookie, first_channel
         from user_info where mobilephone = 'S' and (channel is null or trim(channel) ='S')
        
        Count: 177 Time=1.40s (247s) Lock=0.00s (0s) Rows=1.0 (177), [xx]@2hosts
         select count(*) from user_info
         LEFT JOIN system_region a
         ON province_id =a.region_id
         LEFT JOIN system_region b
         ON city_id = b.region_id
         LEFT JOIN system_region c
         ON district_id = c.region_id
        
        Count: 1 Time=1.13s (1s) Lock=0.00s (0s) Rows=10.0 (10), [dubbo]@[xxx]
         select 
         return_sn, relating_order_sn, return_from, oi.order_out_sn ,
         add_time , return_type, 
         return_pay, ui.usename as userName, return_consignee, return_goods_count ,
         return_total_fee, total_paid, 
         return_desc, return_order_status, return_pay_status ,
         return_shipping_status, order_return.lock_operator, order_return.return_invoice_no
         from order_return LEFT JOIN order_info oi
         on order_return.relating_order_sn = oi.order_sn 
         left join user_info ui on oi.user_id = ui.user_id
         left join order_payment on order_payment.order_sn = oi.order_sn
         order by order_return.add_time DESC
         , oi.order_sn 
         limit N,N
        
        Count: 8 Time=1.09s (8s) Lock=0.00s (0s) Rows=10.0 (80), [dubbo]@2hosts
         select 
         return_sn, relating_order_sn, return_from, oi.order_out_sn ,
         add_time , return_type, 
         return_pay, ui.usename as userName, return_consignee, return_goods_count ,
         return_total_fee, total_paid, 
         return_desc, return_order_status, return_pay_status ,
         return_shipping_status, order_return.lock_operator, order_return.return_invoice_no
         from order_return LEFT JOIN order_info oi
         on order_return.relating_order_sn = oi.order_sn 
         left join user_info ui on oi.user_id = ui.user_id
         left join order_payment on order_payment.order_sn = oi.order_sn
         order by order_return.add_time DESC
         limit N,N
        
        Count: 1 Time=1.00s (1s) Lock=0.00s (0s) Rows=1.0 (1), root[root]@localhost
         select sleep(N)
        
        [root@db-master-2 ~]# 
        

        最終總結:
        mysqldumpslow報錯:Died at /usr/local/mysql/bin/mysqldumpslow line 161, <> chunk 236. 是因為top數目太多了,mysqldumpslow遍歷不過來的緣故。

        聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

        文檔

        [mysqldumpslow出錯]Diedat/usr/local/mysql/bin/mysqldumps

        [mysqldumpslow出錯]Diedat/usr/local/mysql/bin/mysqldumps:[mysqldumpslow 報錯] Died at /usr/local/mysql/bin/mysqldumpslow line 161, chunk 236. mysqldumpslow報錯: Died at /usr/local/mysql/bin/mysqldumpslow line 161, chunk 236. 總結:是因為top數目太多
        推薦度:
        標簽: at 出錯 mysql
        • 熱門焦點

        最新推薦

        猜你喜歡

        熱門推薦

        專題
        Top
        主站蜘蛛池模板: 国产精品色拉拉免费看| 人妻免费一区二区三区最新| 日本妇人成熟免费中文字幕| 日韩亚洲AV无码一区二区不卡| 牛牛在线精品观看免费正| 四虎影视精品永久免费网站| 337P日本欧洲亚洲大胆艺术图| 亚洲色欲久久久综合网东京热| 丰满亚洲大尺度无码无码专线| 成人免费视频国产| 久久久久亚洲精品无码网址色欲| 国产在线观看免费视频播放器| 亚洲AV无码成人精品区日韩 | 九九美女网站免费| 一二三四影视在线看片免费 | 国产成人亚洲综合| a毛片成人免费全部播放| 亚洲韩国精品无码一区二区三区 | 97视频热人人精品免费| 欧美亚洲国产SUV| 国产亚洲自拍一区| 久9久9精品免费观看| 亚洲国产成人久久99精品| 午夜精品在线免费观看| 四虎国产精品永免费| 四虎成人免费网站在线| 国产亚洲精品成人久久网站| 日韩一卡2卡3卡4卡新区亚洲| 污污网站免费观看| 亚洲人成网亚洲欧洲无码| 亚洲国产V高清在线观看| 久久99精品国产免费观看| 亚洲AV无码之国产精品| 亚洲人成网亚洲欧洲无码久久| 1区2区3区产品乱码免费| 亚洲国产aⅴ成人精品无吗| 久久亚洲高清观看| 成年男女免费视频网站 | 国产精品视频白浆免费视频| 亚洲sss综合天堂久久久| 久久亚洲国产精品五月天婷|