To enable Error Log in MariaDB, you must change the following modification in my.ini. First find the my.ini and add the following code in Then Save the my.ini file and restart the mariadb or mysql server To Restart MYSQL or MariaDB Server