Subversion Repositories ALCASAR

Rev

Rev 426 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 426 Rev 958
1
# This logname can be set in /etc/my.cnf
1
# This logname can be set in /etc/my.cnf
2
# by setting the variable "err-log"
2
# by setting the variable "err-log"
3
# in the [safe_mysqld] section as follows:
3
# in the [safe_mysqld] section as follows:
4
#
4
#
5
# [safe_mysqld]
5
# [safe_mysqld]
6
# err-log=/var/lib/mysql/mysqld.log
6
# err-log=/var/lib/mysql/mysqld.log
7
#
7
#
8
# If the root user has a password you have to create a
8
# If the root user has a password you have to create a
9
# /root/.my.cnf configuration file with the following
9
# /root/.my.cnf configuration file with the following
10
# content:
10
# content:
11
#
11
#
12
# [mysqladmin]
12
# [mysqladmin]
13
# password = <secret> 
13
# password = <secret> 
14
# user= root
14
# user= root
15
#
15
#
16
# where "<secret>" is the password. 
16
# where "<secret>" is the password. 
17
#
17
#
18
# ATTENTION: This /root/.my.cnf should be readable ONLY
18
# ATTENTION: This /root/.my.cnf should be readable ONLY
19
# for root !
19
# for root !
20
 
20
 
21
/var/log/mysqld/mysqld.log {
21
/var/log/mysqld/mysqld.log {
22
        # create 600 mysql mysql
22
        # create 600 mysql mysql
23
        notifempty
23
        notifempty
24
	daily
24
	daily
25
        rotate 31
25
        rotate 31
26
	dateext
26
	dateext
27
        missingok
27
        missingok
28
        compress
28
        compress
29
    postrotate
29
    postrotate
30
	# just if mysqld is really running
30
	# just if mysqld is really running
31
	if test -x /usr/bin/mysqladmin && \
31
	if test -x /usr/bin/mysqladmin && \
32
	   /usr/bin/mysqladmin ping &>/dev/null
32
	   /usr/bin/mysqladmin ping &>/dev/null
33
	then
33
	then
34
	   /usr/bin/mysqladmin flush-logs
34
	   /usr/bin/mysqladmin flush-logs
35
	fi
35
	fi
36
    endscript
36
    endscript
37
}
37
}
38
 
38