mysql-workbench and Gnome keyring daemon problem

56

Solution 1

The bug has been fixed in MySQL Workbench 6.2.5 / 6.3.0 releases. http://bugs.mysql.com/bug.php?id=74771

A possible workaround was to add this code to the top of file /usr/bin/mysql-workbench

export GNOME_KEYRING_CONTROL=1

This fix work on my ubuntu 14.04 with MySQL Workbench community 6.2.4 from deb http://repo.mysql.com/apt/ubuntu/ trusty workbench-6.2

Solution 2

There's a neat way I found, try this out.

Step 1: After installation unlock the workbench icon from launcher.

Step 2: press the super(window) button on your machine and search for workbench.

Step 3: Open workbench from the search results.

Step 4: Once open, lock the workbench icon to the launcher.

Voila !!! The keyring problem disappears.


Solution 3

This answer is a variation on the guest1000's solution, but I don't have enough rep to create a comment.

Anyway, adding the following to ~/.bashrc also works and seems cleaner to me:

export GNOME_KEYRING_CONTROL=$(ls -d /run/user/1000/keyring-*)

Solution 4

Add this code to the top of file /usr/bin/mysql-workbench

if ls /run/user/`id -u`/keyring-* 1> /dev/null 2>&1; then
    gnome-keyring-daemon > /dev/null
fi

export GNOME_KEYRING_CONTROL=$(ls -d /run/user/`id -u`/keyring-* | head -n 1)

It's not clean solution, but it works. No need of running workbench from terminal.

Solution 5

I did as follows i am using Workbench 6.3

sudo gedit /usr/bin/mysql-workbench

Just remove the comment

@line 5

WB_NO_GNOME_KEYRING=1 
Share:
56

Related videos on Youtube

Kyle Sharp
Author by

Kyle Sharp

Updated on September 18, 2022

Comments

  • Kyle Sharp
    Kyle Sharp almost 2 years

    I have created a 24 hour clock and I want to be able to reset it to 00:00:00 when the enter key is pressed. The clock itself functions fine but I am unable to include the reset functionality properly

    static void Main(string[] args)
        {
            Clock _clock = new Clock();
            ConsoleKeyInfo _key = Console.ReadKey();
    
            while (true)
            {
                Console.WriteLine(_clock.Time);
                _clock.Tick();
                System.Threading.Thread.Sleep(1000);
    
                if (_key.KeyChar == (char)13)
                {
                    _clock.Reset();
                }
         }
    
  • akikara
    akikara over 9 years
    no need to do as long as this. just type mysql-workbench from terminal
  • conceptdeluxe
    conceptdeluxe about 9 years
    Thanks for linking the issue and providing the workaround - this is the cleanest approach!
  • Anil Chahal
    Anil Chahal about 8 years
    Thanks.. Much Cleaner way to resolve this issue. Thanks a ton. :)
  • Matiss
    Matiss almost 8 years
    Using V6.3.6 error still persists
  • snorbi
    snorbi over 7 years
    Works but an explanation would be nice...
  • Dimitry K
    Dimitry K about 7 years
    Wow! I just realized that I always was launching workbench from dash (start menu) but not from launchbar. And now today after few years of using workbench launched it by clicking on launcher and got that problem!
  • Jamie Hutber
    Jamie Hutber over 6 years
    I am having this issue and its 2017
  • Kyle Sharp
    Kyle Sharp about 5 years
    Thanks. I had some problems with implementation, but I have solved it
  • Fahim
    Fahim about 4 years
    Thanks worked for me
  • guntbert
    guntbert almost 4 years
    I would be very surprised if you had encountered the very same problem from 2014.
  • Peter Chaula
    Peter Chaula over 3 years
    This is the most correct solution for snap users.
  • Peter Chaula
    Peter Chaula over 3 years
    The snap works, the issue is with permissions. Have a look at Amrit's answer