Bug #60780 | Execute SQL File... doesn't work for big scripts | ||
---|---|---|---|
Submitted: | 6 Apr 2011 14:07 | Modified: | 27 Jul 2012 8:48 |
Reporter: | Thomas Devos | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Workbench: SQL Editor | Severity: | S1 (Critical) |
Version: | 5.2.33 | OS: | Windows (Seven) |
Assigned to: | CPU Architecture: | Any |
[6 Apr 2011 14:07]
Thomas Devos
[6 Apr 2011 14:08]
Thomas Devos
My error is : "error : bad location"
[7 Apr 2011 1:26]
MySQL Verification Team
Thank you for the bug report. That was a restore operation of a database what you tried with the sql file?. Thanks.
[7 Apr 2011 9:01]
Thomas Devos
Thanks for your reaction. It's a file who create tables and insert datas (very much datas). In fact, i have a big database for my website and sometimes import/export from internet to my localdatabase. But maybe the file is too big ? Another error came to me : "ERROR OPENING FILR C:/.../myFile.sql Could not allocate 268435456 bytes to read file" is the file too big ?
[7 Apr 2011 17:12]
Alfredo Kojima
That is a little big, yes. Please try restoring using the File -> Execute SQL File... menu item instead of opening it in the editor? This is a duplicate of bug #55312
[8 Apr 2011 7:53]
Thomas Devos
Yes, it's what i do ! For the moment, i use dos command prompt but no so easy.
[8 Apr 2011 13:22]
Alfredo Kojima
Sorry, I misunderstood the report then. In this case, this is not a duplicate, but a separate issue. The problem is probably that your file is too big, we have plans for changing the implementation of the command for executing big files, so I'll leave this verified and change the synopsis. Please keep using the command line client as you are, for now.
[8 Jun 2011 20:04]
Adrian Sta„czak
I fear it is not the cause. I have the exact same problem, while my file is only 32kb.
[8 Jun 2011 20:07]
Adrian Sta„czak
Executing the file trough command line client goes correctly. Throws 2 errors, one is a case of being unable to create a new user and another I cannot see because there are too many messages in the command line to display it. Thus I wanted to do it trough the Workbench to use it's output pane.
[8 Jun 2011 20:09]
Adrian Sta„czak
Sorry for writing too many messages but I click submit too early. After clicking Execute SQL file Workbench simply seems to go into an endless loop and freezes.
[8 Jun 2011 20:14]
Alfredo Kojima
Adrian, your bug sounds different. Please file a new report with the file that causes the problem.
[27 Jul 2012 8:48]
Philip Olson
Fixed as of Workbench 5.2.41, and here's the changelog entry: Loading large files (over 100MB) using "File", "Open SQL Script..." would fail to load the script, and throw an out of memory exception while halting operation. Now, MySQL Workbench warns users if a file exceeding 100MB is attempted to be loaded, and no longer crashes when running out of memory but instead reports that the file was unable to be loaded.