[rails] Use trilogy for the MySQL adapter (#8471)
Trilogy is a new client library for MySQL-compatible database servers,
designed for performance, flexibility, and ease of embedding.
It is used by Github and Shopify in production and will probably replace
the `mysql2` library.
https://github.com/trilogy-libraries/trilogy