|
3 | 3 | # |
4 | 4 | # LANDODRUPALMYSQL8CNF |
5 | 5 |
|
6 | | -[mysqld] |
7 | | -# |
8 | | -# * Basic Settings |
9 | | -# |
10 | | -# Data is stored in a volume on the db container /sql |
11 | | -default-storage-engine = innodb |
| 6 | +[server] |
| 7 | +# Basic settings |
| 8 | +mysql_native_password=ON |
12 | 9 |
|
13 | | -# |
14 | | -# * Fine Tuning |
15 | | -# |
16 | | -key_buffer_size = 384M |
17 | | -max_allowed_packet = 32M |
18 | | -thread_stack = 400K |
19 | | -thread_cache_size = 8 |
20 | | -# This replaces the startup script and checks MyISAM tables if needed |
21 | | -# the first time they are touched |
22 | | -#max_connections = 100 |
23 | | -#table_cache = 64 |
24 | | -#thread_concurrency = 10 |
25 | | -read_rnd_buffer_size = 8M |
26 | | -myisam_sort_buffer_size = 64M |
27 | | -table_open_cache = 512 |
28 | | -sort_buffer_size = 2M |
| 10 | +# Character sets and SQL mode |
| 11 | +character_set_server = utf8mb4 |
| 12 | +collation_server = utf8mb4_general_ci |
| 13 | +sql_mode = ONLY_FULL_GROUP_BY,TRADITIONAL |
| 14 | + |
| 15 | +# Basic Tuning. |
| 16 | +max_connections = 500 |
| 17 | +connect_timeout = 5 |
| 18 | +wait_timeout = 28800 |
| 19 | +max_allowed_packet = 32M |
| 20 | +thread_cache_size = 128 |
| 21 | +sort_buffer_size = 4M |
| 22 | +bulk_insert_buffer_size = 16M |
| 23 | +tmp_table_size = 32M |
| 24 | +max_heap_table_size = 32M |
| 25 | + |
| 26 | +# MyISAM. |
| 27 | +myisam_recover_options = BACKUP |
| 28 | +key_buffer_size = 128M |
| 29 | +table_open_cache = 400 |
| 30 | +myisam_sort_buffer_size = 512M |
| 31 | +concurrent_insert = 2 |
29 | 32 | read_buffer_size = 2M |
| 33 | +read_rnd_buffer_size = 1M |
30 | 34 |
|
31 | | -# |
32 | | -# * Logging and Replication |
33 | | -# |
34 | | -# Both location gets rotated by the cronjob. |
35 | | -# Be aware that this log type is a performance killer. |
36 | | -# As of 5.1 you can enable the log at runtime! |
37 | | -#general_log_file = /src/.lando/log/mysql.log |
38 | | -#general_log = 1 |
39 | | -# |
40 | | -# Error logging goes to syslog due to /etc/mysql/conf.d/mysqld_safe_syslog.cnf. |
41 | | -# |
42 | | -# Here you can see queries with especially long duration |
43 | | -#log_slow_queries = /var/log/mysql/mysql-slow.log |
44 | | -#long_query_time = 2 |
45 | | -#log-queries-not-using-indexes |
46 | | -# |
47 | | -# The following can be used as easy to replay backup logs or for replication. |
48 | | -# note: if you are setting up a replication slave, see README.Debian about |
49 | | -# other settings you may need to change. |
50 | | -#server-id = 1 |
51 | | -#log_bin = /src/.lando/log/mysql-bin.log |
52 | | -expire_logs_days = 10 |
53 | | -max_binlog_size = 101M |
54 | | -#binlog_do_db = include_database_name |
55 | | -#binlog_ignore_db = include_database_name |
56 | | -# |
57 | | -# * InnoDB |
58 | | -# |
59 | | -# InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/. |
60 | | -# Read the manual for more InnoDB related options. There are many! |
61 | | -# |
62 | | -# Uncomment the following if you are using InnoDB tables |
63 | | -#innodb_data_file_path = ibdata1:2000M;ibdata2:10M:autoextend |
64 | | -#innodb_log_group_home_dir = C:\mysql\data/ |
65 | | -# You can set .._buffer_pool_size up to 50 - 80 % |
66 | | -# of RAM but beware of setting memory usage too high |
67 | | -#innodb_buffer_pool_size = 384M |
68 | | -#innodb_additional_mem_pool_size = 20M |
69 | | -# Set .._log_file_size to 25 % of buffer pool size |
70 | | -innodb_log_file_size = 100M |
71 | | -#innodb_log_buffer_size = 8M |
72 | | -innodb_flush_log_at_trx_commit = 0 |
73 | | -#innodb_lock_wait_timeout = 50 |
| 35 | +# InnoDB. |
| 36 | +default_storage_engine = InnoDB |
74 | 37 | innodb_buffer_pool_size = 384M |
75 | | -innodb_log_buffer_size = 4M |
76 | | -innodb_file_per_table = 1 |
77 | | -innodb_open_files = 256 |
78 | | -innodb_io_capacity = 512 |
79 | | -innodb_flush_method = O_DIRECT |
80 | | -innodb_thread_concurrency = 8 |
| 38 | +innodb_log_buffer_size = 8M |
| 39 | +innodb_file_per_table = 1 |
| 40 | +innodb_open_files = 400 |
| 41 | +innodb_io_capacity = 512 |
| 42 | +innodb_thread_concurrency = 0 |
| 43 | +innodb_read_io_threads = 16 |
| 44 | +innodb_write_io_threads = 16 |
| 45 | +innodb_flush_log_at_trx_commit = 0 |
| 46 | +innodb_max_dirty_pages_pct = 70 |
| 47 | +innodb_adaptive_hash_index = 0 |
| 48 | +innodb_use_native_aio = 0 |
81 | 49 | innodb_lock_wait_timeout = 127 |
82 | | -# |
83 | | -# * Security Features |
84 | | -# |
85 | | -# Read the manual, too, if you want chroot! |
86 | | -# chroot = /var/lib/mysql/ |
87 | | -# |
88 | | -# For generating SSL certificates I recommend the OpenSSL GUI "tinyca". |
89 | | -# |
90 | | -# ssl-ca=/etc/mysql/cacert.pem |
91 | | -# ssl-cert=/etc/mysql/server-cert.pem |
92 | | -# ssl-key=/etc/mysql/server-key.pem |
| 50 | + |
| 51 | +[client] |
| 52 | +default_character_set=utf8mb4 |
| 53 | +max_allowed_packet = 64M |
93 | 54 |
|
94 | 55 | [mysqldump] |
95 | 56 | quick |
96 | 57 | quote-names |
97 | | -max_allowed_packet = 32M |
98 | | - |
99 | | -[mysql] |
100 | | -#no-auto-rehash # faster start of mysql but no tab completion |
101 | | - |
102 | | -[isamchk] |
103 | | -key_buffer_size = 384M |
104 | | -sort_buffer_size = 256M |
105 | | -read_buffer = 2M |
106 | | -write_buffer = 2M |
0 commit comments