File tree 1 file changed +13
-12
lines changed
1 file changed +13
-12
lines changed Original file line number Diff line number Diff line change 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:
4
5
#
5
- # [safe_mysqld ]
6
- # err- log=@localstatedir@/mysqld.log
6
+ # [mysqld ]
7
+ # log-error =@localstatedir@/mysqld.log
7
8
#
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:
11
12
#
12
13
# [mysqladmin]
13
14
# password = <secret>
14
15
# user= root
15
16
#
16
17
# where "<secret>" is the password.
17
18
#
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 !
20
21
21
22
@localstatedir@/mysqld.log {
22
23
# create 600 mysql mysql
23
24
notifempty
24
- daily
25
- rotate 3
25
+ daily
26
+ rotate 5
26
27
missingok
27
28
compress
28
29
postrotate
You can’t perform that action at this time.
0 commit comments