Changes between Initial Version and Version 1 of Ticket #57, comment 9


Ignore:
Timestamp:
May 12, 2013, 3:04:13 AM (11 years ago)
Author:
adehnert
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #57, comment 9

    initial v1  
    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.
     1Not 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.)