MySQL Workbench – passwords not being saved in keychain

MySQLWorkbenchIf you have problem, that your MySQL Workbench can’t save passwords for your MySQL connections, try to start mysql-workbench in verbose mode. Maybe you will see a error:

$ mysql-workbench --verbose
** Message: Gnome keyring daemon seems to not be available. Stored passwords will be lost once quit
['un\\"o', 'do``s']
Ready.

Thread started

Make sure than gnome-keyring is installed:

sudo apt-get install gnome-keyring libpam-gnome-keyring

Try to start MySQL Workbench this way, this will fix your problem:

[ -z "$GNOME_KEYRING_CONTROL" ] \
  && export $(gnome-keyring-daemon --replace) \
  && mysql-workbench --verbose

This will work too:

GNOME_KEYRING_CONTROL=1 mysql-workbench --verbose

If you are using KDE, add this to /etc/pam.d/kdm. Similiar instructions you can find here.

@include gdm-password

You can add initialization of GNOME_KEYRING_CONTROL environment variable into your KDE Icon setting:

mysql-workbench-gnome-keyring-1

 

If you do everything correctly, you will see window from gnome-keyring when you start your MySQL Workbench program:

mysql-workbench-gnome-keyring-2

Enjoy!

mysql-workbench-intro