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

MediaWiki 1.15.1 PHP       5.3.2-1ubuntu4.7 (apache2handler) Database  5.1.41-3ubuntu12.9

On 64-bit Ubuntu 10.04 Linux.

I would like MediaWiki to use SSL between itself and the MySQL database.

I can get the regular `mysql` binary client to use SSL.

But when I add this GRANT to the wikiuser credentials: GRANT USAGE on *.* TO 'wikiuser'@'localhost' REQUIRE SSL;

Browsing to any page will display this on the browser: (Can't contact the database server: Access denied for user 'wikiuser'@'localhost' (using password: YES) (localhost))

I surmise that MediaWiki is not loading up the MySQL my.cnf configuration file located under /etc/mysql/my.cnf.

This configuration file effectively has the settings to tell the MySQL server and client, to use SSL and where the certificates and keys are.

So how does one tell MediaWiki, or the PHP running on its behalf, to load up /etc/mysql/my.cnf and use SSL?