One super annoying thing about various versions of Linux is the MySQL configuration file can be in many different locations. Not only can the file by in many different locations, but it may include other directories which have even more configuration files. Basically you end up in a maze looking for the settings. This can be tough under high pressure.
Here is the command to quickly find the mysqld section file:
mysql --verbose --help | grep -A 1 'Default options'
For example, on an Ubuntu 22.04 server with WHM installed, you’ll see this:
$ mysql --verbose --help | grep -A 1 'Default options' Default options are read from the following files in the given order: /etc/my.cnf /etc/mysql/my.cnf ~/.my.cnf
As you can see, you have to go through at least THREE different locations to see all the configuration options. Furthermore, one or two of two files might even include directories where additional configuration files are kept.
Good luck!