Skip to content

Commit 7ff336f

Browse files
author
Nirbhay Choubey
committed
Bug#12546842 - 61038: LOGROTATE SCRIPT IN SUPPORT-FILES
NEEDS AN UPDATE. Updated script and option names which got changed long back and are not valid now, along with some modifications in comments.
1 parent 34f1c41 commit 7ff336f

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

support-files/mysql-log-rotate.sh

+13-12
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,29 @@
1-
# This logname can be set in /etc/my.cnf
2-
# by setting the variable "err-log"
3-
# in the [safe_mysqld] section as follows:
1+
# The log file name and location can be set in
2+
# /etc/my.cnf by setting the "log-error" option
3+
# in either [mysqld] or [mysqld_safe] section as
4+
# follows:
45
#
5-
# [safe_mysqld]
6-
# err-log=@localstatedir@/mysqld.log
6+
# [mysqld]
7+
# log-error=@localstatedir@/mysqld.log
78
#
8-
# If the root user has a password you have to create a
9-
# /root/.my.cnf configuration file with the following
10-
# content:
9+
# In case the root user has a password, then you
10+
# have to create a /root/.my.cnf configuration file
11+
# with the following content:
1112
#
1213
# [mysqladmin]
1314
# password = <secret>
1415
# user= root
1516
#
1617
# where "<secret>" is the password.
1718
#
18-
# ATTENTION: This /root/.my.cnf should be readable ONLY
19-
# for root !
19+
# ATTENTION: The /root/.my.cnf file should be readable
20+
# _ONLY_ by root !
2021

2122
@localstatedir@/mysqld.log {
2223
# create 600 mysql mysql
2324
notifempty
24-
daily
25-
rotate 3
25+
daily
26+
rotate 5
2627
missingok
2728
compress
2829
postrotate

0 commit comments

Comments
 (0)