Hi guys, I know there are already threads about this but somehow I kept on missing something. So I decided to put it here. I’m new to SSH and basically anything about this (but I know MySQL) so I’m really trying hard to understand these stuff lol. So please bear with me.
I wanted to access MySQL through Workbench. Here’s what I did so far:
# .....
! .....
! .....
[mysqld]
user = mysql
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
language = /usr/share/mysql/English
bind-address = 0.0.0.0
# skip-networking
| Field | Value |
|---|---|
| SSH Hostname | (Private IP Address, also tried the public IPv4) |
| SSH Username | root |
| SHH Password | (Droplet password) |
| SSH Key File | Exported OpenSSH key PuTTYGen with no Key passphrase |
| MySQL Hostname | 127.0.0.1 |
| MySQL Server Port | 3306 |
| Username | root |
| Password | (MySQL password) |
| Default Schema |
Using the public IP I get a fingerprint mismatch. Using the private IP, I get no response at all.
Feel free to ask more details. Enlighten me please!
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!
UP
Having the exact same problem, can only connect though putty. No Workbench access nor web app access
*I certainly don’t recommend root access from all hosts. *
If you’re using MySQL Workbench you can use:
**1) Enable local IP in “TRUSTED SOURCES” in your db cluster overview tab. ** 2) then once that’s successful, in MySQL Workbench use the default: a. connection method: Standard (TCP/IP) b. enter using all your db cluster connection details, download the CA and select “SSL CA File” c. click test connection and then save.
I hope this simple method helps someone else. SECURELY!
Any issues, respond here and I’ll try and help.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.