1 | | Not sure if there's a better mechanism, but for PHP/Mediawiki, putting something like `parse_ini_file("/mit/asa/.my.cnf")['password']` seems to work. (Well, for Mediawiki itself. `wizard` doesn't know how to handle it.) Oh, and that requires my.cnf to be properly quoted, which may not be the case by default. |
| 1 | Not sure if there's a better mechanism, but for PHP/Mediawiki, putting something like `parse_ini_file("/mit/asa/.my.cnf")['password']` seems to work. (Well, for Mediawiki itself. `wizard` doesn't know how to handle it.) Oh, and that requires my.cnf to be properly quoted, which may not be the case by default. At least it looks like mysql(1) and Python agree with PHP that double-quotes are okay. (See also http://www.php.net/manual/en/function.parse-ini-file.php.) |