Bug #74732 | init_file use in windows needs ";" terminator | ||
---|---|---|---|
Submitted: | 7 Nov 2014 12:13 | Modified: | 7 Nov 2014 18:21 |
Reporter: | Keith Hollman | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Options | Severity: | S3 (Non-critical) |
Version: | 5.6.21 | OS: | Windows (W7) |
Assigned to: | CPU Architecture: | Any |
[7 Nov 2014 12:13]
Keith Hollman
[7 Nov 2014 18:21]
MySQL Verification Team
Hello Keith, Thank you for the bug report and test case. Observed similar behavior on Win7 with MySQL version 5.6.21. Thanks, Umesh
[7 Nov 2014 18:22]
MySQL Verification Team
// With 5.6.21 // my.ini [mysqld] . . init_file="D:\ushastry\mysql-5.6.21\init.sql" // init.sql use kh1 insert into test1 values (sysdate(),1),(sysdate(),2) insert into test1 values (sysdate(),3),(sysdate(),4) // Error log 2014-11-07 23:43:29 9372 [Note] Execution of init_file 'D:\ushastry\mysql-5.6.21\init.sql' started. ERROR: 1105 Bootstrap file error, return code (0). Nearest query: 'use kh1 insert into test1 values (sysdate(),1),(sysdate(),2) insert into test1 values (sysdate(),3),(sysdate(),4)' 2014-11-07 23:43:29 9372 [Note] Execution of init_file 'D:\ushastry\mysql-5.6.21\init.sql' ended. // After statement terminator such as ; used in init.sql 2014-11-07 23:47:42 9528 [Note] Execution of init_file 'D:\ushastry\mysql-5.6.21\init.sql' started. 2014-11-07 23:47:42 9528 [Note] Execution of init_file 'D:\ushastry\mysql-5.6.21\init.sql' ended. 2014-11-07 23:47:42 9528 [Note] bin\mysqld: ready for connections. mysql> select * from test1; +---------------------+--------+ | now | numero | +---------------------+--------+ | 2014-11-07 23:47:42 | 1 | | 2014-11-07 23:47:42 | 2 | | 2014-11-07 23:47:42 | 3 | | 2014-11-07 23:47:42 | 4 | +---------------------+--------+ 4 rows in set (0.00 sec) mysql> show variables like '%version%'; +-------------------------+---------------------------------------------------------+ | Variable_name | Value | +-------------------------+---------------------------------------------------------+ | innodb_version | 5.6.21 | | protocol_version | 10 | | slave_type_conversions | | | version | 5.6.21-enterprise-commercial-advanced | | version_comment | MySQL Enterprise Server - Advanced Edition (Commercial) | | version_compile_machine | x86_64 | | version_compile_os | Win64 | +-------------------------+---------------------------------------------------------+ 7 rows in set (0.00 sec)
[8 Apr 2015 7:17]
MySQL Verification Team
This bug appeared 5.6. 5.0,5.1,5.5 works well without delimiter. And it's not only window but also linux.