PHP 7.4.33
Preview: mysql-log-rotate Size: 1.98 KB
//usr/share/mysql-8.0/mysql-log-rotate

# Copyright (c) 2000, 2025, Oracle and/or its affiliates.
# 
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License, version 2.0,
# as published by the Free Software Foundation.
#
# This program is designed to work with certain software (including
# but not limited to OpenSSL) that is licensed under separate terms,
# as designated in a particular file or component or in included license
# documentation.  The authors of MySQL hereby grant you an additional
# permission to link the program and your derivative works with the
# separately licensed software that they have either included with
# the program or referenced in the documentation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License, version 2.0, for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA

# The log file name and location can be set in
# /etc/my.cnf by setting the "log-error" option
# in either [mysqld] or [mysqld_safe] section as
# follows:
#
# [mysqld]
# log-error=/var/lib/mysql/mysqld.log
#
# In case the root user has a password, then 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: The /root/.my.cnf file should be readable
# _ONLY_ by root !

/var/lib/mysql/mysqld.log {
        # create 600 mysql mysql
        notifempty
        daily
        rotate 5
        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
}

Directory Contents

Dirs: 25 × Files: 7

Name Size Perms Modified Actions
bulgarian DIR
- drwxr-xr-x 2025-04-15 05:07:39
Edit Download
charsets DIR
- drwxr-xr-x 2025-04-15 05:07:39
Edit Download
czech DIR
- drwxr-xr-x 2025-04-15 05:07:39
Edit Download
danish DIR
- drwxr-xr-x 2025-04-15 05:07:39
Edit Download
dutch DIR
- drwxr-xr-x 2025-04-15 05:07:39
Edit Download
english DIR
- drwxr-xr-x 2025-04-15 05:07:39
Edit Download
estonian DIR
- drwxr-xr-x 2025-04-15 05:07:39
Edit Download
french DIR
- drwxr-xr-x 2025-04-15 05:07:39
Edit Download
german DIR
- drwxr-xr-x 2025-04-15 05:07:39
Edit Download
greek DIR
- drwxr-xr-x 2025-04-15 05:07:39
Edit Download
hungarian DIR
- drwxr-xr-x 2025-04-15 05:07:39
Edit Download
italian DIR
- drwxr-xr-x 2025-04-15 05:07:39
Edit Download
japanese DIR
- drwxr-xr-x 2025-04-15 05:07:39
Edit Download
korean DIR
- drwxr-xr-x 2025-04-15 05:07:39
Edit Download
norwegian DIR
- drwxr-xr-x 2025-04-15 05:07:39
Edit Download
- drwxr-xr-x 2025-04-15 05:07:39
Edit Download
polish DIR
- drwxr-xr-x 2025-04-15 05:07:39
Edit Download
- drwxr-xr-x 2025-04-15 05:07:39
Edit Download
romanian DIR
- drwxr-xr-x 2025-04-15 05:07:39
Edit Download
russian DIR
- drwxr-xr-x 2025-04-15 05:07:39
Edit Download
serbian DIR
- drwxr-xr-x 2025-04-15 05:07:39
Edit Download
slovak DIR
- drwxr-xr-x 2025-04-15 05:07:39
Edit Download
spanish DIR
- drwxr-xr-x 2025-04-15 05:07:39
Edit Download
swedish DIR
- drwxr-xr-x 2025-04-15 05:07:39
Edit Download
ukrainian DIR
- drwxr-xr-x 2025-04-15 05:07:39
Edit Download
24.98 KB lrw-r--r-- 2025-03-31 08:19:27
Edit Download
3.91 KB lrw-r--r-- 2025-03-31 08:19:27
Edit Download
2.21 KB lrw-r--r-- 2025-03-31 09:52:52
Edit Download
615.57 KB lrw-r--r-- 2025-03-31 08:19:27
Edit Download
387.85 KB lrw-r--r-- 2025-03-31 08:19:27
Edit Download
1.98 KB lrw-r--r-- 2025-03-31 09:52:53
Edit Download
1.27 KB lrw-r--r-- 2025-03-31 09:52:52
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).