Bug #80690 !include directive is ignored in my.cnf if it is last line in file

Submitted: 10 Mar 2016 14:50
Reporter: Andrii Nikitin Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Options Severity:S3 (Non-critical)
Version:5.6.27 OS:Windows
Assigned to: CPU Architecture:Any

[10 Mar 2016 14:50] Andrii Nikitin
Description:
!include directive is ignored in my.cnf if it is last line in file

How to repeat:
Following steps confirm when !include is ignored:

1. Create file extra.cnf with content:

[mysqld]
invalid-option

2. Append following line into my.cnf  (without newline character at the end):

!include /path/to/extra.cnf

3. Start mysqld server - observe no errors

4. Append newline character at the end of my.cnf

5. Re-start mysqld server - observe error : 

unknown option '--invalid-option'

Suggested fix:
!include directive should be processed even if it is not followed by newline character
[14 Mar 2016 8:30] Andrii Nikitin
Posted by developer:
 
It seems that the problem happens only on Windows, so changing platform accordingly. Sorry for confusion, if any.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.048 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
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.