Installing MySQL from Source on Windows
90
If you are running a version of Windows that supports services, you can set up the MySQL server
to run automatically when Windows starts. See
Section 2.10.4.7, “Starting MySQL as a Windows
Service”
.
2.10.8. Installing MySQL from Source on Windows
These instructions describe how to build binaries from source for MySQL 5.0 on Windows. Instructions
are provided for building binaries from a standard source distribution or from the Bazaar tree that
contains the latest development source.
Note
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.10, “Installing MySQL on Microsoft Windows”
.
To build MySQL on Windows from source, you must satisfy the following system, compiler, and
resource requirements:
• Windows 2000, Windows XP, or newer version.
Windows Vista is supported when using Visual Studio 2005 provided you have installed the following
updates:
•
Microsoft Visual Studio 2005 Professional Edition - ENU Service Pack 1 (KB926601)
•
Security Update for Microsoft Visual Studio 2005 Professional Edition - ENU (KB937061)
•
Update for Microsoft Visual Studio 2005 Professional Edition - ENU (KB932232)
• To build from the standard source distribution, you will need
CMake
, which can be downloaded
from
http://www.cmake.org
. After installing, modify your
PATH
environment variable to include the
directory where
cmake
is located.
• Microsoft Visual C++ 2005 Express Edition, Visual Studio .Net 2003 (7.1), or Visual Studio 2005 (8.0)
compiler system.
• If you are using Visual C++ 2005 Express Edition, you must also install an appropriate Platform
SDK. More information and links to downloads for various Windows platforms is available from
http://
www.microsoft.com/downloads/details.aspx?familyid=0baf2b35-c656-4969-ace8-e4c0c0716adb
.
• If you are compiling from a Bazaar tree or making changes to the parser, you need
bison
for
Windows, which can be downloaded from
http://gnuwin32.sourceforge.net/packages/bison.htm
.
Download the package labeled “Complete package, excluding sources”. After installing the package,
modify your
PATH
environment variable to include the directory where
bison
is located.
• Cygwin might be necessary if you want to run the test script or package the compiled binaries and
support files into a Zip archive. (Cygwin is needed only to test or package the distribution, not to build
it.) Cygwin is available from
http://cygwin.com
.
• 3GB to 5GB of disk space.
There are three solutions available for building from the source code on Windows:
• Build from the standard MySQL source distribution. For this you will need
CMake
and Visual C++
Express Edition or Visual Studio. Using this method you can select the storage engines that are
included in your build. To use this method, see
Section 2.10.8.1, “Building MySQL from the Standard
Source Distribution”
.
Summary of Contents for 5.0
Page 1: ...MySQL 5 0 Reference Manual ...
Page 18: ...xviii ...
Page 60: ...40 ...
Page 396: ...376 ...
Page 578: ...558 ...
Page 636: ...616 ...
Page 844: ...824 ...
Page 1234: ...1214 ...
Page 1427: ...MySQL Proxy Scripting 1407 ...
Page 1734: ...1714 ...
Page 1752: ...1732 ...
Page 1783: ...Configuring Connector ODBC 1763 ...
Page 1793: ...Connector ODBC Examples 1773 ...
Page 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Page 2850: ...2830 ...
Page 2854: ...2834 ...
Page 2928: ...2908 ...
Page 3000: ...2980 ...
Page 3122: ...3102 ...
Page 3126: ...3106 ...
Page 3174: ...3154 ...
Page 3232: ...3212 ...