Your company here — click to reach over 10,000 unique daily visitors

mysqltest - Man Page


mariadb-test — program to run test cases (mysqltest is now a symlink to mariadb-test)
mysqltest_embedded — program to run embedded test cases


mysqltest [options] [db_name]

mysqltest_embedded [options] [db_name]


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

mysqltest_embedded is similar but is built with support for the libmysqld embedded server.

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:

See Also

For more information, please refer to the MariaDB Knowledge Base, available online at https://mariadb.com/kb/


MariaDB Foundation (http://www.mariadb.org/).

Referenced By

The man pages mariadb-test(1), mariadb-test-embedded(1) and mysqltest_embedded(1) are aliases of mysqltest(1).

15 May 2020 MariaDB 10.11 MariaDB Database System