简体   繁体   中英

How can I backup MySQL Connections on MySQLWorkBench?

I've been using MySQL WorkBench for so long on Mac OS X. I've been trying to save/backup all my host connections before I update MySQL WorkBench.

在此输入图像描述

Is there a way to do that ?

On your Mac, find the file ~/Library/Application Support/MySQL/Workbench/connections.xml

This XML file contains all the connection info, except for plaintext passwords (those are stored in the Keychain).


Re your comment:

I don't know why you need to delete the app. Just install the latest version over the old version. That's what I do, and what I assume everyone else does too.

You would not need to back up the connections.xml file unless you want to install MySQL Workbench on a different Macbook, and bring the connections to that new installation. But you'd need to enter the passwords again anyway.

To backup/restore connections you can use 'Backup Connections...'/'Restore Connections...' form Tools->Configuration menu.

在此输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM