Bug #74720 | No warn/error message if "log-error" is misconfigured (causing latent log loss) | ||
---|---|---|---|
Submitted: | 6 Nov 2014 21:50 | Modified: | 6 Nov 2014 23:07 |
Reporter: | Tianyin Xu | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Logging | Severity: | S2 (Serious) |
Version: | 5.5, 5.6 | OS: | Linux |
Assigned to: | CPU Architecture: | Any | |
Tags: | log-error |
[6 Nov 2014 21:50]
Tianyin Xu
[6 Nov 2014 22:46]
MySQL Verification Team
Thank you for the bug report. Please check the Manual: http://dev.mysql.com/doc/refman/5.6/en/server-options.html#option_mysqld_log-error "Log errors and startup messages to this file. See Section 5.2.2, “The Error Log”. If you omit the file name, MySQL uses host_name.err. If the file name has no extension, the server adds an extension of .err. " The test case you provide: miguel@miguelpc ~ $ cat /home/miguel/dbs/5.6/my.cnf | grep log-error log-error="I_am_a_wrong_path" miguel@miguelpc ~ $ ls /home/miguel/dbs/5.6/data/*.err /home/miguel/dbs/5.6/data/I_am_a_wrong_path.err miguel@miguelpc ~ $
[6 Nov 2014 22:52]
Tianyin Xu
Hi Miguel, Sorry I guess I misled you by using a faked path ("I_am_a_wrong_path"). Surely I didn't use such a path in my system. By "a wrong path", I mean a path that cannot be accessed by MySQLd. In my case, it's a path that MySQLd does not have the privilege to access. You can use the path "/" if you do not start MySQLd with root. In this case, the .err won't be generated and nothing is reported. ~t
[6 Nov 2014 23:07]
MySQL Verification Team
Thank you for the feedback.