It is not only the MariaDB/MySQL config which limits the number of opened files - it is also the OS potentially limiting them and its limit is stronger (the my.cnf can eventually further limit the OS restriction but not loosen it). So if you have for example 5000 OS limit and 200000 my.cnf...