opscode-cookbooks/mysql — pull request #142 by juliandunn (2013-12-04 17:46:00+00:00)
Title: [COOK-4068] Fix MySQL installation on Windows.

There were a number of items broken in the last refactor of this cookbook. This commit
rewrites the _server_windows recipe to account for a number of things:

* Running mysql commands as ```not_if``` guards is unreliable under Windows right now owing
to [CHEF-4783](https://tickets.opscode.com/browse/CHEF-4783). Because the guard is run as a 32-bit CMD session rather than using
the SysNative CMD, Windows will lie to you about the exit code and the guard always
returns 0. As such I elected to use a node attribute to store whether the password
is set, and use that as a guard.
* Upgrade to the latest version of MySQL 5.5 on the system.
* MySQL data properly belongs in \AppData -- that's what the interactive installer
will do
* The my.cnf on Windows is called my.ini and it lives in the MySQL server's bin
directory - again, this is what the "MySQL Instance Creation Wizard", run
interactively, will do.