After the introduction of the MySQL Enterprise Server, and the subsequent source-only release of Community Server 5.0.33, there was concern that MySQL would no longer provide official binary builds of the free Community Server. Fortunately, these concerns have now been addressed, but we will have to wait longer for binary releases.
In the meantime, you can either find an unofficial build, or build MySQL yourself. I decided to try and build it myself using the free edition of Visual C++.
The MySQL Reference Manual contains instructions for building from source on Windows. All you need is Visual C++ 2005 Express Edition, and the Platform SDK. Don’t use the links in the MySQL instructions; just follow steps 1 to 4 on this page: Using Visual C++ 2005 Express Edition with the Microsoft Platform SDK.
Now just follow the instructions for building using VC++, bearing in mind the following:
- although the instructions refer to Visual Studio 7.1, they also apply to Visual C++ 2005 Express Edition;
- when opening the .sln file, allow the Visual Studio Conversion Wizard to convert the solution.
The solution should build and you should end up with
mysql.exe (the server and client respectively) in