<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.swcp.com/w/index.php?action=history&amp;feed=atom&amp;title=Using_MySQL_Workbench_with_an_SSH_Tunnel</id>
	<title>Using MySQL Workbench with an SSH Tunnel - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.swcp.com/w/index.php?action=history&amp;feed=atom&amp;title=Using_MySQL_Workbench_with_an_SSH_Tunnel"/>
	<link rel="alternate" type="text/html" href="https://wiki.swcp.com/w/index.php?title=Using_MySQL_Workbench_with_an_SSH_Tunnel&amp;action=history"/>
	<updated>2026-10-06T19:58:45Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://wiki.swcp.com/w/index.php?title=Using_MySQL_Workbench_with_an_SSH_Tunnel&amp;diff=2096&amp;oldid=prev</id>
		<title>Cheeks: Created page with &quot;==MySQL access via SSH Tunnel==  MySQL Workbench is a MySQL client program that runs on your Mac/Windows/Linux desktop.  It can connect directly to mysql on port 3306.  However, ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.swcp.com/w/index.php?title=Using_MySQL_Workbench_with_an_SSH_Tunnel&amp;diff=2096&amp;oldid=prev"/>
		<updated>2021-04-09T23:53:55Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==MySQL access via SSH Tunnel==  MySQL Workbench is a MySQL client program that runs on your Mac/Windows/Linux desktop.  It can connect directly to mysql on port 3306.  However, ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==MySQL access via SSH Tunnel==&lt;br /&gt;
&lt;br /&gt;
MySQL Workbench is a MySQL client program that runs on your Mac/Windows/Linux desktop.  It can connect directly to mysql on port 3306.  However, the SWCP MySQL servers are firewalled, so customers on other networks can&amp;#039;t connect to it directly.&lt;br /&gt;
&lt;br /&gt;
MySQL Workbench and Sequel Pro (Mac only I think) support SSH Tunnels.  &lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;NOTE: The user needs shell access enabled for this to work.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Here&amp;#039;s how to set it up:&lt;br /&gt;
&lt;br /&gt;
===MySQL Workbench===&lt;br /&gt;
* Create a new connection profile.&lt;br /&gt;
* Set the Connection Method to &amp;quot;Standard TCP/IP over SSH&amp;quot;&lt;br /&gt;
* Set the SSH hostname to &amp;#039;&amp;#039;&amp;#039;login.swcp.com&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Set the SSH Username to your shell account login name&lt;br /&gt;
* Set the MySQL Hostname to the hostname for your database.  If your database is called &amp;quot;bobwork2&amp;quot;, the hostname will be &amp;#039;&amp;#039;&amp;#039;bobwork2.sqldb.swcp.com&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
* Set the Username to your database username (note: not your shell login name)&lt;br /&gt;
&lt;br /&gt;
When you use the profile, you will first get a prompt for the shell account password, and then for the database password.  Note that there are two different usernames and passwords in this process.&lt;br /&gt;
&lt;br /&gt;
===Sequel Pro===&lt;br /&gt;
This is another MySQL interface.  It&amp;#039;s only for the Mac.  Get it from http://www.sequelpro.com.&lt;br /&gt;
&lt;br /&gt;
* In the Connection Details, select the SSH tab&lt;br /&gt;
* Set the MySQL Host to the hostname for your database.  If your database is called &amp;quot;bobwork2&amp;quot;, the hostname will be &amp;#039;&amp;#039;&amp;#039;bobwork2.sqldb.swcp.com&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
* Enter your database name, username, and password.&lt;br /&gt;
* Set the SSH Host to &amp;#039;&amp;#039;&amp;#039;login.swcp.com&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Set the SSH User to your shell username. Enter the matching password in the SSH Password field.&lt;br /&gt;
&lt;br /&gt;
Hit the &amp;quot;Test Connection&amp;quot; button to test your settings.  If the connection fails, the &amp;quot;Show Details&amp;quot; button will give you some information that you can cut-n-paste and send to help@swcp.com.  After you get it working, click &amp;quot;Add to Favorites&amp;quot; to save the settings.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
[[Category: MySQL]]&lt;/div&gt;</summary>
		<author><name>Cheeks</name></author>
	</entry>
</feed>