Oracle 5.0 Reference Manual page 114

Table of Contents

Advertisement

C:\workdir>
C:\workdir>
C:\workdir>
C:\workdir>
If you want to benchmark MySQL, you should also do this:
C:\workdir>
After installation, set up and start the server in the same way as for binary Windows distributions. See
Section 2.10, "Installing MySQL on Microsoft
2.10.8.4. Testing a Windows Source Build
You should test the server that you have built from source before using the distribution.
To test the server you need to run the built mysqld. By default, using the source build examples, the
MySQL base directory and data directory are
your server using the source tree root directory and its data directory as the base directory and data
directory, you need to tell the server their path names. You can either do this on the command line with
the
--basedir
file. (See
Section 4.2.3.3, "Using Option
you want to use, you can specify its path name instead.
When the server is running in standalone fashion or as a service based on your configuration, try to
connect to it from the
You can also run the standard test script, mysql-test-run.pl. This script is written in Perl, so you'll
need either Cygwin or ActiveState Perl to run it. You may also need to install the modules required
by the script. To run the test script, change location into the
directory, set the
use the
--vs-config
shell):
bash
shell>
cd mysql-test
shell>
export MTR_VS_CONFIG=debug
shell>
./mysql-test-run.pl --force --timer
shell>
./mysql-test-run.pl --force --timer --ps-protocol
2.10.8.5. Creating a Windows Source Package from the Bazaar Repository
To create a Windows source package from the current Bazaar source tree, use the instructions here.
This procedure must be performed on a system running a Unix or Unix-like operating system because
some of the configuration and build steps require tools that work only on Unix. For example, the
following procedure is known to work well on Linux.
1. Copy the Bazaar source tree for MySQL 5.0. For instructions on how to do this, see
"Installing MySQL from a Development Source
2. Configure and build the distribution so that you have a server binary to work with. One way to do
this is to run the following command in the top-level directory of your source tree:
shell>
./BUILD/compile-pentium-max
3. After making sure that the build process completed successfully, run the following utility script from
top-level directory of your source tree:
shell>
./scripts/make_win_src_distribution
This script creates a Windows source package to be used on your Windows system.
You can supply different options to the script based on your needs. See
"make_win_src_distribution
permissible options.
Installing MySQL from Source on Windows
copy lib_release\libmysql.* C:\mysql\lib\opt
copy lib_release\zlib.* C:\mysql\lib\opt
copy include\*.h C:\mysql\include
copy libmysql\libmysql.def C:\mysql\include
xcopy sql-bench\*.* C:\mysql\bench /E
[401]
and
--datadir
interactive command-line utility.
mysql
environment variable to the configuration you selected earlier (or
MTR_VS_CONFIG
option), and invoke mysql-test-run.pl. For example (using Cygwin and the
— Create Source Distribution for
Windows".
and C:\mysql\data. If you want to test
C:\mysql
[404]
options, or by placing appropriate options in an option
Files".) If you have an existing data directory elsewhere that
mysql-test
Tree".
94
directory under the work
Section 2.17.2,
Section 4.4.3,
Windows", for a list of

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents