/etc/logrotate.d/mariadb - CentOS Linux 7

This is the default example configuration of mariadb provided by MariaDB. This config file was generated by MariaDB running on CentOS 7.

It is located under: /etc/logrotate.d/mariadb

    # This logname can be set in /etc/my.cnf
# by setting the variable "log-error"
# in the [mysqld] section as follows:
#
# [mysqld]
# log-error=/var/log/mariadb/mariadb.log
#
# If the root user has a password you have to create a
# /root/.my.cnf configuration file with the following
# content:
#
# [mysqladmin]
# password = <secret> 
# user= root
#
# where "<secret>" is the password. 
#
# ATTENTION: This /root/.my.cnf should be readable ONLY
# for root !

#/var/log/mariadb/mariadb.log {
#        create 640 mysql mysql
#        notifempty
#        daily
#        rotate 3
#        missingok
#        compress
#    postrotate
#	# just if mysqld is really running
#	if test -x /usr/bin/mysqladmin && \
#	   /usr/bin/mysqladmin ping &>/dev/null
#	then
#	   /usr/bin/mysqladmin flush-logs
#	fi
#    endscript
#}

    
  

Config Details

Location
/etc/logrotate.d/mariadb
Operating system
CentOS Linux 7
Length
36 lines
MD5 checksum
925a9863438a926a89fc39d90d3e5a09

Usage

Download the raw file with wget or curl

Wget

wget -O mariadb.example http://exampleconfig.com/static/raw/mariadb/centos7/etc/logrotate.d/mariadb

cURL

curl http://exampleconfig.com/static/raw/mariadb/centos7/etc/logrotate.d/mariadb > mariadb.example