Install mysql offline.
Create /etc/my.cnf file manually.
Add some options in /etc/my.cnf.
Restart MySQL.
Login MySQL, options added does not take effect.
/etc/mysql/mysql.conf.d/mysqld.cnf is ok.
OS: Ubuntu 18.04, Ubuntu 20.04 MySQL: 8.0.27
There is no specified .cnf file.
[mysqld --verbose --help | grep -A 1 'Default options'] result is ok.
Default options are read from the following files in the given order: /etc/my.cnf /etc/mysql/my.cnf ~/.my.cnf/etc/my.cnf should be ok, but it's not.