Hello, I have added my public key to the security menu. I can connect to my droplets via SSH, but I can’t connect MySQL to Workbench. How to connect MySQL to the workbench? Thank you
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hey!
If your SSH key is in a newer format not recognized by MySQL Workbench, you may need to convert it to an RSA key in PEM format or ensure you’re using the latest version of MySQL Workbench, as newer versions might have better support for various SSH key formats and authentication methods.
Can you confirm the version of MySQL Workbench that you are using and the SSH key format that you have?
Besides the unsupported authentication error, usually, the setup should be the following:
127.0.0.1
(assuming MySQL is running on the same server as the SSH service).3306
.Let me know how it goes!
Best,
Bobby
Heya @hilmihidayat,
By default connections to port 3306 or whatever you are using for MySQL are blocked, adding your public key to your
~/.ssh/auhtorized_keys
file won’t help with that.First SSH to your Droplet, allow your local’s IP address wheter on port 3306 or on the Whole Droplet. For instance, if we want to allow the IP 10.10.10.10 we use the command as,
Once that is done you should be able to connect to MySQL, using a MySQL user and password