When HeidiSQL is left open and the computer goes to sleep and resumes, when you try to refresha view, an exception is usually thrown (see below). This happens quite regularly. The connection is via SSH Tunnel. Closing and re-opening HeidiSQL always fixes the problem.
HeidiSQL 9.5.0.5196 Windows 10 Pro Connecting to MySQL running on remote Linux server via PLink SSH Tunnel
/* Closing plink.exe process #1468 ... */
/* Connection to 127.0.0.1 closed at 2018-09-26 14:23:32 */
/* Connecting to 127.0.0.1 via MySQL (SSH tunnel), username <myusername>, using password: Yes ... */
/* Attempt to create plink.exe process, waiting 4s for response ... */
/* C:\Program Files\PuTTY\plink.exe -ssh <myusername@mycompany.com> -i "<myKey.ppk>" -N -L 3306:127.0.0.1:3306 */
/* Access violation at address 00007FFC87ED0DC2 in module 'libmysql.dll'. Read of address 0000000000000008 */
/* Closing plink.exe process #13640 ... */
/* Connection to 127.0.0.1 closed at 2018-09-26 14:23:34 */
/* Connecting to 127.0.0.1 via MySQL (SSH tunnel), username <myusername>, using password: Yes ... */
/* Attempt to create plink.exe process, waiting 4s for response ... */
/* C:\Program Files\PuTTY\plink.exe -ssh <myusername@mycompany.com> -i "<myKey.ppk>" -N -L 3306:127.0.0.1:3306 */
SELECT CONNECTION_ID();
/* Connected. Thread-ID: 323743 */
/* Characterset: utf8mb4 */
SHOW STATUS;
SHOW VARIABLES;
USE `ceresdev`;
SHOW CREATE TABLE '<myDatabase>'.`equipment`;
SHOW COLLATION;
SHOW ENGINES;
SELECT <bunch of fields> FROM <theTable>;
SHOW CREATE TABLE <theTable>;
SHOW TABLE STATUS LIKE 'equipment';
/* Access violation at address 0000000000A8887C in module 'heidisql.exe'. Read of address 00000000000000FB */