Q: How to set --set-gtid-purged=OFF as a default Export parameter in Mysql workbench?

b0uncyfr0 picture b0uncyfr0 · Oct 30, 2017 · Viewed 19k times · Source

Ive recently been playing with Mysql Workbench and the Export function has one little annoying feature that is not needed (by me of course). The set-gtid-purged function is set to AUTO by default in the GUI and it seems everytime you want to export without this parameter - you have to change it to OFF in Data Exports - Advanced options. To make it worse - the setting is not remembered.

Wanted to check if anyone has found a way to set it to OFF permanently for every DB/conenction i make?

I even checked the wb_options.xml file and the feature is set to OFF but this doesn't seem to stop it for some reason.

<value type="string" key="wb.admin.export.option:set-gtid-purged">OFF</value>

Thanks.

Answer

Mark Bucknell picture Mark Bucknell · Jan 10, 2018

I've found a temporary solution for this on Linux/Ubuntu

  1. Open /usr/lib/mysql-workbench/modules/wb_admin_export.py
  2. Search for "--set-gtid-purged=OFF"
  3. Delete or comment that line (#) and the if statement above it.
  4. Restart MySQL Workbench

Using windows, the path to the file will vary and I will update my answer if someone can give it to me.