I hope this ml is the right place to send this... Anyway, I'd very much like for the MySQL backend to call mysql_options, so that it'll read the settings defined in MySQL's my.cnf under the [client] section. This allows to set a whole slew of MySQL specific settings for the MySQL connection, for example to enable the compressed protocol, set charsets, enable SSL client verification, and much more. A patch is attached that implements this. See http://dev.mysql.com/doc/refman/5.0/en/mysql-options.html for more info. -- Best regards, Luca Longinotti aka CHTEKK
LongiTEKK Networks Admin: [EMAIL PROTECTED] Gentoo Dev: [EMAIL PROTECTED] SysCP Dev: [EMAIL PROTECTED] TILUG Supporter: [EMAIL PROTECTED]
--- src/lib-sql/driver-mysql.c 2007-12-11 19:52:08.000000000 +0100 +++ src/lib-sql/driver-mysql.c 2007-12-31 12:01:26.264815793 +0100 @@ -106,6 +106,8 @@ host = conn->host; } + mysql_options(conn->mysql, MYSQL_READ_DEFAULT_GROUP, "client"); + if (!conn->ssl_set && (db->ssl_ca != NULL || db->ssl_ca_path != NULL)) { #ifdef HAVE_MYSQL_SSL mysql_ssl_set(conn->mysql, db->ssl_key, db->ssl_cert,