2.8.6. Installing MySQL from Source on Windows
These instructions describe how to build binaries from source
for MySQL 5.1 on Windows. Instructions are provided
for building binaries from a standard source distribution or
from the BitKeeper tree that contains the latest development
Note: The instructions here are
strictly for users who want to test MySQL on Windows from the
latest source distribution or from the BitKeeper tree. For
production use, MySQL AB does not advise using a MySQL server
built by yourself from source. Normally, it is best to use
precompiled binary distributions of MySQL that are built
specifically for optimal performance on Windows by MySQL AB.
Instructions for installing a binary distributions are available
in Section 2.3, “Installing MySQL on Windows”.
To build MySQL on Windows from source, you need the following
compiler and resources available on your Windows system:
The exact system requirements can be found here:
You also need a MySQL source distribution for Windows. There are
two ways to obtain a source distribution:
Obtain a source distribution packaged by MySQL AB. These are
available from http://dev.mysql.com/downloads/.
You can package a source distribution yourself from the
latest BitKeeper developer source tree. If you plan to do
this, you must create the package on a Unix system and then
transfer it to your Windows system. (Some of the
configuration and build steps require tools that work only
on Unix.) The BitKeeper approach thus requires:
If you are using a Windows source distribution, you can go
directly to Section 184.108.40.206, “Building MySQL Using VC++”. To
build from the BitKeeper tree, proceed to
Section 220.127.116.11, “Creating a Windows Source Package from the Latest Development Source”.
If you find something not working as expected, or you have
suggestions about ways to improve the current build process on
Windows, please send a message to the
mailing list. See Section 1.7.1, “MySQL Mailing Lists”.