Thread:Project:Support desk/how to make MediaWiki load the MySQL my.cnf file so that SSL can be used to the MySQL database/reply (2)

Wow! It works. Thank you Max for that information.

On my installation, the file was: /usr/share/mediawiki/includes/db/Database.php

I changed this line from: $this->mConn = mysql_connect( $realServer, $user, $password, true ); To: $this->mConn = mysql_connect( $realServer, $user, $password, true, MYSQL_CLIENT_SSL );

and it works. Evidently, that MYSQL_CLIENT_SSL constant is enough to tell the mysql.so that gets loaded to go load the /etc/mysql.my.cnf and do your thing.

If I put the old line back in, I get the same error. I can't tell you how long I Googled for this solution.

Some links that refer to the above function calls: http://php.net/manual/en/function.mysql-connect.php http://www.php.net/manual/en/mysql.constants.php#mysql.client-flags