MySQL default values of the parameters in which you think is reasonable?

1, innodb_ buffer_ pool _size default 128M, 50% -70%, it recommended physical memory;

2,1og_ timestamps default UTC, recommendations SYSTEM;

3, time_ zone default SYSTEM, recommended "+8: 00";

4, join_ _buffer_ size default 2K, recommendations 4M;

5, sort_ _buffer_ size default 2K, recommendations 4M;

6, read_ rnd_ _buffer_ size default 2K, recommendations 4M;

7, max_ connections 151 default recommended set according to actual situation;

8, max_ connect_ errors default 100, recommendations 100 000;

9, max_ allowed_ packet default 4M, recommendations 32M;

. 10, interactive timeout default 28800, recommended 300 seconds;

11, wait_ timeout default 28800, recommended 300 seconds;

12, lock_ wait_timeout default - a year, the proposed six seconds;

13, long_ query_time default 10 seconds, 0.1 to 0.5 is recommended;

14, binlog_cache_ size default 32K, recommendations 32M;

15, max_binlog_ cache_ size default very, very large, it is recommended 1G;

16, innodb_ log_ file_ size default 48M, recommends 1 ~ 2G;

17, innodb_ log_ files_ in_ group default 2, 3 or more is recommended groups;

18, innodb_ io_capacity default is 200, set according to actual io disk capacity;

19, innodb_ open_ files default -1, no limit, it is recommended 65535;

20, innodb_max_ dirty_ pages_ pct default 75, recommendation 50;

21, innodb_ online_ alter_ log_ max_ _size a default 128M, recommendations 4G;

22, innodb_undo_ log truncate off by default, it is recommended to open;

More reliable MySQL parameters recommended value, see: https: //imysql.com/my-cnf-wizard.html

Published 16 original articles · won praise 0 · Views 990

Guess you like

Origin blog.csdn.net/Evelyn_Lv/article/details/104634457