Hallo,

in meiner my.cnf stehen u. a. zwei Zeilen:
Code:
log-slow-queries
slow_query_log_file = /var/log/mysql/log-slow-queries.log
Beim Restart der Datenbank spuckt das Logfile von mysqld folgendes aus:
Code:
/usr/sbin/mysqld: File '/var/log/mysql/log-slow-queries.log' not found (Errcode: 13)
130114 18:20:51 [ERROR] Could not use /var/log/mysql/log-slow-queries.log for logging (error 13). Turning logging off for the whole duration of the MySQL server process. To turn it on again: fix the cause, shutdown the MySQL server and restart it.
Allerdings liegt die Datei dort, ist aber leer:
Code:
-rwx------ 1 mysql mysql 0  4. Jan 23:01 /var/log/mysql/log-slow-queries.log
Schau ich mir die global gesetzten Variablen an, dann erhalte ich zwei Einträge:
Code:
| slow_query_log                          | ON                                                                                        |
| slow_query_log_file                     | /var/log/mysql/log-slow-queries.log                                                       |
Stattdessen werden die langsamen Abfragen aber nach
Code:
-rw-rw---- 1 mysql mysql 90565 14. Jan 18:12 mysqld-slow.log
geschrieben. Warum?

Danke

michel_vaclav