CertGrid CertGrid
Troubleshooting·MySQL

MySQL Persisted Configuration

`SET PERSIST` writes to a JSON file the server owns, and that value outranks your config file. This is why a setting can refuse to change no matter what you edit - and `variables_info` is the command that ends the argument.

Configuration Guide 13 of 45 Intermediate

Written against the versions above. `SET PERSIST` and `mysqld-auto.cnf` are 8.0+. On 5.7 the config file is the only durable mechanism, and this class of confusion does not exist.

Every command on this page ran on db-a01.
Server NameIP AddressOSRolesCPURAMHDD
db-a01192.168.0.81Ubuntu 26.04 LTSPrimary / Source / Replica Set Member 12 Core4 GB50 GB

Before you start

  1. Persist a value, and look at where it went

  2. Confirm it survives a restart

  3. Ask the server where each value came from

  4. Watch a config file lose

  5. Remove the persisted value and let the file take over

Official sources