Current Path : /etc/ansible/templates/ |
Current File : //etc/ansible/templates/my80.cnf.j2 |
# {{ ansible_managed }} # Basic mysql configuration. Use bvat for advanced settings. # Parameters set by bvat are stored in /etc/mysql/conf.d/bvat.cnf. # If you want to change any parameter, you'll have to redefine it in /etc/mysql/conf.d/z_bx_custom.cnf # {%- set mid_version = mysql_mid_version|default('5') %} [client] port = 3306 socket = /var/lib/mysqld/mysqld.sock default-character-set = utf8 [mysqld_safe] nice = 0 socket = /var/lib/mysqld/mysqld.sock [mysqld] default-authentication-plugin=mysql_native_password # Basic mysql server configuration user = mysql port = 3306 basedir = /usr datadir = /var/lib/mysql socket = /var/lib/mysqld/mysqld.sock skip-external-locking default-storage-engine = innodb pid-file = /var/run/mysqld/mysqld.pid transaction-isolation = READ-COMMITTED max_allowed_packet = 16M myisam-recover-options = BACKUP explicit_defaults_for_timestamp = 1 sql_mode = "" expire_logs_days = 10 max_binlog_size = 100M # Cache parameters table_open_cache = 4096 thread_cache_size = 32 {% if mid_version == '5' %} key_buffer = 16M {% else %} key_buffer_size = 16M {% endif %} thread_stack = 512K join_buffer_size = 2M sort_buffer_size = 2M # Parameters for temporary tables tmpdir = /tmp max_heap_table_size = 32M tmp_table_size = 32M # InnoDB parameters innodb_file_per_table innodb_buffer_pool_size = 32M innodb_flush_log_at_trx_commit = 2 innodb_log_file_size = 64M innodb_flush_method = O_DIRECT innodb_strict_mode = OFF # Database charset parameters character-set-server = utf8 collation-server = utf8_unicode_ci init-connect = "SET NAMES utf8 COLLATE utf8_unicode_ci" skip-character-set-client-handshake skip-name-resolve [mysqldump] quick quote-names max_allowed_packet = 16M [mysql] [isamchk] key_buffer = 16M # Include additional settings !includedir /etc/mysql/conf.d/