Buenos días. A ver si pueden ayudarme. Tengo en mi Etch un servidor mysql
que me genera los siguientes logs: /var/log# ls -l mysql* -rw-r----- 1 root
root 0 2009-09-09 09:42 mysql.err -rw-r----- 1 mysql
adm 0 2009-09-22 07:38 mysql.log -rw-r----- 1 root root 20
2009-09-21 07:36 mysql.log.1.gz -rw-r----- 1 root root 20
2009-09-20 07:36 mysql.log.2.gz -rw-r----- 1 root root 20
2009-09-19 07:36 mysql.log.3.gz -rw-r----- 1 root root 20
2009-09-18 07:35 mysql.log.4.gz -rw-r----- 1 root root 20
2009-09-17 07:35 mysql.log.5.gz -rw-r----- 1 root root 20
2009-09-16 07:35 mysql.log.6.gz -rw-r----- 1 root root 20
2009-09-15 07:35 mysql.log.7.gz mysql: total 1844 -rw-rw---- 1 root root
1616 2009-09-12 07:35 mysql-bin.000616 -rw-rw---- 1 root
root 141 2009-09-13 07:37 mysql-bin.000617 -rw-rw---- 1 root
root 141 2009-09-14 07:35 mysql-bin.000618 -rw-rw---- 1 root root
3893 2009-09-15 07:35 mysql-bin.000619 -rw-rw---- 1 root root
4744 2009-09-16 07:35 mysql-bin.000620 -rw-rw---- 1 root root
6357 2009-09-17 07:35 mysql-bin.000621 -rw-rw---- 1 root root
1350 2009-09-18 07:35 mysql-bin.000622 -rw-rw---- 1 root root
3561 2009-09-19 07:36 mysql-bin.000623 -rw-rw---- 1 root
root 141 2009-09-20 07:36 mysql-bin.000624 -rw-rw---- 1 root
root 141 2009-09-21 07:36 mysql-bin.000625 -rw-rw---- 1 root root 78877
2009-09-22 07:38 mysql-bin.000626 -rw-rw---- 1 root
root 352 2009-09-21 07:36 mysql-bin.index -rw-r----- 1 mysql
adm 0 2009-09-22 07:38 mysql.log -rw-r----- 1 root root 309376
2009-09-22 07:38 mysql.log.1.gz -rw-r----- 1 root root 137246
2009-09-21 07:36 mysql.log.2.gz -rw-r----- 1 root root 276253
2009-09-20 07:36 mysql.log.3.gz -rw-r----- 1 root root 298745
2009-09-19 07:36 mysql.log.4.gz -rw-r----- 1 root root 248259
2009-09-18 07:35 mysql.log.5.gz -rw-r----- 1 root root 223874
2009-09-17 07:35 mysql.log.6.gz -rw-r----- 1 root root 215338
2009-09-16 07:35 mysql.log.7.gz -Fijense en que, por un lado, me genera por duplicado los
.gz, tanto en /var/log/ como en /var/log/mysql/. ¿Es un error? ¿Cómo puedo
evitarlo? -Por otra parte, si abro con el comando mysqlbinlog el
último binlog (delete, insert, …) sólo me llegan hasta las 7:30 de esta
mañana, y son más de las 11:00. ¿Por qué? ¿Dónde está el binlog de las 7:30
hasta ahora? -Y para finalizar, tanto mysql.log como mysql.err están
vaciós con lo cual no puedo ver el registro general de consultas (selects,
…) ¿Por qué, si lo tengo habilitado en el my.cnf? Les dejo mi my.cnf: # * Logging and Replication # # Both location gets rotated by the
cronjob. # Be aware that this log type is a
performance killer. log
= /var/log/mysql/mysql.log # # Error logging goes to syslog. This is a
Debian improvement :) # # Here you can see queries with especially
long duration #log_slow_queries
= /var/log/mysql/mysql-slow.log #long_query_time = 2 #log-queries-not-using-indexes # # The following can be used as easy to
replay backup logs or for replication. #server-id
= 1 log_bin
= /var/log/mysql/mysql-bin.log # WARNING: Using expire_logs_days without
bin_log crashes the server! See README.Debian! expire_logs_days
= 10 max_binlog_size
= 500M #binlog_do_db
= include_database_name #binlog_ignore_db
= include_database_name |