Details
-
Task
-
Status: Closed (View Workflow)
-
Blocker
-
Resolution: Fixed
-
5.5.51 & 10.2.2, 10.2.2-1, 10.2.3-1, 10.2.3-2, 10.2.4-4, 10.2.4-1, 10.2.4-5, 10.0.29
Description
Poor MySQL has received some negative feedback over the years 1 2. As entertaining as it is watching and listening to developers struggle and whine, I think it's about time we changed some of the defaults and made the config easier to understand.
Oracle are working on changing more defaults in 5.7 3 4 5, I think we should too.
Something else they have done, is to radically change the simplicity of the default server config file, /etc/my.cnf:
https://raw.githubusercontent.com/mysql/mysql-server/5.7/support-files/my-default.cnf.sh
It's quite clear there, the sql_mode has been set, which will satisfy most developers and users looking for an ACID compliant database with little tweaking, and a rough note on increasing or decreasing RAM needed for InnoDB. MariaDB now probably needs something similar for Galera, CONNET and TokuDB.
- http://sql-info.de/mysql/gotchas.html
- http://blog.ionelmc.ro/2014/12/28/terrible-choices-mysql/
- http://www.tocker.ca/2015/01/23/proposal-to-change-additional-defaults-in-mysql-5-7.html
- http://www.tocker.ca/2015/01/14/proposal-to-change-replication-and-innodb-settings-in-mysql-5-7.html
- http://www.tocker.ca/2015/02/24/proposal-to-change-additional-defaults-in-mysql-5-7-february-edition.html
Proposed new defaults:
innodb_autoinc_lock_mode = 2 (was: 1)
|
innodb_buffer_pool_dump_at_shutdown = ON (was: OFF)
|
innodb_buffer_pool_dump_pct = 25 (was: 100)
|
innodb_buffer_pool_load_at_startup = ON (was: OFF)
|
innodb_checksum_algorithm = CRC32 (was: INNODB)
|
innodb_file_format = Barracuda (was: Antelope)
|
innodb_file_format_max = Barracuda (was: Antelope)
|
innodb_large_prefix = ON (was: OFF)
|
innodb_log_compressed_pages = ON (was: OFF)
|
innodb_purge_threads = 4 (was: 1)
|
innodb_strict_mode = ON (was: OFF)
|
|
binlog_annotate_row_events = ON (was: OFF)
|
binlog_format = MIXED (was: STATEMENT)
|
group_concat_max_len = 1M (was: 1025)
|
lock_wait_timeout = 86400(1day)(was: 1year)
|
log_slow_admin_statements = ON (was: OFF)
|
log_slow_slave_statements = ON (was: OFF)
|
log_warnings = 2 (was: 1)
|
max_allowed_packet = 16M (was: 4M)
|
replicate_annotate_row_events = ON (was: OFF)
|
slave_net_timeout = 60 (was: 3600)
|
sync_binlog = 1 (was: 0)
|
aria_recover = FORCE, BACKUP (was: NORMAL)
|
myisam_recover_options = FORCE, BACKUP (was: OFF)
|
Attachments
Issue Links
- includes
-
MDEV-7261 Backport the default autosized value of "table_definition_cache" from MySQL 5.6.8+
-
- Stalled
-
-
MDEV-8429 Change binlog_checksum default to match MySQL 5.6.6+
-
- Closed
-
-
MDEV-8923 [PATCH] port innodb_buffer_pool_dump_pct + have buffer pool dump and reload set as default
-
- Closed
-
-
MDEV-9999 Change the default value of optimizer_use_condition_selectivity
-
- Closed
-
- is duplicated by
-
MDEV-13247 innodb_log_compressed_pages=OFF breaks crash recovery of ROW_FORMAT=COMPRESSED tables
-
- Closed
-
- relates to
-
MDEV-6066 Merge new defaults from 5.6 and 5.7
-
- Closed
-
-
MDEV-7845 update date column with erroneous date does not return an error but sets to null
-
- Closed
-
-
MDEV-10244 Change default to use optimistic mode of in-order parallel replication
-
- Closed
-
-
MDEV-11062 Different result for time type with optimizer_use_condition_selectivity=4
-
- Closed
-
-
MDEV-11082 mysql_client_test: test_ps_query_cache fails with group-concat-max-len=1M
-
- Closed
-
-
MDEV-11092 Assertion `!writer.checksum_len || writer.remains == 0' failed
-
- Closed
-
-
MDEV-11094 Blackhole table updates on slave fail when row annotation is enabled
-
- Closed
-
-
MDEV-11095 rpl.rpl_row_mysqlbinlog test fails if row annotation enabled
-
- Closed
-
-
MDEV-11235 LOAD DATA does not honor strict modes
-
- Closed
-
-
MDEV-11269 In NO_ZERO_DATE mode, multiple timestamp fields with no default can't be created
-
- Closed
-
-
MDEV-11527 Virtual columns do not get along well with NO_ZERO_DATE
-
- Closed
-
-
MDEV-11592 REPLACE IGNORE
-
- Open
-
-
MDEV-11666 rpl.rpl_row_index_choice fails with higher binlog-row-event-max-size
-
- Confirmed
-
-
MDEV-11685 sql_mode can't be set with non-ascii connection charset
-
- Closed
-
-
MDEV-11691 CSV: Table marked as crashed and should be repaired
-
- Confirmed
-
-
MDEV-11819 NO_ZERO_IN_DATE: Incorrect generated column value
-
- Closed
-
-
MDEV-11822 Virtual columns: No warning on data truncation
-
- Open
-
-
MDEV-11908 New default configuration produces warnings about itself upon startup
-
- Closed
-
-
MDEV-11995 ALTER TABLE proceeds despite reporting ER_TOO_LONG_KEY error
-
- Closed
-
-
MDEV-9474 group_concat_max_len not being read from /etc/my.cnf
-
- Closed
-
-
MDEV-10981 Check for side effects on switching on ERROR_FOR_DIVISION_BY_ZERO
-
- Closed
-
-
MDEV-11040 Different checksum values
-
- Confirmed
-
-
MDEV-11060 sql/protocol.cc:532: void Protocol::end_statement(): Assertion `0' failed
-
- Closed
-
-
MDEV-11874 "Data too long for column" instead of "Invalid default value for" upon ALTER in strict mode
-
- Closed
-
-
MDEV-11875 Inconsistent behavior of CREATE TABLE AS ... <string function> depending on strict mode
-
- Open
-
-
MDEV-11876 CONVERT produces a warning and result depends on strict mode
-
- Open
-
-
MDEV-11888 SELECT produces more warnings in non-strict mode than in strict mode
-
- Open
-
-
MDEV-11890 Effect of NO_ZERO_DATE and NO_ZERO_IN_DATE is reversed
-
- Stalled
-
-
MDEV-11891 Warnings on wrong function parameters are not quite accurate
-
- Open
-
-
MDEV-11892 Warning caused by NO_ZERO_DATE is different for TIMESTAMP and other date-related columns
-
- Open
-
-
MDEV-11893 Query execution plan depends on strict mode
-
- Open
-
-
MDEV-11895 NO_ZERO_DATE affects timestamp values without any warnings
-
- Closed
-
-
MDEV-11907 Bogus 'Division by 0' warnings upon using COUNT as a window function
-
- Closed
-
-
MDEV-13272 Document default change on parameter innodb_log_compressed_pages=ON
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Description |
Poor MySQL has received some negative feedback over the years^1^^2^. As entertaining as it is watching and listening to developers struggle and whine, I think it's about time we changed some of the defaults and made the config easier to understand. Oracle are working on changing more defaults in 5.7^3^^4^^5^, I think we should too. Something else they have done, is to radically change the simplicity of the default server config file, /etc/my.cnf: https://raw.githubusercontent.com/mysql/mysql-server/5.7/support-files/my-default.cnf.sh It's quite clear there, the sql_mode has been set, which will satisfy most developers and users looking for an ACID compliant database with little tweaking, and a rough note on increasing or decreasing RAM needed for InnoDB. MariaDB now probably needs something similar for Galera, CONNET and TokuDB. # http://sql-info.de/mysql/gotchas.html # http://blog.ionelmc.ro/2014/12/28/terrible-choices-mysql/ # http://www.tocker.ca/2015/01/23/proposal-to-change-additional-defaults-in-mysql-5-7.html # http://www.tocker.ca/2015/01/14/proposal-to-change-replication-and-innodb-settings-in-mysql-5-7.html # http://www.tocker.ca/2015/02/24/proposal-to-change-additional-defaults-in-mysql-5-7-february-edition.html |
Poor MySQL has received some negative feedback over the years^1^ ^2^. As entertaining as it is watching and listening to developers struggle and whine, I think it's about time we changed some of the defaults and made the config easier to understand. Oracle are working on changing more defaults in 5.7 ^3^ ^4^ ^5^, I think we should too. Something else they have done, is to radically change the simplicity of the default server config file, /etc/my.cnf: https://raw.githubusercontent.com/mysql/mysql-server/5.7/support-files/my-default.cnf.sh It's quite clear there, the sql_mode has been set, which will satisfy most developers and users looking for an ACID compliant database with little tweaking, and a rough note on increasing or decreasing RAM needed for InnoDB. MariaDB now probably needs something similar for Galera, CONNET and TokuDB. # http://sql-info.de/mysql/gotchas.html # http://blog.ionelmc.ro/2014/12/28/terrible-choices-mysql/ # http://www.tocker.ca/2015/01/23/proposal-to-change-additional-defaults-in-mysql-5-7.html # http://www.tocker.ca/2015/01/14/proposal-to-change-replication-and-innodb-settings-in-mysql-5-7.html # http://www.tocker.ca/2015/02/24/proposal-to-change-additional-defaults-in-mysql-5-7-february-edition.html |
Description |
Poor MySQL has received some negative feedback over the years^1^ ^2^. As entertaining as it is watching and listening to developers struggle and whine, I think it's about time we changed some of the defaults and made the config easier to understand. Oracle are working on changing more defaults in 5.7 ^3^ ^4^ ^5^, I think we should too. Something else they have done, is to radically change the simplicity of the default server config file, /etc/my.cnf: https://raw.githubusercontent.com/mysql/mysql-server/5.7/support-files/my-default.cnf.sh It's quite clear there, the sql_mode has been set, which will satisfy most developers and users looking for an ACID compliant database with little tweaking, and a rough note on increasing or decreasing RAM needed for InnoDB. MariaDB now probably needs something similar for Galera, CONNET and TokuDB. # http://sql-info.de/mysql/gotchas.html # http://blog.ionelmc.ro/2014/12/28/terrible-choices-mysql/ # http://www.tocker.ca/2015/01/23/proposal-to-change-additional-defaults-in-mysql-5-7.html # http://www.tocker.ca/2015/01/14/proposal-to-change-replication-and-innodb-settings-in-mysql-5-7.html # http://www.tocker.ca/2015/02/24/proposal-to-change-additional-defaults-in-mysql-5-7-february-edition.html |
Poor MySQL has received some negative feedback over the years ^1^ ^2^. As entertaining as it is watching and listening to developers struggle and whine, I think it's about time we changed some of the defaults and made the config easier to understand. Oracle are working on changing more defaults in 5.7 ^3^ ^4^ ^5^, I think we should too. Something else they have done, is to radically change the simplicity of the default server config file, /etc/my.cnf: https://raw.githubusercontent.com/mysql/mysql-server/5.7/support-files/my-default.cnf.sh It's quite clear there, the sql_mode has been set, which will satisfy most developers and users looking for an ACID compliant database with little tweaking, and a rough note on increasing or decreasing RAM needed for InnoDB. MariaDB now probably needs something similar for Galera, CONNET and TokuDB. # http://sql-info.de/mysql/gotchas.html # http://blog.ionelmc.ro/2014/12/28/terrible-choices-mysql/ # http://www.tocker.ca/2015/01/23/proposal-to-change-additional-defaults-in-mysql-5-7.html # http://www.tocker.ca/2015/01/14/proposal-to-change-replication-and-innodb-settings-in-mysql-5-7.html # http://www.tocker.ca/2015/02/24/proposal-to-change-additional-defaults-in-mysql-5-7-february-edition.html |
Priority | Trivial [ 5 ] | Major [ 3 ] |
Fix Version/s | 10.2 [ 14601 ] |
Workflow | MariaDB v2 [ 59824 ] | MariaDB v3 [ 62565 ] |
Link |
This issue relates to |
Assignee | Nirbhay Choubey [ nirbhay_c ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Sprint | 5.51 & 10.2 [ 85 ] |
Rank | Ranked higher |
Description |
Poor MySQL has received some negative feedback over the years ^1^ ^2^. As entertaining as it is watching and listening to developers struggle and whine, I think it's about time we changed some of the defaults and made the config easier to understand. Oracle are working on changing more defaults in 5.7 ^3^ ^4^ ^5^, I think we should too. Something else they have done, is to radically change the simplicity of the default server config file, /etc/my.cnf: https://raw.githubusercontent.com/mysql/mysql-server/5.7/support-files/my-default.cnf.sh It's quite clear there, the sql_mode has been set, which will satisfy most developers and users looking for an ACID compliant database with little tweaking, and a rough note on increasing or decreasing RAM needed for InnoDB. MariaDB now probably needs something similar for Galera, CONNET and TokuDB. # http://sql-info.de/mysql/gotchas.html # http://blog.ionelmc.ro/2014/12/28/terrible-choices-mysql/ # http://www.tocker.ca/2015/01/23/proposal-to-change-additional-defaults-in-mysql-5-7.html # http://www.tocker.ca/2015/01/14/proposal-to-change-replication-and-innodb-settings-in-mysql-5-7.html # http://www.tocker.ca/2015/02/24/proposal-to-change-additional-defaults-in-mysql-5-7-february-edition.html |
Poor MySQL has received some negative feedback over the years ^1^ ^2^. As entertaining as it is watching and listening to developers struggle and whine, I think it's about time we changed some of the defaults and made the config easier to understand.
Oracle are working on changing more defaults in 5.7 ^3^ ^4^ ^5^, I think we should too. Something else they have done, is to radically change the simplicity of the default server config file, /etc/my.cnf: https://raw.githubusercontent.com/mysql/mysql-server/5.7/support-files/my-default.cnf.sh It's quite clear there, the sql_mode has been set, which will satisfy most developers and users looking for an ACID compliant database with little tweaking, and a rough note on increasing or decreasing RAM needed for InnoDB. MariaDB now probably needs something similar for Galera, CONNET and TokuDB. # http://sql-info.de/mysql/gotchas.html # http://blog.ionelmc.ro/2014/12/28/terrible-choices-mysql/ # http://www.tocker.ca/2015/01/23/proposal-to-change-additional-defaults-in-mysql-5-7.html # http://www.tocker.ca/2015/01/14/proposal-to-change-replication-and-innodb-settings-in-mysql-5-7.html # http://www.tocker.ca/2015/02/24/proposal-to-change-additional-defaults-in-mysql-5-7-february-edition.html Proposed new defaults: {code} innodb_checksum_algorithm = CRC32 innodb_purge_threads = 4 innodb_strict_mode = ON innodb_buffer_pool_dump_at_shutdown = ON innodb_buffer_pool_load_at_startup = ON innodb_buffer_pool_dump_pct = 25 innodb_file_format = Barracuda innodb_large_prefix = ON sync_binlog = 1 slave_net_timeout = 60 binlog_format = ROW log_warnings = 2 log_slow_admin_statements = ON log_slow_slave_statements = ON log_queries_not_using_indexes = ON min-examined-row-limit = 1000 query_cache_strip_comments = ON TO BE DISCUSSED --------------- default_tmp_storage_engine = INNODB (Current default: Empty) innodb_log_compressed_pages = ON (It was turned back off in 10.1.2) table_definition_cache = -1 (autosized; Current default: 400) long-query-time = 2 (Current default: 10.0 group_concat_max_len = 1M (Current default: 1K) max_allowed_packet = 16M (Current default: 4M) innodb_autoinc_lock_mode = 2 (Required for Galera; Current default: 1) innodb_log_file_size = 128M (Current default: 48M) binlog_annotate_row_events = ON (Current default: OFF) replicate_annotate_row_events = ON (Current default: OFF) innodb_stats_traditional = OFF (Current default: ON) use_stat_tables = complementary (Current default: never) histogram_size = 255 (Current default: 0) aria_recover = QUICK, BACKUP (or FORCE, BACKUP; Current default: NORMAL) myisam_recover_options = QUICK, BACKUP (or FORCE, BACKUP; Current default: OFF) lower_case_table_names = 1 updatable_views_with_limit = OFF (Current default: ON) optimizer_switch = ?? sql_mode = ?? (Current default: NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION) lock_wait_timeout = ?? (Current default: 1 year) * sync_binlog currently set to 1 (from 0), Should we set it even higher? * Performance schema variables? * Disable query cache? {code} |
Assignee | Nirbhay Choubey [ nirbhay_c ] | Daniel Black [ danblack ] |
Assignee | Daniel Black [ danblack ] | Nirbhay Choubey [ nirbhay_c ] |
Description |
Poor MySQL has received some negative feedback over the years ^1^ ^2^. As entertaining as it is watching and listening to developers struggle and whine, I think it's about time we changed some of the defaults and made the config easier to understand.
Oracle are working on changing more defaults in 5.7 ^3^ ^4^ ^5^, I think we should too. Something else they have done, is to radically change the simplicity of the default server config file, /etc/my.cnf: https://raw.githubusercontent.com/mysql/mysql-server/5.7/support-files/my-default.cnf.sh It's quite clear there, the sql_mode has been set, which will satisfy most developers and users looking for an ACID compliant database with little tweaking, and a rough note on increasing or decreasing RAM needed for InnoDB. MariaDB now probably needs something similar for Galera, CONNET and TokuDB. # http://sql-info.de/mysql/gotchas.html # http://blog.ionelmc.ro/2014/12/28/terrible-choices-mysql/ # http://www.tocker.ca/2015/01/23/proposal-to-change-additional-defaults-in-mysql-5-7.html # http://www.tocker.ca/2015/01/14/proposal-to-change-replication-and-innodb-settings-in-mysql-5-7.html # http://www.tocker.ca/2015/02/24/proposal-to-change-additional-defaults-in-mysql-5-7-february-edition.html Proposed new defaults: {code} innodb_checksum_algorithm = CRC32 innodb_purge_threads = 4 innodb_strict_mode = ON innodb_buffer_pool_dump_at_shutdown = ON innodb_buffer_pool_load_at_startup = ON innodb_buffer_pool_dump_pct = 25 innodb_file_format = Barracuda innodb_large_prefix = ON sync_binlog = 1 slave_net_timeout = 60 binlog_format = ROW log_warnings = 2 log_slow_admin_statements = ON log_slow_slave_statements = ON log_queries_not_using_indexes = ON min-examined-row-limit = 1000 query_cache_strip_comments = ON TO BE DISCUSSED --------------- default_tmp_storage_engine = INNODB (Current default: Empty) innodb_log_compressed_pages = ON (It was turned back off in 10.1.2) table_definition_cache = -1 (autosized; Current default: 400) long-query-time = 2 (Current default: 10.0 group_concat_max_len = 1M (Current default: 1K) max_allowed_packet = 16M (Current default: 4M) innodb_autoinc_lock_mode = 2 (Required for Galera; Current default: 1) innodb_log_file_size = 128M (Current default: 48M) binlog_annotate_row_events = ON (Current default: OFF) replicate_annotate_row_events = ON (Current default: OFF) innodb_stats_traditional = OFF (Current default: ON) use_stat_tables = complementary (Current default: never) histogram_size = 255 (Current default: 0) aria_recover = QUICK, BACKUP (or FORCE, BACKUP; Current default: NORMAL) myisam_recover_options = QUICK, BACKUP (or FORCE, BACKUP; Current default: OFF) lower_case_table_names = 1 updatable_views_with_limit = OFF (Current default: ON) optimizer_switch = ?? sql_mode = ?? (Current default: NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION) lock_wait_timeout = ?? (Current default: 1 year) * sync_binlog currently set to 1 (from 0), Should we set it even higher? * Performance schema variables? * Disable query cache? {code} |
Poor MySQL has received some negative feedback over the years ^1^ ^2^. As entertaining as it is watching and listening to developers struggle and whine, I think it's about time we changed some of the defaults and made the config easier to understand.
Oracle are working on changing more defaults in 5.7 ^3^ ^4^ ^5^, I think we should too. Something else they have done, is to radically change the simplicity of the default server config file, /etc/my.cnf: https://raw.githubusercontent.com/mysql/mysql-server/5.7/support-files/my-default.cnf.sh It's quite clear there, the sql_mode has been set, which will satisfy most developers and users looking for an ACID compliant database with little tweaking, and a rough note on increasing or decreasing RAM needed for InnoDB. MariaDB now probably needs something similar for Galera, CONNET and TokuDB. # http://sql-info.de/mysql/gotchas.html # http://blog.ionelmc.ro/2014/12/28/terrible-choices-mysql/ # http://www.tocker.ca/2015/01/23/proposal-to-change-additional-defaults-in-mysql-5-7.html # http://www.tocker.ca/2015/01/14/proposal-to-change-replication-and-innodb-settings-in-mysql-5-7.html # http://www.tocker.ca/2015/02/24/proposal-to-change-additional-defaults-in-mysql-5-7-february-edition.html Proposed new defaults: {code} innodb_checksum_algorithm = CRC32 innodb_purge_threads = 4 innodb_strict_mode = ON innodb_buffer_pool_dump_at_shutdown = ON innodb_buffer_pool_load_at_startup = ON innodb_buffer_pool_dump_pct = 25 innodb_file_format = Barracuda innodb_large_prefix = ON sync_binlog = 1 slave_net_timeout = 60 binlog_format = MIXED # (was ROW) MIXED format will be safer in traditional replication scenarios where master's still running with STMT. log_warnings = 2 log_slow_admin_statements = ON log_slow_slave_statements = ON log_queries_not_using_indexes = ON min-examined-row-limit = 1000 query_cache_strip_comments = ON TO BE DISCUSSED --------------- default_tmp_storage_engine = INNODB (Current default: Empty) innodb_log_compressed_pages = ON (It was turned back off in 10.1.2) table_definition_cache = -1 (autosized; Current default: 400) long-query-time = 2 (Current default: 10.0 group_concat_max_len = 1M (Current default: 1K) max_allowed_packet = 16M (Current default: 4M) innodb_autoinc_lock_mode = 2 (Required for Galera; Current default: 1) innodb_log_file_size = 128M (Current default: 48M) binlog_annotate_row_events = ON (Current default: OFF) replicate_annotate_row_events = ON (Current default: OFF) innodb_stats_traditional = OFF (Current default: ON) use_stat_tables = complementary (Current default: never) histogram_size = 255 (Current default: 0) aria_recover = QUICK, BACKUP (or FORCE, BACKUP; Current default: NORMAL) myisam_recover_options = QUICK, BACKUP (or FORCE, BACKUP; Current default: OFF) lower_case_table_names = 1 updatable_views_with_limit = OFF (Current default: ON) optimizer_switch = ?? sql_mode = ?? (Current default: NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION) lock_wait_timeout = ?? (Current default: 1 year) * sync_binlog currently set to 1 (from 0), Should we set it even higher? * Performance schema variables? * Disable query cache? {code} |
Sprint | 5.5.51 & 10.2.2 [ 85 ] | 5.5.51 & 10.2.2, 10.2.2-1 [ 85, 89 ] |
Rank | Ranked higher |
Description |
Poor MySQL has received some negative feedback over the years ^1^ ^2^. As entertaining as it is watching and listening to developers struggle and whine, I think it's about time we changed some of the defaults and made the config easier to understand.
Oracle are working on changing more defaults in 5.7 ^3^ ^4^ ^5^, I think we should too. Something else they have done, is to radically change the simplicity of the default server config file, /etc/my.cnf: https://raw.githubusercontent.com/mysql/mysql-server/5.7/support-files/my-default.cnf.sh It's quite clear there, the sql_mode has been set, which will satisfy most developers and users looking for an ACID compliant database with little tweaking, and a rough note on increasing or decreasing RAM needed for InnoDB. MariaDB now probably needs something similar for Galera, CONNET and TokuDB. # http://sql-info.de/mysql/gotchas.html # http://blog.ionelmc.ro/2014/12/28/terrible-choices-mysql/ # http://www.tocker.ca/2015/01/23/proposal-to-change-additional-defaults-in-mysql-5-7.html # http://www.tocker.ca/2015/01/14/proposal-to-change-replication-and-innodb-settings-in-mysql-5-7.html # http://www.tocker.ca/2015/02/24/proposal-to-change-additional-defaults-in-mysql-5-7-february-edition.html Proposed new defaults: {code} innodb_checksum_algorithm = CRC32 innodb_purge_threads = 4 innodb_strict_mode = ON innodb_buffer_pool_dump_at_shutdown = ON innodb_buffer_pool_load_at_startup = ON innodb_buffer_pool_dump_pct = 25 innodb_file_format = Barracuda innodb_large_prefix = ON sync_binlog = 1 slave_net_timeout = 60 binlog_format = MIXED # (was ROW) MIXED format will be safer in traditional replication scenarios where master's still running with STMT. log_warnings = 2 log_slow_admin_statements = ON log_slow_slave_statements = ON log_queries_not_using_indexes = ON min-examined-row-limit = 1000 query_cache_strip_comments = ON TO BE DISCUSSED --------------- default_tmp_storage_engine = INNODB (Current default: Empty) innodb_log_compressed_pages = ON (It was turned back off in 10.1.2) table_definition_cache = -1 (autosized; Current default: 400) long-query-time = 2 (Current default: 10.0 group_concat_max_len = 1M (Current default: 1K) max_allowed_packet = 16M (Current default: 4M) innodb_autoinc_lock_mode = 2 (Required for Galera; Current default: 1) innodb_log_file_size = 128M (Current default: 48M) binlog_annotate_row_events = ON (Current default: OFF) replicate_annotate_row_events = ON (Current default: OFF) innodb_stats_traditional = OFF (Current default: ON) use_stat_tables = complementary (Current default: never) histogram_size = 255 (Current default: 0) aria_recover = QUICK, BACKUP (or FORCE, BACKUP; Current default: NORMAL) myisam_recover_options = QUICK, BACKUP (or FORCE, BACKUP; Current default: OFF) lower_case_table_names = 1 updatable_views_with_limit = OFF (Current default: ON) optimizer_switch = ?? sql_mode = ?? (Current default: NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION) lock_wait_timeout = ?? (Current default: 1 year) * sync_binlog currently set to 1 (from 0), Should we set it even higher? * Performance schema variables? * Disable query cache? {code} |
Poor MySQL has received some negative feedback over the years ^1^ ^2^. As entertaining as it is watching and listening to developers struggle and whine, I think it's about time we changed some of the defaults and made the config easier to understand.
Oracle are working on changing more defaults in 5.7 ^3^ ^4^ ^5^, I think we should too. Something else they have done, is to radically change the simplicity of the default server config file, /etc/my.cnf: https://raw.githubusercontent.com/mysql/mysql-server/5.7/support-files/my-default.cnf.sh It's quite clear there, the sql_mode has been set, which will satisfy most developers and users looking for an ACID compliant database with little tweaking, and a rough note on increasing or decreasing RAM needed for InnoDB. MariaDB now probably needs something similar for Galera, CONNET and TokuDB. # http://sql-info.de/mysql/gotchas.html # http://blog.ionelmc.ro/2014/12/28/terrible-choices-mysql/ # http://www.tocker.ca/2015/01/23/proposal-to-change-additional-defaults-in-mysql-5-7.html # http://www.tocker.ca/2015/01/14/proposal-to-change-replication-and-innodb-settings-in-mysql-5-7.html # http://www.tocker.ca/2015/02/24/proposal-to-change-additional-defaults-in-mysql-5-7-february-edition.html Proposed new defaults: {code} innodb_checksum_algorithm = CRC32 innodb_purge_threads = 4 innodb_strict_mode = ON innodb_buffer_pool_dump_at_shutdown = ON innodb_buffer_pool_load_at_startup = ON innodb_buffer_pool_dump_pct = 25 innodb_file_format = Barracuda innodb_large_prefix = ON sync_binlog = 1 (Current default: 0) slave_net_timeout = 60 (Current default: 3600) binlog_format = MIXED # (was ROW) MIXED format will be safer in traditional replication scenarios where master's still running with STMT. log_warnings = 2 (Current default: 1) log_slow_admin_statements = ON (Current default: OFF) log_slow_slave_statements = ON (Current default: OFF) log_queries_not_using_indexes = ON (Current default: OFF) min-examined-row-limit = 1000 (Current default: 0) query_cache_strip_comments = ON (Current default: OFF) TO BE DISCUSSED --------------- default_tmp_storage_engine = INNODB (Current default: Empty) innodb_log_compressed_pages = ON (It was turned back off in 10.1.2) table_definition_cache = -1 (autosized; Current default: 400) long-query-time = 2 (Current default: 10.0 group_concat_max_len = 1M (Current default: 1K) max_allowed_packet = 16M (Current default: 4M) innodb_autoinc_lock_mode = 2 (Required for Galera; Current default: 1) innodb_log_file_size = 128M (Current default: 48M) binlog_annotate_row_events = ON (Current default: OFF) replicate_annotate_row_events = ON (Current default: OFF) innodb_stats_traditional = OFF (Current default: ON) use_stat_tables = complementary (Current default: never) histogram_size = 255 (Current default: 0) aria_recover = QUICK, BACKUP (or FORCE, BACKUP; Current default: NORMAL) myisam_recover_options = QUICK, BACKUP (or FORCE, BACKUP; Current default: OFF) lower_case_table_names = 1 updatable_views_with_limit = OFF (Current default: ON) optimizer_switch = ?? sql_mode = ?? (Current default: NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION) lock_wait_timeout = ?? (Current default: 1 year) * sync_binlog currently set to 1 (from 0), Should we set it even higher? * Performance schema variables? * Disable query cache? {code} |
Sprint | 5.5.51 & 10.2.2, 10.2.2-1 [ 85, 89 ] | 5.5.51 & 10.2.2, 10.2.2-1, 10.2.3-1 [ 85, 89, 102 ] |
Rank | Ranked lower |
Sprint | 5.5.51 & 10.2.2, 10.2.2-1, 10.2.3-1 [ 85, 89, 102 ] | 5.5.51 & 10.2.2, 10.2.2-1, 10.2.3-1, 10.2.3-2 [ 85, 89, 102, 105 ] |
Link |
This issue relates to |
Link | This issue relates to MDEV-11040 [ MDEV-11040 ] |
Link |
This issue relates to |
Description |
Poor MySQL has received some negative feedback over the years ^1^ ^2^. As entertaining as it is watching and listening to developers struggle and whine, I think it's about time we changed some of the defaults and made the config easier to understand.
Oracle are working on changing more defaults in 5.7 ^3^ ^4^ ^5^, I think we should too. Something else they have done, is to radically change the simplicity of the default server config file, /etc/my.cnf: https://raw.githubusercontent.com/mysql/mysql-server/5.7/support-files/my-default.cnf.sh It's quite clear there, the sql_mode has been set, which will satisfy most developers and users looking for an ACID compliant database with little tweaking, and a rough note on increasing or decreasing RAM needed for InnoDB. MariaDB now probably needs something similar for Galera, CONNET and TokuDB. # http://sql-info.de/mysql/gotchas.html # http://blog.ionelmc.ro/2014/12/28/terrible-choices-mysql/ # http://www.tocker.ca/2015/01/23/proposal-to-change-additional-defaults-in-mysql-5-7.html # http://www.tocker.ca/2015/01/14/proposal-to-change-replication-and-innodb-settings-in-mysql-5-7.html # http://www.tocker.ca/2015/02/24/proposal-to-change-additional-defaults-in-mysql-5-7-february-edition.html Proposed new defaults: {code} innodb_checksum_algorithm = CRC32 innodb_purge_threads = 4 innodb_strict_mode = ON innodb_buffer_pool_dump_at_shutdown = ON innodb_buffer_pool_load_at_startup = ON innodb_buffer_pool_dump_pct = 25 innodb_file_format = Barracuda innodb_large_prefix = ON sync_binlog = 1 (Current default: 0) slave_net_timeout = 60 (Current default: 3600) binlog_format = MIXED # (was ROW) MIXED format will be safer in traditional replication scenarios where master's still running with STMT. log_warnings = 2 (Current default: 1) log_slow_admin_statements = ON (Current default: OFF) log_slow_slave_statements = ON (Current default: OFF) log_queries_not_using_indexes = ON (Current default: OFF) min-examined-row-limit = 1000 (Current default: 0) query_cache_strip_comments = ON (Current default: OFF) TO BE DISCUSSED --------------- default_tmp_storage_engine = INNODB (Current default: Empty) innodb_log_compressed_pages = ON (It was turned back off in 10.1.2) table_definition_cache = -1 (autosized; Current default: 400) long-query-time = 2 (Current default: 10.0 group_concat_max_len = 1M (Current default: 1K) max_allowed_packet = 16M (Current default: 4M) innodb_autoinc_lock_mode = 2 (Required for Galera; Current default: 1) innodb_log_file_size = 128M (Current default: 48M) binlog_annotate_row_events = ON (Current default: OFF) replicate_annotate_row_events = ON (Current default: OFF) innodb_stats_traditional = OFF (Current default: ON) use_stat_tables = complementary (Current default: never) histogram_size = 255 (Current default: 0) aria_recover = QUICK, BACKUP (or FORCE, BACKUP; Current default: NORMAL) myisam_recover_options = QUICK, BACKUP (or FORCE, BACKUP; Current default: OFF) lower_case_table_names = 1 updatable_views_with_limit = OFF (Current default: ON) optimizer_switch = ?? sql_mode = ?? (Current default: NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION) lock_wait_timeout = ?? (Current default: 1 year) * sync_binlog currently set to 1 (from 0), Should we set it even higher? * Performance schema variables? * Disable query cache? {code} |
Poor MySQL has received some negative feedback over the years ^1^ ^2^. As entertaining as it is watching and listening to developers struggle and whine, I think it's about time we changed some of the defaults and made the config easier to understand.
Oracle are working on changing more defaults in 5.7 ^3^ ^4^ ^5^, I think we should too. Something else they have done, is to radically change the simplicity of the default server config file, /etc/my.cnf: https://raw.githubusercontent.com/mysql/mysql-server/5.7/support-files/my-default.cnf.sh It's quite clear there, the sql_mode has been set, which will satisfy most developers and users looking for an ACID compliant database with little tweaking, and a rough note on increasing or decreasing RAM needed for InnoDB. MariaDB now probably needs something similar for Galera, CONNET and TokuDB. # http://sql-info.de/mysql/gotchas.html # http://blog.ionelmc.ro/2014/12/28/terrible-choices-mysql/ # http://www.tocker.ca/2015/01/23/proposal-to-change-additional-defaults-in-mysql-5-7.html # http://www.tocker.ca/2015/01/14/proposal-to-change-replication-and-innodb-settings-in-mysql-5-7.html # http://www.tocker.ca/2015/02/24/proposal-to-change-additional-defaults-in-mysql-5-7-february-edition.html Proposed new defaults: {code} innodb_checksum_algorithm = CRC32 innodb_purge_threads = 4 innodb_strict_mode = ON innodb_buffer_pool_dump_at_shutdown = ON innodb_buffer_pool_load_at_startup = ON innodb_buffer_pool_dump_pct = 25 innodb_file_format = Barracuda innodb_large_prefix = ON sync_binlog = 1 (Current default: 0) slave_net_timeout = 60 (Current default: 3600) binlog_format = MIXED # (was ROW) MIXED format will be safer in traditional replication scenarios where master's still running with STMT. log_warnings = 2 (Current default: 1) log_slow_admin_statements = ON (Current default: OFF) log_slow_slave_statements = ON (Current default: OFF) log_queries_not_using_indexes = ON (Current default: OFF) min-examined-row-limit = 1000 (Current default: 0) query_cache_strip_comments = ON (Current default: OFF) TO BE DISCUSSED --------------- default_tmp_storage_engine = INNODB (Current default: Empty) innodb_log_compressed_pages = ON (It was turned back off in 10.1.2) table_definition_cache = -1 (autosized; Current default: 400) long-query-time = 2 (Current default: 10.0 group_concat_max_len = 1M (Current default: 1K) max_allowed_packet = 16M (Current default: 4M) innodb_autoinc_lock_mode = 2 (Required for Galera; Current default: 1) innodb_log_file_size = 128M (Current default: 48M) binlog_annotate_row_events = ON (Current default: OFF) replicate_annotate_row_events = ON (Current default: OFF) innodb_stats_traditional = OFF (Current default: ON) use_stat_tables = complementary (Current default: never) histogram_size = 255 (Current default: 0) aria_recover = QUICK, BACKUP (or FORCE, BACKUP; Current default: NORMAL) myisam_recover_options = QUICK, BACKUP (or FORCE, BACKUP; Current default: OFF) lower_case_table_names = 2 updatable_views_with_limit = OFF (Current default: ON) optimizer_switch = ?? sql_mode = ?? (Current default: NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION) lock_wait_timeout = ?? (Current default: 1 year) * sync_binlog currently set to 1 (from 0), Should we set it even higher? * Performance schema variables? * Disable query cache? {code} |
Description |
Poor MySQL has received some negative feedback over the years ^1^ ^2^. As entertaining as it is watching and listening to developers struggle and whine, I think it's about time we changed some of the defaults and made the config easier to understand.
Oracle are working on changing more defaults in 5.7 ^3^ ^4^ ^5^, I think we should too. Something else they have done, is to radically change the simplicity of the default server config file, /etc/my.cnf: https://raw.githubusercontent.com/mysql/mysql-server/5.7/support-files/my-default.cnf.sh It's quite clear there, the sql_mode has been set, which will satisfy most developers and users looking for an ACID compliant database with little tweaking, and a rough note on increasing or decreasing RAM needed for InnoDB. MariaDB now probably needs something similar for Galera, CONNET and TokuDB. # http://sql-info.de/mysql/gotchas.html # http://blog.ionelmc.ro/2014/12/28/terrible-choices-mysql/ # http://www.tocker.ca/2015/01/23/proposal-to-change-additional-defaults-in-mysql-5-7.html # http://www.tocker.ca/2015/01/14/proposal-to-change-replication-and-innodb-settings-in-mysql-5-7.html # http://www.tocker.ca/2015/02/24/proposal-to-change-additional-defaults-in-mysql-5-7-february-edition.html Proposed new defaults: {code} innodb_checksum_algorithm = CRC32 innodb_purge_threads = 4 innodb_strict_mode = ON innodb_buffer_pool_dump_at_shutdown = ON innodb_buffer_pool_load_at_startup = ON innodb_buffer_pool_dump_pct = 25 innodb_file_format = Barracuda innodb_large_prefix = ON sync_binlog = 1 (Current default: 0) slave_net_timeout = 60 (Current default: 3600) binlog_format = MIXED # (was ROW) MIXED format will be safer in traditional replication scenarios where master's still running with STMT. log_warnings = 2 (Current default: 1) log_slow_admin_statements = ON (Current default: OFF) log_slow_slave_statements = ON (Current default: OFF) log_queries_not_using_indexes = ON (Current default: OFF) min-examined-row-limit = 1000 (Current default: 0) query_cache_strip_comments = ON (Current default: OFF) TO BE DISCUSSED --------------- default_tmp_storage_engine = INNODB (Current default: Empty) innodb_log_compressed_pages = ON (It was turned back off in 10.1.2) table_definition_cache = -1 (autosized; Current default: 400) long-query-time = 2 (Current default: 10.0 group_concat_max_len = 1M (Current default: 1K) max_allowed_packet = 16M (Current default: 4M) innodb_autoinc_lock_mode = 2 (Required for Galera; Current default: 1) innodb_log_file_size = 128M (Current default: 48M) binlog_annotate_row_events = ON (Current default: OFF) replicate_annotate_row_events = ON (Current default: OFF) innodb_stats_traditional = OFF (Current default: ON) use_stat_tables = complementary (Current default: never) histogram_size = 255 (Current default: 0) aria_recover = QUICK, BACKUP (or FORCE, BACKUP; Current default: NORMAL) myisam_recover_options = QUICK, BACKUP (or FORCE, BACKUP; Current default: OFF) lower_case_table_names = 2 updatable_views_with_limit = OFF (Current default: ON) optimizer_switch = ?? sql_mode = ?? (Current default: NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION) lock_wait_timeout = ?? (Current default: 1 year) * sync_binlog currently set to 1 (from 0), Should we set it even higher? * Performance schema variables? * Disable query cache? {code} |
Poor MySQL has received some negative feedback over the years ^1^ ^2^. As entertaining as it is watching and listening to developers struggle and whine, I think it's about time we changed some of the defaults and made the config easier to understand.
Oracle are working on changing more defaults in 5.7 ^3^ ^4^ ^5^, I think we should too. Something else they have done, is to radically change the simplicity of the default server config file, /etc/my.cnf: https://raw.githubusercontent.com/mysql/mysql-server/5.7/support-files/my-default.cnf.sh It's quite clear there, the sql_mode has been set, which will satisfy most developers and users looking for an ACID compliant database with little tweaking, and a rough note on increasing or decreasing RAM needed for InnoDB. MariaDB now probably needs something similar for Galera, CONNET and TokuDB. # http://sql-info.de/mysql/gotchas.html # http://blog.ionelmc.ro/2014/12/28/terrible-choices-mysql/ # http://www.tocker.ca/2015/01/23/proposal-to-change-additional-defaults-in-mysql-5-7.html # http://www.tocker.ca/2015/01/14/proposal-to-change-replication-and-innodb-settings-in-mysql-5-7.html # http://www.tocker.ca/2015/02/24/proposal-to-change-additional-defaults-in-mysql-5-7-february-edition.html Proposed new defaults: {code} innodb_autoinc_lock_mode = 2 (was: 1) innodb_buffer_pool_dump_at_shutdown = ON (was: OFF) innodb_buffer_pool_dump_pct = 25 (was: 100) innodb_buffer_pool_load_at_startup = ON (was: OFF) innodb_checksum_algorithm = CRC32 (was: INNODB) innodb_file_format = Barracuda (was: Antelope) innodb_file_format_max = Barracuda (was: Antelope) innodb_large_prefix = ON (was: OFF) innodb_log_compressed_pages = ON (was: OFF) innodb_purge_threads = 4 (was: 1) innodb_strict_mode = ON (was: OFF) binlog_annotate_row_events = ON (was: OFF) binlog_format = MIXED (was: STATEMENT) group_concat_max_len = 1M (was: 1025) lock_wait_timeout = 86400(1day)(was: 1year) log_slow_admin_statements = ON (was: OFF) log_slow_slave_statements = ON (was: OFF) log_warnings = 2 (was: 1) max_allowed_packet = 16M (was: 4M) replicate_annotate_row_events = ON (was: OFF) slave_net_timeout = 60 (was: 3600) sync_binlog = 1 (was: 0) aria_recover = FORCE, BACKUP (was: NORMAL) myisam_recover_options = FORCE, BACKUP (was: OFF) {code} |
Priority | Major [ 3 ] | Blocker [ 1 ] |
Link |
This issue relates to |
Link |
This issue relates to |
Link |
This issue relates to |
Link |
This issue relates to |
Sprint | 5.5.51 & 10.2.2, 10.2.2-1, 10.2.3-1, 10.2.3-2 [ 85, 89, 102, 105 ] | 5.5.51 & 10.2.2, 10.2.2-1, 10.2.3-1, 10.2.3-2, 10.0.28 [ 85, 89, 102, 105, 107 ] |
Rank | Ranked higher |
Sprint | 5.5.51 & 10.2.2, 10.2.2-1, 10.2.3-1, 10.2.3-2, 10.0.28 [ 85, 89, 102, 105, 107 ] | 5.5.51 & 10.2.2, 10.2.2-1, 10.2.3-1, 10.2.3-2, 10.1.19 [ 85, 89, 102, 105, 109 ] |
Rank | Ranked higher |
Link |
This issue relates to |
Sprint | 5.5.51 & 10.2.2, 10.2.2-1, 10.2.3-1, 10.2.3-2, 10.1.19 [ 85, 89, 102, 105, 109 ] | 5.5.51 & 10.2.2, 10.2.2-1, 10.2.3-1, 10.2.3-2, 10.2.4-1 [ 85, 89, 102, 105, 110 ] |
Rank | Ranked lower |
Link |
This issue relates to |
Sprint | 5.5.51 & 10.2.2, 10.2.2-1, 10.2.3-1, 10.2.3-2, 10.2.4-1 [ 85, 89, 102, 105, 110 ] | 5.5.51 & 10.2.2, 10.2.2-1, 10.2.3-1, 10.2.3-2, 10.2.4-2 [ 85, 89, 102, 105, 113 ] |
Rank | Ranked lower |
Link |
This issue relates to |
Sprint | 5.5.51 & 10.2.2, 10.2.2-1, 10.2.3-1, 10.2.3-2, 10.2.4-2 [ 85, 89, 102, 105, 113 ] | 5.5.51 & 10.2.2, 10.2.2-1, 10.2.3-1, 10.2.3-2, 10.2.4-3 [ 85, 89, 102, 105, 115 ] |
Rank | Ranked higher |
Sprint | 5.5.51 & 10.2.2, 10.2.2-1, 10.2.3-1, 10.2.3-2, 10.2.4-3 [ 85, 89, 102, 105, 115 ] | 5.5.51 & 10.2.2, 10.2.2-1, 10.2.3-1, 10.2.3-2, 10.2.4-4 [ 85, 89, 102, 105, 117 ] |
Rank | Ranked higher |
Sprint | 5.5.51 & 10.2.2, 10.2.2-1, 10.2.3-1, 10.2.3-2, 10.2.4-4 [ 85, 89, 102, 105, 117 ] | 5.5.51 & 10.2.2, 10.2.2-1, 10.2.3-1, 10.2.3-2, 10.2.4-4, 10.2.4-1 [ 85, 89, 102, 105, 117, 121 ] |
Rank | Ranked lower |
Link |
This issue relates to |
Link | This issue relates to MDEV-11592 [ MDEV-11592 ] |
Sprint | 5.5.51 & 10.2.2, 10.2.2-1, 10.2.3-1, 10.2.3-2, 10.2.4-4, 10.2.4-1 [ 85, 89, 102, 105, 117, 121 ] | 5.5.51 & 10.2.2, 10.2.2-1, 10.2.3-1, 10.2.3-2, 10.2.4-4, 10.2.4-1, 10.2.4-5 [ 85, 89, 102, 105, 117, 121, 125 ] |
Link | This issue relates to MDEV-11666 [ MDEV-11666 ] |
Link |
This issue relates to |
Link | This issue relates to MDEV-11691 [ MDEV-11691 ] |
Sprint | 5.5.51 & 10.2.2, 10.2.2-1, 10.2.3-1, 10.2.3-2, 10.2.4-4, 10.2.4-1, 10.2.4-5 [ 85, 89, 102, 105, 117, 121, 125 ] | 5.5.51 & 10.2.2, 10.2.2-1, 10.2.3-1, 10.2.3-2, 10.2.4-4, 10.2.4-1, 10.2.4-5, 10.0.29 [ 85, 89, 102, 105, 117, 121, 125, 128 ] |
Rank | Ranked higher |
Link |
This issue relates to |
Link | This issue relates to MDEV-11822 [ MDEV-11822 ] |
Labels | 10.2-rc |
Link |
This issue relates to |
Link | This issue relates to MDEV-11893 [ MDEV-11893 ] |
Link | This issue relates to MDEV-11892 [ MDEV-11892 ] |
Link | This issue relates to MDEV-11891 [ MDEV-11891 ] |
Link | This issue relates to MDEV-11890 [ MDEV-11890 ] |
Link | This issue relates to MDEV-11888 [ MDEV-11888 ] |
Link | This issue relates to MDEV-11876 [ MDEV-11876 ] |
Link | This issue relates to MDEV-11875 [ MDEV-11875 ] |
Link |
This issue relates to |
Link |
This issue relates to |
Link |
This issue relates to |
Link |
This issue relates to |
Component/s | Server [ 13907 ] | |
Fix Version/s | 10.2.4 [ 22116 ] | |
Fix Version/s | 10.2 [ 14601 ] | |
Resolution | Fixed [ 1 ] | |
Status | In Progress [ 3 ] | Closed [ 6 ] |
Link |
This issue is duplicated by |
Link |
This issue relates to |
Workflow | MariaDB v3 [ 62565 ] | MariaDB v4 [ 132526 ] |