Building MySQL from Source  /  Installing MySQL from Source on Windows  /  Testing a Windows Source Build

6.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 C:\mysql and C:\mysql\data. If you want to test 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 and --datadir options, or by placing appropriate options in an option file. (See Using Option Files.) If you have an existing data directory elsewhere that 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 mysql interactive command-line utility.

You can also run the standard test script, 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 mysql-test directory under the work directory, set the MTR_VS_CONFIG environment variable to the configuration you selected earlier (or use the --vs-config option), and invoke For example (using Cygwin and the bash shell):

shell> cd mysql-test
shell> export MTR_VS_CONFIG=debug
shell> ./ --force --timer
shell> ./ --force --timer --ps-protocol

User Comments
Sign Up Login You must be logged in to post a comment.