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.