Files
HomeServerCTs/CT-Files/mysql/Configs/my.cnf
Bram Prieshof 0d5ae2fc0f CT MySQL: Bumped mysql version
Bumped mysql to 8.4-lts
updated auth policy to `caching_sha2_password`
2024-05-08 23:33:05 +02:00

35 lines
1.0 KiB
INI

[mysqld]
disable_log_bin
# Use legacy authentication method
## mysql_native_password = ON
## authentication_policy = mysql_native_password
# Use recommended authentication method
authentication_policy = caching_sha2_password
user = mysql
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
lc-messages-dir = /usr/share/mysql
skip-external-locking
innodb_buffer_pool_size = 1G # (adjust value here to about, 50%-70% of total RAM)
innodb_log_file_size = 256M
innodb_flush_log_at_trx_commit = 1 # may change to 0 or 2
innodb_flush_method = O_DIRECT
bind-address = 0.0.0.0
key_buffer_size = 16M
max_allowed_packet = 16M
thread_stack = 192K
thread_cache_size = 8
myisam-recover-options = BACKUP
log-error = /var/log/mysql/error.log
expire_logs_days = 10
max_binlog_size = 100M
[client]
socket = /var/run/mysqld/mysqld.sock