trilogy-libraries / trilogy

Trilogy is a client library for MySQL-compatible database servers, designed for performance, flexibility, and ease of embedding.
MIT License
697 stars 68 forks source link

Point mysql to certs instead of copying them #176

Closed ngan closed 5 months ago

ngan commented 5 months ago

In https://github.com/trilogy-libraries/trilogy/pull/175, I made it so that the certs were copied from /var/lib/mysql/*.pem into /mysql-certs/*. This felt awkward at the time but I wanted to defer the fix since it wasn't that important. I'm revisit this now and in this PR, we're going to tell mysql where to find the certificates instead.

This means that we now generate the certificates directly into /mysql-certs/* -- so no more copying!