which operating system? how did you install the database-server in question ( system repo, mysql or maria site, compiled on your own ). Maybe this helps: https://www.psce.com/en/blog/2012/04/01/how-to-find-mysql-configuration-file/ ?