Description:
MySQL Workbench will not connect to MySQL databases without gnome-keyring. This breaks it in any non-Gnome environment.
When attempting to connect to a MySQL database, I get the error:
Your connection attempt failed for user 'root' from your host to server at localhost:NULL:
The name org.freedesktop.secrets was not provided by any .service files.
Workaround to add:
export WB_NO_GNOME_KEYRING=1
or uncomment:
WB_NO_GNOME_KEYRING=1
to /usr/bin/mysql-workbench does not work.
This is a regression of:
https://bugs.mysql.com/bug.php?id=52866
https://bugs.mysql.com/bug.php?id=61170
https://bugs.mysql.com/bug.php?id=74771
And likely more.
How to repeat:
Install Workbench on any Linux system without Gnome or at least without gnome-keyring.
Try to run it and connect to a database.
Suggested fix:
Don't depend on gnome-keyring. It is nothing but trouble in my experience (hangs, hangs applications, doesn't work as expected).
Instead, handle the situation where gnome-keyring is not installed by either using a different keyring or by not saving passwords.
Provide a test case to prevent future regressions.