mysqltest man page

mysqltest — program to run test cases
mysqltest_embedded — program to run embedded test cases

Synopsis

mysqltest [options] [db_name]

mysqltest_embedded [options] [db_name]

Description

The mysqltest program runs a test case against a MySQL server and optionally compares the output with a result file. This program reads input written in a special test language. Typically, you invoke mysqltest using mysql-test-run.pl rather than invoking it directly.

mysqltest_embedded is similar but is built with support for the libmysqld embedded server. This program is available only prior to MySQL 8.0.

Features of mysqltest:

By default, mysqltest reads the test case on the standard input. To run mysqltest this way, you normally invoke it like this:

shell> mysqltest [options] [db_name] < test_file

You can also name the test case file with a --test-file=file_name option.

The exit value from mysqltest is 0 for success, 1 for failure, and 62 if it skips the test case (for example, if after checking some preconditions it decides not to run the test).

mysqltest supports the following options:

Notes

1.

The SHA-256 Authentication Plugin

See Also

For more information, please refer to the MySQL Reference Manual, which may already be installed locally and which is also available online at http://dev.mysql.com/doc/.

Author

Oracle Corporation (http://dev.mysql.com/).

Referenced By

mysqltest_embedded(1) is an alias of mysqltest(1).

03/14/2017 MySQL Database System