I need to set the TLS version to TLSv1.2 via the MYSQL_OPT_TLS_VERSION MySQL connection option. https://dev.mysql.com/doc/refman/5.7/en/mysql-options.html https://dev.mysql.com/doc/refman/5.7/en/encrypted-connection-protocols-ciphers.html Is this possible with Mysql2? Maybe with :connect_attrs?