The mysql-stress-test.pl Perl script performs stress-testing of
the MariaDB server.
mysql-stress-test.pl requires a version of Perl that has been
built with threads support.
Invoke mysql-stress-test.pl like this:
shell> mysql-stress-test.pl [options]mysql-stress-test.pl supports the following options:
Display a help message and exit.
Causes the program to abort if an error with severity less
than or equal to N was encountered. Set to 1 to abort on any
Periodically check the file that lists the tests to be run.
If it has been modified, reread the file. This can be useful
if you update the list of tests to be run during a stress
Force cleanup of the working directory.
Log error details in the global error log file.
In sequential test mode, the number of loops to execute
The path name to the mysqltest program.
The database to use for the tests. The default is test.
The host name of the local host to use for making a TCP/IP
connection to the local server. By default, the connection is
made to localhost using a Unix socket file.
This option is required. path is the directory where all
client session logs will be stored. Usually this is the
shared directory that is associated with the server used for
The password to use when connecting to the server.
The TCP/IP port number to use for connecting to the server.
The default is 3306.
For connections to localhost, the Unix socket file to use,
or, on Windows, the name of the named pipe to use. The
default is /tmp/mysql.sock.
The MariaDB user name to use when connecting to the server.
The default is root.
The delay in seconds between test executions.
This option is required. path is the working directory for
the test run. It is used as the temporary location for result
tracking during testing.
The directory of data files to be used during testing. The
default location is the data directory under the location
given by the --stress-suite-basedir option.
• --stress-init-file[=path]file_name is the location of the file that contains the list
of tests to be run once to initialize the database for the
testing. If missing, the default file is stress_init.txt in
the test suite directory.
This option indicates the test order in stress-test mode. The
mode value is either random to select tests in random order
or seq to run tests in each thread in the order specified in
the test list file. The default mode is random.
This option is required. path is the directory that has the
t and r subdirectories containing the test case and result
files. This directory is also the default location of the
stress-test.txt file that contains the list of tests. (A
different location can be specified with the
Use this option to run the stress tests. file_name is the
location of the file that contains the list of tests. If
file_name is omitted, the default file is stress-test.txt in
the stress suite directory. (See --stress-suite-basedir.)
Run the named test suite. The default name is main (the
regular test suite located in the mysql-test directory).
The number of tests to execute before exiting.
The duration of stress testing in seconds.
The number of threads. The default is 1.
Verbose mode. Print more information about what the program
This page is part of the MariaDB (MariaDB database server)
project. Information about the project can be found at
⟨http://mariadb.org/⟩. If you have a bug report for this manual
page, see ⟨https://mariadb.com/kb/en/mariadb/reporting-bugs/⟩.
This page was obtained from the project's upstream Git repository
⟨https://github.com/MariaDB/server⟩ on 2021-08-27. (At that
time, the date of the most recent commit that was found in the
repository was 2021-08-26.) If you discover any rendering
problems in this HTML version of the page, or you believe there
is a better or more up-to-date source for the page, or you have
corrections or improvements to the information in this COLOPHON
(which is not part of the original manual page), send a mail to
MariaDB 10.6 15 May 2020 MYSQL-STRESS-TE(1)