- Server operating system version
- Ubuntu 22.04.5 LTS
- Plesk version and microupdate number
- Plesk Obsidian 18.0.64 Update #1
We've got Plesk running on a server with Ubuntu 22.04.5 LTS.
I've followed the Plesk instructions here to customise various MariaDB configuration options. It say's on Ubuntu-based distributions to add your custom variables under the [mysqld] section of the /etc/mysql/my.cnf file, which is what I've done and it works ok.
However, twice in the last couple of months, this /etc/mysql/my.cnf file has got reset to default (all customisations removed) during the night when (presumably) Plesk is doing some updates. I can't find which update resets this file.
How do I stop this from happening? Is there another place I should make these customisations that won't get reset?
I notice at the top of the /etc/mysql/my.cnf file is the following comment:
Should I add my customisations to one of these locations instead? If so, which one?
Thank you.
I've followed the Plesk instructions here to customise various MariaDB configuration options. It say's on Ubuntu-based distributions to add your custom variables under the [mysqld] section of the /etc/mysql/my.cnf file, which is what I've done and it works ok.
However, twice in the last couple of months, this /etc/mysql/my.cnf file has got reset to default (all customisations removed) during the night when (presumably) Plesk is doing some updates. I can't find which update resets this file.
How do I stop this from happening? Is there another place I should make these customisations that won't get reset?
I notice at the top of the /etc/mysql/my.cnf file is the following comment:
Code:
# The MariaDB configuration file
#
# The MariaDB/MySQL tools read configuration files in the following order:
# 0. "/etc/mysql/my.cnf" symlinks to this file, reason why all the rest is read.
# 1. "/etc/mysql/mariadb.cnf" (this file) to set global defaults,
# 2. "/etc/mysql/conf.d/*.cnf" to set global options.
# 3. "/etc/mysql/mariadb.conf.d/*.cnf" to set MariaDB-only options.
# 4. "~/.my.cnf" to set user-specific options.
#
# If the same option is defined multiple times, the last one will apply.
Should I add my customisations to one of these locations instead? If so, which one?
Thank you.