Create MySQL Workbench query plan image from command line / terminal

329 views Asked by At

Is there a way to create MySQL Workbench query plan image from command line or terminal and save it as an image something like this?

enter image description here

I checked the MySQL Workbench documentation here, https://dev.mysql.com/doc/workbench/en/wb-command-line-options.html. But don't see any such option. So, is there a hack or even a separate tool to create this image? Any help on this would be greatly appreciated.

1

There are 1 answers

0
Mike Lischke On

There is no such option in MySQL Workbench. The tool is a GUI application and as such not well suited for command line work. Maybe you can find a tool that can take the JSON output of EXPLAIN and builds a graphic from that.