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.
If you don't want to restore GTIDs, pass –set-gtid-purged=OFF. To make a complete dump, pass –all-databases –triggers –routines –events. Whenever I dump the database manually I always set that flag to OFF.
Set the --set-gtid-purged option to AUTO (the default) or ON , to include information about executed transactions in the dump. Then use the mysql client to import the dump file on the target server.
I want to do exactly what you are looking for but in AWS RDS. so for your case what you must do is:
Update config file Update /etc/my.cnf
and add
[mysqldump] set-gtid-purged=OFF
No need to restart. If you dont have access to that .cnf file then update the update directadmin.conf with the following instruction:
extra_mysqldump_options=--set-gtid-purged=OFF
Is possible to run the following command in shell to achieve point number 2:
echo "extra_mysqldump_options=--set-gtid-purged=OFF" >> /usr/local/directadmin/conf/directadmin.conf service directadmin restart
MySQL Dump
MySQL enable/disable GTID (Global Transaction Ids)
MySQL extra options during DUMP
I've found a temporary solution for this on Linux/Ubuntu
Using windows, the path to the file will vary and I will update my answer if someone can give it to me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With