Bug #65073 | Mysql Embedded Server fails to start under Windows | ||
---|---|---|---|
Submitted: | 23 Apr 2012 12:04 | Modified: | 6 Jul 2012 17:51 |
Reporter: | Carlos Quiros | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Embedded Library ( libmysqld ) | Severity: | S3 (Non-critical) |
Version: | 5.5.23 | OS: | Windows (XP SP3+) |
Assigned to: | CPU Architecture: | Any | |
Tags: | libmysqld fails start windows |
[23 Apr 2012 12:04]
Carlos Quiros
[23 Apr 2012 14:51]
MySQL Verification Team
Are you tried the server_options: --defaults-file=path_for_my.ini ?.
[27 Apr 2012 15:41]
Carlos Quiros
Hi, I managed to load the embedded server. Under windows it is necessary to indicate basedir. Now another problem arises: the embedded server crashes when executing "LOAD DATA LOCAL INFILE 'C:/ILRI/GOBLET/tools/goblet-createdb/debug\test.csv' INTO TABLE testupload" The same code does not crash in Linux. Might this be related to bug 49694? http://bugs.mysql.com/bug.php?id=49694 Should I file a new bug report for this? Thanks.
[30 Apr 2012 12:51]
Carlos Quiros
I managed to trace the problem. It seem to happen when the infile in the call has c++ scape sequences. I construct the local infile instruction in the code appending an infile variable. In my test the local infile was: c:/temp/test.csv. Because Windows uses back-slash /t was detected by libmysqld as a horizontal tab. Using mingw the sql driver was able produce an error (file not found), using visual c++ 2010 libmysqld crash. I replaced all \ to / and all works fine. Carlos.
[3 Jun 2012 15:44]
Valeriy Kravchuk
So, do you still think there is some valid libmysqld-specific bug or documentation request here?
[4 Jun 2012 6:27]
Carlos Quiros
Hi, There are three issues in this bug report: 1. Under windows it is necessary to indicate basedir. This might require to update the documentation 2. Under Windows a string containing \t (for example c:\temp) is recognized as a horizontal tab. This is a bug that might need correction. 3. Due to 2. libmysqld crashes using nmake (Visual Studio) but not using mingw-make (mingw). It might be worthy to check this difference. Should I report each of them separately? Thanks, Carlos.
[5 Jun 2012 19:21]
Sveta Smirnova
Thank you for the feedback. Please provide complete test case for 2. Probably better to have separate bug and leave this for 1.
[6 Jul 2012 1:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
[6 Jul 2012 17:51]
Sveta Smirnova
As no feedback was provided verifying only basedir issue: no proper error message is printed into error output, therefore this should be either documented, or, better, fixed: accurate error message should be in the log file.