These instructions describe how to build binaries from source for MySQL 4.1 on Windows. Instructions are provided building binaries from a standard source distribution or from the Bazaar tree that contains the latest development source.
The instructions here are strictly for users who want to test MySQL on Microsoft Windows from the latest source distribution or from the Bazaar tree. For production use, we do 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 Oracle Corporation. Instructions for installing binary distributions are available in Section 2.3, “Installing MySQL on Microsoft Windows”.
To build MySQL on Windows from source, you must satisfy the following system, compiler, and resource requirements:
Windows XP, Windows 2000, or newer version
Visual Studio .Net 2003 (7.1) compiler system
3GB to 5GB of disk space
You also need a MySQL source distribution for Windows, which can be obtained two ways:
Obtain a Windows source distribution packaged for the particular version of MySQL in which you are interested. These are available from http://dev.mysql.com/downloads/.
Package a source distribution yourself from the latest Bazaar 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 Bazaar approach thus requires:
A system running Unix, or a Unix-like system such as Linux.
Bazaar installed on that system. See Section 2.9.2, “Installing MySQL from a Development Source Tree”, for instructions how to download and install Bazaar.
If you are using a Windows source distribution, you can go directly to Section 184.108.40.206, “Building MySQL from Source Using VC++”. To build from the Bazaar 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”.