Skip to content

Commit a984885

Browse files
committed
Fixes geerlingguy#139: Add configuration for innodb_large_prefix.
1 parent 346a17a commit a984885

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Slow query log settings. Note that the log file will be created by this role, bu
8484
mysql_table_open_cache: "256"
8585
[...]
8686

87-
The rest of the settings in `defaults/main.yml` control MySQL's memory usage. The default values are tuned for a server where MySQL can consume ~512 MB RAM, so you should consider adjusting them to suit your particular server better.
87+
The rest of the settings in `defaults/main.yml` control MySQL's memory usage and some other common settings. The default values are tuned for a server where MySQL can consume ~512 MB RAM, so you should consider adjusting them to suit your particular server better.
8888

8989
mysql_server_id: "1"
9090
mysql_max_binlog_size: "100M"

defaults/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,10 @@ mysql_max_connections: 151
5050
mysql_wait_timeout: 28800
5151

5252
# InnoDB settings.
53-
# Set .._buffer_pool_size up to 80% of RAM but beware of setting too high.
53+
mysql_innodb_large_prefix: "1"
54+
mysql_innodb_file_format: "barracuda"
5455
mysql_innodb_file_per_table: "1"
56+
# Set .._buffer_pool_size up to 80% of RAM but beware of setting too high.
5557
mysql_innodb_buffer_pool_size: "256M"
5658
# Set .._log_file_size to 25% of buffer pool size.
5759
mysql_innodb_log_file_size: "64M"

templates/my.cnf.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ max_connections = {{ mysql_max_connections }}
8282
wait_timeout = {{ mysql_wait_timeout }}
8383

8484
# InnoDB settings.
85+
innodb_large_prefix = {{ mysql_innodb_large_prefix }}
86+
innodb_file_format = {{ mysql_innodb_file_format }}
8587
innodb_file_per_table = {{ mysql_innodb_file_per_table }}
8688
innodb_buffer_pool_size = {{ mysql_innodb_buffer_pool_size }}
8789
innodb_log_file_size = {{ mysql_innodb_log_file_size }}

0 commit comments

Comments
 (0)