Installing MySQL from Source on Windows
91
• Build from the MySQL Windows source distribution. The Windows source distribution includes ready-
made Visual Studio solution files that enable support for all storage engines (except
NDB
). To build
using using method you only need Visual C++ Express Edition or Visual Studio. To use this method,
see
Section 2.10.8.2, “Building MySQL from a Windows Source Distribution”
.
• Build directly from the Bazaar source repository. For this you will need
CMake
, Visual C++ Express
Edition or Visual Studio, and
bison
. For this method you need to create the distribution on a Unix
system and then copy the generated files to your Windows build environment. To use this method,
see
Section 2.10.8.5, “Creating a Windows Source Package from the Bazaar Repository”
.
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
win32
mailing list. See
Section 1.6.1, “MySQL Mailing Lists”
.
2.10.8.1. Building MySQL from the Standard Source Distribution
You can build MySQL on Windows by using a combination of
cmake
and Microsoft Visual Studio .NET
2003 (7.1), Microsoft Visual Studio 2005 (8.0) or Microsoft Visual C++ 2005 Express Edition. You must
have the appropriate Microsoft Platform SDK installed.
Note
To compile from the source code using
CMake
you must use the standard
source distribution (for example,
mysql-5.0.96.tar.gz
). You build from the
same distribution as used to build MySQL on Unix, Linux and other platforms.
Do not use the Windows Source distributions as they do not contain the
necessary configuration script and other files.
Follow this procedure to build MySQL:
1. If you are installing from a packaged source distribution, create a work directory (for example,
C:
\workdir
), and unpack the source distribution there using
WinZip
or another Windows tool that
can read
.zip
files. This directory is the work directory in the following instructions.
2. If you are installing from a Bazaar tree, the root directory of that tree is the work directory in the
following instructions.
3. Using a command shell, navigate to the work directory and run the following command:
C:\workdir>
win\configure.js options
If you have associated the
.js
file extension with an application such as a text editor, then you may
need to use the following command to force
configure.js
to be executed as a script:
C:\workdir>
cscript win\configure.js options
These options are available for
configure.js
:
•
WITH_INNOBASE_STORAGE_ENGINE
: Enable the
InnoDB
storage engine.
•
WITH_PARTITION_STORAGE_ENGINE
: Enable user-defined partitioning.
•
WITH_ARCHIVE_STORAGE_ENGINE
: Enable the
ARCHIVE
storage engine.
•
WITH_BLACKHOLE_STORAGE_ENGINE
: Enable the
BLACKHOLE
storage engine.
•
WITH_EXAMPLE_STORAGE_ENGINE
: Enable the
EXAMPLE
storage engine.
•
WITH_FEDERATED_STORAGE_ENGINE
: Enable the
FEDERATED
storage engine.
•
MYSQL_SERVER_SUFFIX=suffix
: Server suffix, default none.
•
COMPILATION_COMMENT=comment
: Server comment, default "Source distribution".
Содержание 5.0
Страница 1: ...MySQL 5 0 Reference Manual ...
Страница 18: ...xviii ...
Страница 60: ...40 ...
Страница 396: ...376 ...
Страница 578: ...558 ...
Страница 636: ...616 ...
Страница 844: ...824 ...
Страница 1234: ...1214 ...
Страница 1426: ...MySQL Proxy Scripting 1406 The following diagram shows an overview of the classes exposed by MySQL Proxy ...
Страница 1427: ...MySQL Proxy Scripting 1407 ...
Страница 1734: ...1714 ...
Страница 1752: ...1732 ...
Страница 1783: ...Configuring Connector ODBC 1763 ...
Страница 1793: ...Connector ODBC Examples 1773 ...
Страница 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Страница 1842: ...Connector Net Installation 1822 5 Once the installation has been completed click Finish to exit the installer ...
Страница 1864: ...Connector Net Visual Studio Integration 1844 Figure 20 24 Debug Stepping Figure 20 25 Function Stepping 1 of 2 ...
Страница 2850: ...2830 ...
Страница 2854: ...2834 ...
Страница 2928: ...2908 ...
Страница 3000: ...2980 ...
Страница 3122: ...3102 ...
Страница 3126: ...3106 ...
Страница 3174: ...3154 ...
Страница 3232: ...3212 ...