this is a stab in the dark since I am just starting to get into MariaDB configurations. As you know, MariaDB is a fork of MySQL.
With that said, is there a possibility of some conflicts between the two servers regarding option file settings? Also, do the two MySQL servers share the same minor version, e.g. 8.0.xx.
Once you have confirmed the versions, then you need to refer to some documentation relative to the version(s) you have that touch on Option Files. Or, maybe you are using the default settings, but that might be the place to start your sleuthing.
Keep us informed if you find the solution.
EDIT: here is a link to start with: https://dev.mysql.com/doc/refman/8.0/en/mysql-command-options.html