Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
opt
/
mysql-5.5
/
share
/
mysql
/
//opt/mysql-5.5/share/mysql/mysql-log-rotate
# This logname can be set in /etc/my.cnf # by setting the variable "err-log" # in the [safe_mysqld] section as follows: # # [safe_mysqld] # err-log=/var/lib/mysql/mysqld.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/lib/mysql/mysqld.log { # create 600 mysql mysql notifempty daily rotate 3 missingok compress postrotate # just if mysqld is really running if test -x /opt/mysql-5.5.61-38.13-201809251718/bin/mysqladmin && \ /opt/mysql-5.5.61-38.13-201809251718/bin/mysqladmin ping &>/dev/null then /opt/mysql-5.5.61-38.13-201809251718/bin/mysqladmin flush-logs fi endscript }