MySQL Workbench Limit
Working with MySQL Workbench, I was always curious why you couldn’t run a script with a sourcing command, like source or \. command. It raises a 1064 error code, like the one shown in the illustration.
It turned out that there’s a pending feature request to add the ability to run a sourcing command like the following:
SOURCE c:\DATA\some_script.SQL |
or,
\. c:\DATA\some_script.SQL |
I added my business reason to the bug. Let’s hope the product managers add it quickly.

What about opening the script in wb and then running it? That should work.
Daniël van Eeden
2 Sep 12 at 11:40 pm
GREAT COMMENT! Here’s my answer and I added it as a business reason to the feature request.
Yes, you can run any number of scripts successfully. You just can’t create a script to run a series of scripts in a specific order. That leaves us with two options: write down the order during integration testing and hand the list to the DBA to run in stage or production; or consolidate the scripts into one master script.
The former places execution sequence at risk, and the latter diminishes identification of ownership when an error occurs. Once an organization gets beyond a single developer, multiple scripts evolve at every major and point release.
It’s my take that you should be able to wrap the execution sequence of scripts with a master script (one to bind them together and abstract their relationship sequence). That behavior currently doesn’t exist and from my perspective should exist.
maclochlainn
3 Sep 12 at 9:36 am
Why not use the command line client for running scripts? Everything you want to do would work.
Gavin Towey
3 Sep 12 at 9:49 pm
I do run things at the command line but don’t you think that MySQL Workbench should work the same way too?
maclochlainn
3 Sep 12 at 10:36 pm
You can’t do that in Workbench because it’s not a mysql server feature, it’s a mysql client feature.
What are the mysql client features? Well, check out the “help” in MySQL:
Sheeri K. Cabral
6 Sep 12 at 8:01 pm
Interesting comment? The blog post says it’s a design limitation and a there’s a new feature request. Your comment says it’s not a feature. Doesn’t that mean we concur? Do you disagree with adding the feature? If so, why?
It also appears to me that MySQL Workbench is a client not a server tool. I believe the “client” sourcing feature should be added to enhance MySQL Workbench’s utilities.
My supposition that it’s a client tool appears consistent with my understanding from the product manager, and the future direction which will add several server utilities to the next release. My guess is that the new menu options will still support network connections, and therefore fit within the current MySQL Workbench role as a client tool. If you have different information, please share it.
maclochlainn
7 Sep 12 at 10:22 am