System:
[root@mysql-1 ~]# cat /etc/redhat-release
AlmaLinux release 8.6 (Sky Tiger)
[root@mysql-1 ~]# mysql -V
mysql Ver 15.1 Distrib 10.5.16-MariaDB, for Linux (x86_64) using readline 5.1
/etc/my.cnf.d/server.cnf:
[mariadb] log_error=mariadb.err log_output=FILE general_log general_log_file=mariadb.log
Check the location:
ls -l /var/lib/mysql/