Building MySQL from source

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 mysqld-nt.exe and mysql.exe (the server and client respectively) in SRC/client_release.

Advertisements
This entry was posted in Uncategorized and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s