Ubuntu 20.04 MySQL 8 - config for Bitrix

09.11.2021 | 1403 | SQL

An example of ready-made settings for MySQL version 8 DBMS for Bitrix on Ubuntu 20.04

nano /etc/my.cnf
[client] port = 3306 default-character-set = utf8  [mysqld_safe] nice = 0  [mysqld] default-authentication-plugin=mysql_native_password transaction-isolation = READ-COMMITTED  # 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  max_allowed_packet = 16M myisam-recover-options = BACKUP explicit_defaults_for_timestamp = 1 sql_mode = ""  binlog_expire_logs_seconds = 10800 max_binlog_size = 100M  # Cache parameters table_open_cache = 4096 thread_cache_size = 32 key_buffer_size = 16M 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 sync_binlog = 0  # Database charset parameters #default-character-set = utf8 #character-set-connection=utf8 character-set-server = utf8 collation-server = utf8_unicode_ci skip-character-set-client-handshake skip-name-resolve init-connect = 'SET NAMES utf8 COLLATE utf8_unicode_ci' init-connect='SET collation_connection = utf8_unicode_ci' init-connect='SET NAMES utf8'  [mysqldump] quick quote-names max_allowed_packet = 16M  [mysql] default-character-set=utf8  [isamchk] key_buffer = 16M  # Include additional settings !includedir /etc/mysql/conf.d/



← Back

Comments (0)