MySQL 5.7 和 MySQL 5.6參數默認值比較


 

這里只拿出默認值有改變的參數,默認值沒有改變的不在下面的列表中。這些數據是通過 ” show global variables ;” 獲得,可能不是所有的參數。

參數

MySQL 5.6

MySQL 5.7

binlog_error_action

IGNORE_ERROR

ABORT_SERVER

binlog_format

STATEMENT

ROW

binlog_gtid_simple_recovery

OFF

ON

eq_range_index_dive_limit

10

200

innodb_buffer_pool_dump_at_shutdown

OFF

ON

innodb_buffer_pool_instances

8

1

innodb_buffer_pool_load_at_startup

OFF

ON

innodb_checksum_algorithm

innodb

crc32

innodb_file_format

Antelope

Barracuda

innodb_file_format_max

Antelope

Barracuda

innodb_large_prefix

OFF

ON

innodb_log_buffer_size

8388608

16777216

innodb_purge_threads

1

4

innodb_strict_mode

OFF

ON

innodb_use_native_aio

ON

OFF

log_warnings

1

2

optimizer_switch

index_merge=on,index_merge_union=on,index_merge_sort_union=on,

index_merge_intersection=on,engine_condition_pushdown=on,

index_condition_pushdown=on,mrr=on,mrr_cost_based=on,

block_nested_loop=on,batched_key_access=off,materialization=on,

semijoin=on,loosescan=on,firstmatch=on,

subquery_materialization_cost_based=on,use_index_extensions=on

index_merge=on,index_merge_union=on,index_merge_sort_union=on,

index_merge_intersection=on,engine_condition_pushdown=on,

index_condition_pushdown=on,mrr=on,mrr_cost_based=on,

block_nested_loop=on,batched_key_access=off,materialization=on,

semijoin=on,loosescan=on,firstmatch=on,duplicateweedout=on,

subquery_materialization_cost_based=on,use_index_extensions=on,

condition_fanout_filter=on,derived_merge=on

performance_schema_accounts_size

100

-1

performance_schema_max_cond_instances

3504

-1

performance_schema_max_file_classes

50

80

performance_schema_max_file_instances

7693

-1

performance_schema_max_mutex_classes

200

210

performance_schema_max_mutex_instances

15906

-1

performance_schema_max_rwlock_instances

9102

-1

performance_schema_max_socket_instances

322

-1

performance_schema_max_statement_classes

168

193

performance_schema_max_table_handles

4000

-1

performance_schema_max_table_instances

12500

-1

performance_schema_max_thread_instances

402

-1

performance_schema_setup_actors_size

100

-1

performance_schema_setup_objects_size

100

-1

performance_schema_users_size

100

-1

slave_net_timeout

3600

60

sql_mode

STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION

ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,

NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,

NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

sync_binlog

0

1

table_open_cache_instances

1

16

 

  • binlog_format

binlog的格式默認為ROW,在mysql5.6binlog的格式為STATEMENT

  • innodb_buffer_pool_instances

Buffer pool 的數量,默認值為1,在MySQL5.6該值為8

  • innodb_checksum_algorithm

指定如何生成和驗證存儲在InnoDB表空間的磁盤塊中的校驗和。默認值使用性能更好的crc32

  • innodb_log_buffer_size

innodb重做日志緩沖空間默認為16M,MySQL 5.6時這個值為8M

  • innodb_purge_threads

Purge線程的數量默認為4,在MySQL5.6時默認值為1

  • sql_mode

默認sql mode 增加了ONLY_FULL_GROUP_BYERROR_FOR_DIVISION_BY_ZERONO_ZERO_DATENO_ZERO_IN_DATE 等。

  • sync_binlog

默認值為1,表示binlog日志同步寫入磁盤。MySQL 5.6該參數默認值為0

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM