Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Connect to MySQL via SSH

DZone's Guide to

Connect to MySQL via SSH

· Integration Zone
Free Resource

Share, secure, distribute, control, and monetize your APIs with the platform built with performance, time-to-value, and growth in mind. Free 90-day trial of 3Scale by Red Hat

I use the excellent HeidiSQL as a GUI when working with MySQL.

I've recently set up a new server and knew that HeidiSQL has support for connecting via an SSH tunnel. As a note to myself, these are the settings:

Settings tab:

Network type: MySQL (SSH tunnel)
Hostname / IP: locahost
User: mysqlusername
Password: mysqluserpassword

SSH tunnel tab:

plink.exe location: c:\somedir\plink.exe
SSH Host: my.server.com
SSH port: 22
Username: mysshuser
Password: mysshpassword

The key thing to note is that on the settings tab you need to enter localhost and the username and password of the MySQL user. This is because HeidiSQL connects to MySQL once you're connected via an SSH login.

Explore the core elements of owning an API strategy and best practices for effective API programs. Download the API Owner's Manual, brought to you by 3Scale by Red Hat

Topics:

Published at DZone with permission of John Whish, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}