MySQL Forums
Forum List  »  MySQL Workbench

Re: Import connections with script
Posted by: Mike Lischke
Date: January 25, 2016 02:34AM

Hi,

there is no scriptable interface to manipulate connections in MySQL Workbench, but the connections are stored in a simple xml file (connections.xml) in the WB data directory (see help menu for log folder and go up one level to open it).

You could directly manipulate this file, but make sure WB is not running while doing that or it will overwrite your changes. Use the existing entries to see how a connection entry has to look like. Best is probably you create a connection once manually and copy out the generated xml element and use this (with adjusted values) for automatic creation.

Mike

Mike Lischke, MySQL Developer Tools
Oracle Corporation

MySQL Workbench on Github: https://github.com/mysql/mysql-workbench
On Twitter: https://twitter.com/MySQLWorkbench
On Slack: mysqlcommunity.slack.com (#workbench)
Report bugs to http://bugs.mysql.com
MySQL documentation can be found here: http://dev.mysql.com/doc/refman/8.0/en/

Options: ReplyQuote


Subject
Views
Written By
Posted
1313
January 21, 2016 07:48AM
Re: Import connections with script
2491
January 25, 2016 02:34AM
764
January 27, 2016 08:32AM
676
February 04, 2016 01:33PM
633
February 04, 2016 02:09PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.