Hi Grafana Community,
some time ago our MySQL database changed its configuration and enabled “–require_secure_transport=ON” and we connect using TLS with our SQL tooling (for me IntelliJ).
Error message I get:
“logger=tsdb.mysql t=2023-01-16T10:32:40.287979533+01:00 level=error msg=“Query error” error=“Error 3159: Connections using insecure transport are prohibited while --require_secure_transport=ON.””
I can connect using IntelliJ just by enabling TLS/SSL checkox. No certificate or any other file is needed.
I tried the checkboxes in various constellations but none were successful. I didn’t add any information in the appearing boxes as this shouldn’t be necessary.
Can you please help me how I can configure this or is this a bug?
Thank you in advance
Using v9.3.2 (21c1d14e916)
Hi @otakun85 ,
Welcome to the community support forums !!
We are excited that you joined our OSS community. Please read about some of the FAQs in the community
I understand that your MySQL server is now secured by enabling this configuration parameter:
require_secure_transport=ON
Is the SSL configured to work with the remote host?
Might be good to check this link:
Let us know if this helps.
Hello and thank you for the quick reply.
If I read the content of the link correctly than this describes how I can setup in general a mysql server and client to connect from with TLS.
Yet in my situation the server is already setup.
I configured following in MySQL Workbench or IntelliJ and it just works:
Host
username and password
(Use SSL if available, default setting)
So I’m wondering why it’s not working in Grafana data source setting?
Updating this post as the same user @otakun85 also reported it at:
opened 08:56AM - 20 Feb 23 UTC
needs more info
datasource/MySQL
**What happened**:
Since the database was switchted to TLS only mode "--require… _secure_transport=ON" I can't connect to it anymore with Grafana.
MySQL clients like Workbench or IntelliJ are automatically using TLS and connecting without any issue.
Error message:
`“logger=tsdb.mysql t=2023-01-16T10:32:40.287979533+01:00 level=error msg=“Query error” error=“Error 3159: Connections using insecure transport are prohibited while --require_secure_transport=ON.””`
**What you expected to happen**:
I can connect to MySQL.
**How to reproduce it (as minimally and precisely as possible)**:
I'm not sure yet. I guess you need to configure a MySQL instance with said flag.
**Anything else we need to know?**:
I tried to get an answer in the forum but it didn't help https://localhost:3000/t/cant-connect-to-mysql-datasource-since-switch-to-require-secure-transport-on-mode/79748
**Environment**:
- Grafana version: 9.3.6 (taken from arch AUR)
- Data source type & version: dunno where to get this information
- MySQL DBMS: Report from IntelliJ connection:
```
MySQL (ver. 8.0.28-19.1)
Case sensitivity: plain=exact, delimited=exact
Driver: MySQL Connector/J (ver. mysql-connector-java-8.0.25 (Revision: 08be9e9b4cba6aa115f9b27b215887af40b159e0), JDBC4.2)
```
- OS Grafana is installed on: Arch Linux
- User OS & Browser: Endeavor OS which is based on arch
- Grafana plugins: No extra
Thank you very much.
will help others to keep track and follow the update on resolution.