meta data for this page
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
pluginto:mysql_database [2021/09/08 01:22] – created gregbalco | pluginto:mysql_database [2021/11/03 16:12] (current) – gregbalco | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ==== Software setup for connecting to the MySQL database ==== | + | ===== Software setup for connecting to the MySQL database |
This page describes software needed to talk to the MySQL database. For workshops, the aim is to set this up before the workshop starts to save time getting started. | This page describes software needed to talk to the MySQL database. For workshops, the aim is to set this up before the workshop starts to save time getting started. | ||
- | We will be using SSH (" | + | We will be using SSH (" |
- | === Mac (or Linux) === | + | We will be using SSH " |
- | The first thing is a MySQL client. I am using Sequel Pro (http:// | + | **Note:** the SSH key pair should only be installed on a machine that only you have access to. Do not install SSH keys on shared machines. |
+ | |||
+ | **Note:** these instructions are incomplete because it seems like a bad idea to publicly post detailed connection parameters. You will need to contact Greg to complete your setup. | ||
+ | |||
+ | ==== Mac (or Linux) ==== | ||
+ | |||
+ | The first thing is a MySQL client. I am using Sequel Pro ([[http:// | ||
+ | |||
+ | **Note:** in the fairly near future it will probably be necessary to upgrade the database server from MySQL 5.7 to 8.something. Sequel Pro does not work with MySQL 8. Possible replacements are MySQL Workbench or the free version of TablePlus (http:// | ||
If you have a Mac or Linux machine, SSH is already installed (Mac) or most likely already installed (Linux), so you just have to generate the key pair. | If you have a Mac or Linux machine, SSH is already installed (Mac) or most likely already installed (Linux), so you just have to generate the key pair. | ||
Line 14: | Line 22: | ||
'' | '' | ||
+ | |||
+ | Hit return to accept the default file location. Then hit return again to store it without a passphrase (usually the only reason you would need a passphrase would be if you were using a shared computer). It will spit back some gibberish indicating that the key has been generated. | ||
+ | |||
+ | Now type the following: | ||
+ | |||
+ | '' | ||
+ | |||
+ | This will spit back a long code string with ' | ||
+ | |||
+ | Now that we've dealt with SSH keys, open Sequel Pro to connect to the database. A window with connection details will open. Click the " | ||
+ | |||
+ | {{: | ||
+ | |||
+ | You will need to ask an administrator (= Greg) for (i) the correct IP address to enter in the 'MySQL Host" field and (ii) the correct host name for the "SSH Host" field. The " | ||
+ | |||
+ | Now try either ' | ||
+ | |||
+ | ==== Windows ==== | ||
+ | |||
+ | For Windows, the MySQL client, HeidiSQL ([[http:// | ||
+ | |||
+ | Windows users will typically have to install an SSH client. The most common one of these is PuTTY ([[https:// | ||
+ | |||
+ | Open PuTTYgen and use the default settings to generate a key. This will involve making random movements with your mouse. This should have generated both a " | ||
+ | |||
+ | C: | ||
+ | |||
+ | This is not a standard directory (i.e., you probably shouldn' | ||
+ | |||
+ | Now that we've dealt with SSH keys, open HeidiSQL to connect to the database. The Session Manager window will open, which is where you'll input the connection parameters. First, make a new Session and give it a sensible name (e.g., ICED_remote). Use the template below for the Settings tab: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | Ask Greg for the correct IP address to put in the ' | ||
+ | |||
+ | Use the following template for the SSH tunnel tab: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | Set the plink.exe location to wherever plink.exe is installed locally on your machine. It will probably be very similar to the example above. Ask an administrator (generally = Greg) for the correct host name to put in the 'SSH host+port' | ||
+ | |||
+ | Okay, now try opening the connection. In theory, everything should work. | ||
+ |