{"id":785,"date":"2008-04-15T01:06:57","date_gmt":"2008-04-15T06:06:57","guid":{"rendered":"http:\/\/www.bytebot.net\/blog\/archives\/2008\/04\/15\/howto-mysql-and-windows-vista-to-play-nice"},"modified":"2008-04-15T01:07:00","modified_gmt":"2008-04-15T06:07:00","slug":"howto-mysql-and-windows-vista-to-play-nice","status":"publish","type":"post","link":"https:\/\/www.bytebot.net\/blog\/archives\/2008\/04\/15\/howto-mysql-and-windows-vista-to-play-nice","title":{"rendered":"HOWTO: MySQL and Windows Vista to play nice"},"content":{"rendered":"<p>I first decided to try how things were in Windows Vista land, the moment I was told during a talk of mine that MySQL refused to install on Vista. I gave it a twirl (after disabling User Account Control &#8211; UAC) and found that I got a rather quaint error message from the MySQL Server Instance Config Wizard (MySQLInstanceConfig.exe) [this after it failed to start once the installer was complete]:<\/p>\n<p><tt> The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log for more details.<\/tt><\/p>\n<p>I hopped over to the event log (Event Viewer), and the error displayed was:<\/p>\n<p><tt>Activation context generation failed for \"C:\\Program Files\\MySQL\\MySQL Server 5.0\\bin\\MySQLInstanceConfig.exe\".Error in manifest or policy file \"C:\\Program Files\\MySQL\\MySQL Server 5.0\\bin\\MySQLInstanceConfig.exe\" on line 6. The value \"asAdministrator\" of attribute \"level\" in element \"urn:schemas-microsoft-com:asm.v1^requestedPrivileges\" is invalid.<\/tt><\/p>\n<p>I then thought, that the best solution was to launch it manually. I tried:<br \/><tt> C:\\Program Files\\MySQL\\MySQL Server 5.0\\bin\\mysqld-nt.exe<\/tt><\/p>\n<p>via cmd.exe, and lo and behold, it all just worked!<\/p>\n<p>For a more permanent solution, look at <a href=\"http:\/\/www.angusj.com\/resourcehacker\/\">Resource Hacker<\/a>, and <b>read the <a href=\"http:\/\/forums.mysql.com\/read.php?11,195569,195569#msg-195569\">instructions in this forum post<\/a><\/b>.<\/p>\n<p>It turns out, this is largely related to <a href=\"http:\/\/bugs.mysql.com\/bug.php?id=30823\">mysql#30823<\/a>. There is a problem with the software manifest, that doesn&#8217;t allow MySQLInstanceConfig.exe to run in Vista. This sadly affects MySQL 5.0.51a (refer to <a href=\"http:\/\/bugs.mysql.com\/bug.php?id=34340\">mysql#34340<\/a>), and the hope is that the next release fixes this (the documentation has already mentioned that 5.1.24-rc should have this fixed, and 6.0.x will get a push soon.)<\/p>\n<p>In other news? If you haven&#8217;t seen <a href=\"http:\/\/port25.technet.com\/archive\/2007\/03\/16\/mysql-on-windows-configuration-install.aspx\">MySQL on Windows: Configuration and Install<\/a>, take a look. Its from Microsoft&#8217;s Port25 website (i.e. the open source group within Microsoft). I was truly impressed\/shocked when I came across it. I especially like the note: <i>&#8220;This paper represents testing and documentation in a lab environment. User Account Control (UAC) is an essential security component to Windows and Microsoft does not recommend turning off UAC in production environments.&#8221;<\/i> Sorry, UAC and MySQL just do not jive (though it seems to be OK, once the installation is compelte &#8211; i.e. you can enable UAC again).<\/p>\n<p>Technorati Tags: <a class=\"performancingtags\" href=\"http:\/\/technorati.com\/tag\/mysql\" rel=\"tag\">mysql<\/a>, <a class=\"performancingtags\" href=\"http:\/\/technorati.com\/tag\/windows\" rel=\"tag\">windows<\/a>, <a class=\"performancingtags\" href=\"http:\/\/technorati.com\/tag\/bug\" rel=\"tag\">bug<\/a>, <a class=\"performancingtags\" href=\"http:\/\/technorati.com\/tag\/UAC\" rel=\"tag\">UAC<\/a>, <a class=\"performancingtags\" href=\"http:\/\/technorati.com\/tag\/instance%20config%20wizard\" rel=\"tag\">instance config wizard<\/a>, <a class=\"performancingtags\" href=\"http:\/\/technorati.com\/tag\/resource%20hacker\" rel=\"tag\">resource hacker<\/a>, <a class=\"performancingtags\" href=\"http:\/\/technorati.com\/tag\/microsoft\" rel=\"tag\">microsoft<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I first decided to try how things were in Windows Vista land, the moment I was told during a talk of mine that MySQL refused to install on Vista. I gave it a twirl (after disabling User Account Control &#8211; UAC) and found that I got a rather quaint error message from the MySQL Server [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[23],"tags":[],"class_list":["post-785","post","type-post","status-publish","format-standard","hentry","category-mysql"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p4vJD-cF","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/785","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/comments?post=785"}],"version-history":[{"count":0,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/785\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/media?parent=785"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/categories?post=785"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/tags?post=785"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}