I think I found the source of the problem - the RPM script is not following the rule that when multiple instances of a given option are found, the last instance takes precedence.
My /etc/my.cnf file ends with an include directive
<!includedir /etc/mysql/conf.d/>
and the /etc/mysql/conf.d/001-basic-config.cnf file contains a duplicate datadir entry
I think I found the source of the problem - the RPM script is not following the rule that when multiple instances of a given option are found, the last instance takes precedence.
My /etc/my.cnf file ends with an include directive
<!includedir /etc/mysql/conf.d/>
and the /etc/mysql/ conf.d/ 001-basic- config. cnf file contains a duplicate datadir entry