meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
pluginto:mysql_database [2021/09/08 01:26] – 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 " |
+ | |||
+ | **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:// | 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 31: | Line 39: | ||
Now try either ' | Now try either ' | ||
- | === Windows === | + | ==== Windows |
For Windows, the MySQL client, HeidiSQL ([[http:// | For Windows, the MySQL client, HeidiSQL ([[http:// | ||
Line 44: | Line 52: | ||
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: | 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. | ||