Hello Ansgar,
depending on the password plugin HeidiSQL doesn't connect to the MySQL 8 server when using a SSL connection. I think this is a bug.
To reproduce create 2 users:
DROP USER IF EXISTS 'test1'@'192.168.%';
CREATE USER 'test1'@'192.168.%' IDENTIFIED WITH mysql_native_password BY 'test';
GRANT ALL PRIVILEGES ON *.* TO 'test1'@'192.168.%';
DROP USER IF EXISTS 'test2'@'192.168.%';
CREATE USER 'test2'@'192.168.%' IDENTIFIED BY 'test';
GRANT ALL PRIVILEGES ON *.* TO 'test2'@'192.168.%';
This is how it looks in the user table:
select user, host, plugin from mysql.user where user like "test%";
+-------+-----------+-----------------------+
| user | host | plugin |
+-------+-----------+-----------------------+
| test1 | 192.168.% | mysql_native_password |
| test2 | 192.168.% | caching_sha2_password |
+-------+-----------+-----------------------+
In HeidiSQL I connet to the server with user test1 using SSL or not, but with user2 I can only connect without SSL. With SSL I get
## Access denied for user 'test2'@'192.168.14.2' (using password: YES)
With the MySQL 8 client I can connect with both users with SSL:
mysql.exe --host=serv8 -u test1 -ptest --ssl-mode=r -e "show status like 'ssl_cipher'"
Variable_name Value
Ssl_cipher TLS_AES_256_GCM_SHA384
mysql.exe --host=serv8 -u test2 -ptest --ssl-mode=r -e "show status like 'ssl_cipher'"
Variable_name Value
Ssl_cipher TLS_AES_256_GCM_SHA384
- Heidi 11.0.0.5972 (64 Bit)
- Server version: 8.0.20-0ubuntu0.20.04.1 (Ubuntu)
Can you please check? Thanks in advance.