How do I configure MariaDB to use a different error log location?

Responsive Ad Header

Question

Grade: Education Subject: Support
How do I configure MariaDB to use a different error log location?
Asked by:
65 Viewed 65 Answers

Answer (65)

Best Answer
(436)
To change the error log location, you need to modify the `log_error` variable in the MariaDB configuration file, typically `my.cnf` or `my.ini`. Find the `[mysqld]` section and add or modify the line: `log_error = /path/to/your/desired/error.log`. After modifying the configuration file, restart the MariaDB server for the changes to take effect: `sudo systemctl restart mariadb` or the appropriate command for your Linux distribution.