MySQL5.7-VS-MySQL5.6的undo log在线收缩
类别:win_lin_mac
post by sunshine / 2016-9-30 18:44 Friday
innodb_undo_directory=/data/undologinnodb_undo_tablespaces=4innodb_undo_logs=128innodb_max_undo_log_size=1Ginnodb_purge_rseg_truncate_frequencyinnodb_undo_log_truncate=1 |
mysql> show variables like 'innodb_undo%';+--------------------------+---------------+| Variable_name | Value |+--------------------------+---------------+| innodb_undo_directory | /data/undolog || innodb_undo_log_truncate | ON || innodb_undo_logs | 128 || innodb_undo_tablespaces | 4 |+--------------------------+---------------+4 rows in set (0.00 sec)mysql> update helei set c1=1;Query OK, 1000000 rows affected (45.48 sec)Rows matched: 1000000 Changed: 1000000 Warnings: 0mysql> update helei set c2=222;Query OK, 1000000 rows affected (43.25 sec)Rows matched: 1000000 Changed: 1000000 Warnings: 0mysql> update helei set c4='heleiheleiheleiheleihel';Query OK, 1000000 rows affected (10.28 sec)Rows matched: 1000000 Changed: 1000000 Warnings: 0 |
|
1
2
3
4
5
6
7
8
|
2016-09-26T23:51:06.062828Z 0 [Note] InnoDB: Truncating UNDO tablespace with space identifier 12016-09-26T23:51:06.159077Z 0 [Note] InnoDB: Completed truncate of UNDO tablespace with space identifier 12016-09-26T23:51:06.159101Z 0 [Note] InnoDB: Truncating UNDO tablespace with space identifier 22016-09-26T23:51:06.242355Z 0 [Note] InnoDB: Completed truncate of UNDO tablespace with space identifier 22016-09-26T23:51:06.242378Z 0 [Note] InnoDB: Truncating UNDO tablespace with space identifier 32016-09-26T23:51:06.313036Z 0 [Note] InnoDB: Completed truncate of UNDO tablespace with space identifier 32016-09-26T23:51:06.313060Z 0 [Note] InnoDB: Truncating UNDO tablespace with space identifier 42016-09-26T23:51:06.403003Z 0 [Note] InnoDB: Completed truncate of UNDO tablespace with space identifier 4 |
版权所有:《太阳花工作室》 => 《MySQL5.7-VS-MySQL5.6的undo log在线收缩》
本文地址:http://bg.artuion.com/win_lin_mac/350.html
除非注明,文章均为 《太阳花工作室》 原创,欢迎转载!转载请注明本文地址,谢谢。
