Skip to content

Conversation

@rolandwalker
Copy link
Contributor

Description

Though limited to SSL/TLS parameters, a couple of others could be included such as charsets.

The form matches the CLI options. Example:

mysql://mycli@localhost:3306/mysql?ssl=True

As with other DSN elements, explicit CLI options will override.

This closes #1237 as written though it does not answer the original specific Discussion question of how to set SSL as a default in ~/.myclirc.

Checklist

  • I've added this contribution to the changelog.md.
  • I've added my name to the AUTHORS file (or it's already there).

Though limited to SSL/TLS parameters, a couple of others could be
included such as charsets.  The form matches the CLI options.

As with other DSN elements, explicit CLI options will override.
@rolandwalker rolandwalker requested a review from amjith June 3, 2025 22:18
@rolandwalker rolandwalker self-assigned this Jun 3, 2025
@rolandwalker
Copy link
Contributor Author

cc @ericgray an improvement if not an exact fit.

@rolandwalker rolandwalker merged commit ba24678 into main Jun 4, 2025
6 checks passed
@rolandwalker rolandwalker deleted the RW/support-ssl-query-parameters branch June 4, 2025 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow setting SSL options (at least) as DSN URI query parameters

3 participants