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

[QA]: How to set SSL/TLS certificates when connecting to MySQL server as a replica? #622

Open
leiless opened this issue Sep 20, 2024 · 0 comments

Comments

@leiless
Copy link

leiless commented Sep 20, 2024

This is what we do when connecting to MySQL server as a client:

    # https://github.com/PyMySQL/PyMySQL/issues/430#issuecomment-464837266
    conn = pymysql.connect(
        host='127.0.0.1',
        port=3306,
        user='repl',
        password='123456',
        ssl={
            'ca': 'ssl/ca-cert.pem',
            'cert': 'ssl/client-cert.pem',
            'key': 'ssl/client-key.pem',
            # Effectively equals to --ssl-mode=VERIFY_CA
            'check_hostname': False,
        }
    )

Just wonder how to set SSL/TLS certificates when connecting to MySQL server as a replica?

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

No branches or pull requests

1 participant