hey there,
I installed the percona-server-server
package on Ubuntu 24. I first tried to set the config file before installing the package by using debconf setting the value for percona-server-server/data-dir
to /etc/mysql/my.cnf
But after templating the following things into the file I recognized using pt-config-diff
that my values arent recognized!
#
# KEEP YOUR PAWS OFF! THIS FILE IS MANAGED BY ANSIBLE! ANY CHANGES WILL BE OVERWRITTEN! COMMIT CHANGES TO https://bitbucket.org/customer/ansible
#
# You can easily add new config options to the dictionary,
# they will all be rendered (but not checked!). Make sure the options are correct
[mysqld]
basedir = /usr
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci
datadir = /var/lib/mysql
default-storage-engine = InnoDB
expire_logs_days = 7
innodb_buffer_pool_instances = 4
innodb_buffer_pool_size = 2G
innodb_file_per_table = 1
innodb_flush_log_at_trx_commit = 1
innodb_flush_method = O_DIRECT
innodb_log_file_size = 256M
innodb_open_files = 4000
join_buffer_size = 2M
log-error = /var/log/mysql/error.log
max_connections = 150
max_heap_table_size = 64M
pid-file = /var/run/mysqld/mysqld.pid
read_buffer_size = 2M
read_rnd_buffer_size = 4M
socket = /var/run/mysqld/mysqld.sock
sort_buffer_size = 2M
sync_binlog = 1
table_open_cache = 2000
tmp_table_size = 64M
tmpdir = /tmp
user = mysql
[22:40:15] root@customer-ansible: /etc/mysql # pt-config-diff localhost /etc/mysql/my.cnf
16 config differences
Variable customer-ansible /etc/mysql/mysql.conf.d/ow
========================= ========================= =========================
collation_server utf8mb4_0900_ai_ci utf8mb4_unicode_ci
expire_logs_days 0 7
innodb_buffer_pool_ins... 1 4
innodb_buffer_pool_size 134217728 2147483648
innodb_flush_method fsync O_DIRECT
innodb_log_file_size 50331648 268435456
join_buffer_size 262144 2097152
log_error stderr /var/log/mysql/error.log
max_connections 151 150
max_heap_table_size 16777216 67108864
pid_file /var/lib/mysql/medizin... /var/run/mysqld/mysqld...
read_buffer_size 131072 2097152
read_rnd_buffer_size 262144 4194304
sort_buffer_size 262144 2097152
table_open_cache 4000 2000
tmp_table_size 16777216 67108864
I also tried using a seperate override file in /etc/mysql/mysql.conf.d/own.cnf
but this also dosent have an effect after stopping and starting mysql. What am I doing wrong?
best, pscloud