Plesk for Linux
kb: technical
Applicable to:
- Plesk for Linux
Question
- MariaDB does not write log entries to the
/var/log/mariadb/mariadb.logfile of the Linux Plesk server.
Cause
The configuration file of MariaDB on the server /etc/my.cnf does not have a line within it that specifies what file the errors need to be recorded into.
Answer
In order to specify the /var/log/mariadb/mariadb.log as the location for MariaDB log entries, you must do the following:
- Connect to the server via SSH
-
Open
/etc/my.cnffor editing by using your favorite command-line text editor and add the following parameter under[mysqld]section:CONFIG_TEXT: log_error=/var/log/mariadb/mariadb.log
-
Restart MariaDB in order to apply the changes:
# systemctl restart mariadb
Comments
Please sign in to leave a comment.