MySQL Forums
Forum List  »  Newbie

Re: Mysql does not write to error log.
Posted by: Denis Kljuikov
Date: July 27, 2015 11:15AM

The log-error entry is in the [mysqld] section of my.cnf? - Yes


mysql> select @@log_error;
+----------------------------+
| @@log_error |
+----------------------------+
| /home/logs/mysql/error.log |
+----------------------------+
1 row in set (0.00 sec)


Did you try removing the filename spec from my.cnf? In that case, the MySQL server will write to <i>hostname</i>.err. - No. I try to understand why mysql creates this log, but does not write to it?

For example. I can delete file. Execute flush logs and mysql will create this file again. Also mysql does not write to this file at startup. It is clean after startup and after an error. mysql just creates it and does not write to it.

Thanks,
Denis

Options: ReplyQuote


Subject
Written By
Posted
Re: Mysql does not write to error log.
July 27, 2015 11:15AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.