Overview
MySQL Workbench is a free desktop app that lets you view and manage your DreamHost databases from your own computer. This article explains how to connect to your database securely through an SSH tunnel, for both Mac and Windows operating systems. The setup takes a few minutes, and you only need to do it once.
These steps are for MySQL Workbench 26.10 or newer. If you don't have it yet, you can download it from the MySQL Workbench download page. You don't need to create an Oracle account. Click the No thanks, just start my download link at the bottom of the Downloads page.
How do I connect using MySQL Workbench?
Have your credentials handy
You use two different logins to connect, so have both ready before you start:
Website user credentials — Your website user's username, password, and server hostname, with SSH access turned on. See SSH overview.
Database credentials — Your database's name, username, password, and hostname. See Finding your database login credentials.
Your database user's Allowable Hosts field should include %.dreamhost.com. Leave it there, because your website needs it to reach your database.
Set up the connection
Open MySQL Workbench and click the + next to MySQL Connections.
Fill in the top of the window with the following:
Caption: Enter any name you will recognize, such as My example.com database.
Connection Method: Select mysql + SSH tunnel.
User Name: Enter your database username.
Host Name or IP Address: Enter your database hostname, such as
mysql.example.com.Port: Enter
3306.Default Schema: Enter your database name.
On the Authentication tab, click the Store Password button and enter your database password.

Switch to the SSH Tunnel tab and fill in the following:
SSH URI: Enter your website username and server hostname, followed by
:22, such asusername@iad1-shared-a1-23.dreamhost.com:22. On a VPS, it looks likeusername@vps123456.dreamhostps.com:22.SSH Private Key File: Leave this field empty.
Custom Path for the SSH Configuration File: Leave this field empty.

Test the connection and connect
Click the Test Connection button.
The first time you connect, MySQL Workbench asks you to confirm the server's fingerprint. This is normal. Click Yes.

Enter your website's SSH user password and click OK.

MySQL Workbench asks if you want to save that password. Choose whichever you prefer. You should then see Connection test succeeded.

Click OK to save your connection. From now on, double-click it on the MySQL Workbench home screen to connect.
MySQL Workbench shows the server fingerprint in a different format than your panel, so the two will not look the same. If you want to double-check it, see Viewing your SSH Keys.
Something not working?
The following are the most common issues and how to fix them:
| If you see... | Try this |
|---|---|
| SSH URI is required | Fill in the SSH URI on the SSH Tunnel tab, then test again. |
| No Standard TCP/IP over SSH option | That option is from older versions of MySQL Workbench. Choose mysql + SSH tunnel instead. |
| Access denied for user | Double-check that you used your database username and password at the top and on the Authentication tab, and that %.dreamhost.com is in Allowable Hosts. |
| Unknown MySQL server host | Check your database hostname for typos, extra spaces, or http://. |
| Lost connection... reading initial communication packet | Make sure Host Name is your database hostname, not your website's server. |
| Cannot open SSH Tunnel or an authentication error | Make sure SSH access is turned on and the SSH URI uses your website username and server. |
Still stuck? The DreamHost support team is happy to help. Reach out and let your support representative know which error you're seeing.