Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to set ssl_mode on the dsn for mysql #139

Open
lchopfpt opened this issue Dec 29, 2022 · 0 comments
Open

Unable to set ssl_mode on the dsn for mysql #139

lchopfpt opened this issue Dec 29, 2022 · 0 comments
Labels

Comments

@lchopfpt
Copy link

lchopfpt commented Dec 29, 2022

Describe the bug
When adding ?ssl_mode=PREFERRED to a mysql DSN using the docker image, I get:
MySQL client library does not support ssl_mode specification

Installation details

  • operating system: CentOS 7.9
  • query-exporter installation type:
    • docker image: docker

To Reproduce

If possible, please provide detailed steps to reproduce the behavior:
MySQL configured with SSL. Local connections work, yet get Access Denied with query_exporter. So attempted to set ssl_mode=PREFERRED

  1. Config file content (redacted of secrets if needed)
    databasenamehere: dsn: mysql://user:pass@<host>/<database>?ssl_mode=PREFERRED

  2. Ran query-exporter with the following command line ...
    docker run -p 9560:9560/tcp -v "/etc/query_exporter.yaml:/config.yaml" --rm -it adonato/query-exporter:latest

  3. Got the error when ...
    When attempting to do connections, see in the log:
    MySQL client library does not support ssl_mode specification

@lchopfpt lchopfpt added the bug label Dec 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant