Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

successdav's avatar

Unable to connect to Mysql from mysql workbench

I am using windows, I install mysql suite and it comes with sql workbench.

I have spend the whole day trying to connect mysql workbench to my database. but no luck ye..

I am using forge to manage the application.

here is the error mysql workbench generates

The authenticity of host '149.28.72.25' cant be established. Server key fingerprint is 6cf3:bd... are you sure you want to continue connectin?

when I click ok, comes the next error

Could not connect to SSH Tunnel Access denied for 'none'. Authentcation that can continue: public key

Can you help? Please do

0 likes
4 replies
Cronix's avatar
Cronix
Best Answer
Level 67

You can only connect through a ssh tunnel using the public key that you create in Forge (Server Details/SSH Keys). You also have to do that in order to ssh into the box, so you may already have one set up.

I don't use workbench, but here's what I have to do with Navicat and Sequel Pro:

General Settings:
Hostname/IP: localhost (sequel pro required Forge server IP, navicat required localhost)
Port: 3306
username: forge
password: forge-password

SSH Settings:
Use SSH Tunnel: (check)
Hostname/IP: forge ip
port: 22
username: forge
authentication method: public key
private key: /path/to/key/on/your/computer/keyName_rsa
passphrase: your keys passphrase

Edit: here's an older video showing this. The interface has changed a bit since this was recorded, but the essence is the same: https://laracasts.com/series/server-management-with-forge/episodes/4

successdav's avatar

@CRONIX -

I JUST INSTALLED TOMCAT 14 DAY TRIAL VERSION

use SSH tunnel: checked

Host: localhost

Port: 3306

User Name: forge

Authentication method: public Key

Private Key: C:\Users\SUCCESS.ssh\id_rsa

passphrase: *********** i provided the passphrase i used to generate the key from bit bash

Save Passphrase: checked

Those are the configuration settings I have used but still not working..

Server unexpectedly closed network connection

and when I change the host to the server IP address, it loads for a while then say Network: Connection timed out

siangboon's avatar

are you able to ping host/ip address and also able to telnet the ip address and port?

successdav's avatar

@CRONIX - Thanks alot.. I actually got to make it work.... funny enough that I wasnt patient enough to thoroughly go through the settings you sent me and I was missing the General Settings tab section. I keep using General setting for SSH settings and this has cost me a week and 3 days... Thanks anyway

Please or to participate in this conversation.