2009-09-16 14:03:18 +02:00
'\" t
2009-05-25 11:59:47 +02:00
. \"
2023-03-11 16:00:19 -08:00
.TH "\fBMARIADB-CLIENT-TEST\fR" "1" "15 May 2020" "MariaDB 10.11" "MariaDB Database System"
2009-09-16 14:03:18 +02:00
. \" -----------------------------------------------------------------
. \" * set default formatting
. \" -----------------------------------------------------------------
2009-05-25 11:59:47 +02:00
. \" disable hyphenation
.nh
. \" disable justification (adjust text to left margin only)
.ad l
2009-09-16 14:03:18 +02:00
. \" -----------------------------------------------------------------
. \" * MAIN CONTENT STARTS HERE *
. \" -----------------------------------------------------------------
. \" mysql_client_test
. \" mysql_client_test_embedded
2009-05-25 11:59:47 +02:00
.SH "NAME"
2022-05-27 15:04:31 +00:00
mariadb-client-test \- test client API (mysql_client_test is now a symlink to mariadb-client-test)
2009-05-25 11:59:47 +02:00
.br
2022-05-27 15:04:31 +00:00
mariadb-client-test-embedded \- test client API for embedded server (mysql_client_test_embedded is now a symlink to mariadb-client-test-embedded)
2009-05-25 11:59:47 +02:00
.SH "SYNOPSIS"
2009-09-16 14:03:18 +02:00
.HP \w '\fBmysql_client_test\ [\fR\fB\fIoptions\fR\fR\fB]\ [\fR\fB\fItest_name\fR\fR\fB]\ \& .\&.\&.\fR\ 'u
\fB mysql_client_test [\fR \fB \fI options\fR \fR \fB ] [\fR \fB \fI test_name\fR \fR \fB ] \& .\& .\& .\fR
.HP \w '\fBmysql_client_test_embedded\ [\fR\fB\fIoptions\fR\fR\fB]\ [\fR\fB\fItest_name\fR\fR\fB]\ \& .\&.\&.\fR\ 'u
\fB mysql_client_test_embedded [\fR \fB \fI options\fR \fR \fB ] [\fR \fB \fI test_name\fR \fR \fB ] \& .\& .\& .\fR
2009-05-25 11:59:47 +02:00
.SH "DESCRIPTION"
.PP
The
\fB mysql_client_test\fR
2015-09-09 14:32:52 +02:00
program is used for testing aspects of the MariaDB client API that cannot be tested using
2009-05-25 11:59:47 +02:00
\fB mysqltest\fR
2009-09-16 14:03:18 +02:00
and its test language\& .
2009-05-25 11:59:47 +02:00
\fB mysql_client_test_embedded\fR
2009-09-16 14:03:18 +02:00
is similar but used for testing the embedded server\& . Both programs are run as part of the test suite\& .
2009-05-25 11:59:47 +02:00
.PP
The source code for the programs can be found in in
2010-04-28 15:06:11 +02:00
tests/mysql_client_test\& .c
2009-09-16 14:03:18 +02:00
in a source distribution\& . The program serves as a good source of examples illustrating how to use various features of the client API\& .
2009-05-25 11:59:47 +02:00
.PP
\fB mysql_client_test\fR
2010-04-28 15:06:11 +02:00
is used in a test by the same name in the main tests suite of
\fB mysql\- test\- run\& .pl\fR
but may also be run directly\& . Unlike the other programs listed here, it does not read an external description of what tests to run\& . Instead, all tests are coded into the program, which is written to cover all aspects of the C language API\& .
.PP
\fB mysql_client_test\fR
2009-05-25 11:59:47 +02:00
supports the following options:
2009-09-16 14:03:18 +02:00
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql_client_test: help option
. \" help option: mysql_client_test
2009-05-25 11:59:47 +02:00
\fB \- \- help\fR ,
\fB \- ?\fR
.sp
2009-09-16 14:03:18 +02:00
Display a help message and exit\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2010-04-28 15:06:11 +02:00
\fB \- \- basedir=\fR \fB \fI dir_name\fR \fR ,
2009-09-16 14:03:18 +02:00
. \" mysql_client_test: basedir option
. \" basedir option: mysql_client_test
2010-04-28 15:06:11 +02:00
\fB \- b \fR \fB \fI dir_name\fR \fR
2009-05-25 11:59:47 +02:00
.sp
2009-09-16 14:03:18 +02:00
The base directory for the tests\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2010-04-28 15:06:11 +02:00
\fB \- \- count=\fR \fB \fI count\fR \fR ,
2009-09-16 14:03:18 +02:00
. \" mysql_client_test: count option
. \" count option: mysql_client_test
2010-04-28 15:06:11 +02:00
\fB \- t \fR \fB \fI count\fR \fR
2009-05-25 11:59:47 +02:00
.sp
2009-09-16 14:03:18 +02:00
The number of times to execute the tests\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql_client_test: database option
. \" database option: mysql_client_test
2009-05-25 11:59:47 +02:00
\fB \- \- database=\fR \fB \fI db_name\fR \fR ,
\fB \- D \fR \fB \fI db_name\fR \fR
.sp
2009-09-16 14:03:18 +02:00
The database to use\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql_client_test: debug option
. \" debug option: mysql_client_test
2009-05-25 11:59:47 +02:00
\fB \- \- debug[=\fR \fB \fI debug_options\fR \fR \fB ]\fR ,
\fB \- #[\fR \fB \fI debug_options\fR \fR \fB ]\fR
.sp
2015-09-09 14:32:52 +02:00
Write a debugging log if MariaDB is built with debugging support\& . The default
2009-05-25 11:59:47 +02:00
\fI debug_options\fR
MDEV-23789: Fix unnecessary acute accents in man pages
The man pages has several places where \' is intended to escape the single
quote and just print '. However, in reality this will print an ` (acute
accent). Fix this by removing excess backslashes. Also remove some excess
& in front of dots, such escaping is also unnecessary.
Also join several lines to avoid lone words in quotes to be read by groff
as macros when they are just text.
In a table (t{}) the content must be on new lines separately, so groff
will try to read them as macros too, so use \(aq that renders to '
(single quote).
This error was originally detected by Lintian:
https://lintian.debian.org/tags/acute-accent-in-manual-page
Example of man page sections before and after:
Make a backup of each table´s data file using the name tbl_name.OLD.
->
Make a backup of each table's data file using the name tbl_name.OLD.
A typical debug_options string is ´d:t:o,file_name´.
The default is ´d:t:o,/tmp/my_print_defaults.trace´.
->
A typical debug_options string is 'd:t:o,file_name'.
The default is 'd:t:o,/tmp/my_print_defaults.trace'.
shell> mysql --xml -uroot -e "SHOW VARIABLES LIKE ´version%´"
<?xml version="1.0"?>
<resultset statement="SHOW VARIABLES LIKE ´version%´" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
->
shell> mysql --xml -uroot -e "SHOW VARIABLES LIKE 'version%'"
<?xml version="1.0"?>
<resultset statement="SHOW VARIABLES LIKE 'version%'" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
This command was used to validate no man pages have syntax errors:
for x in *.?
do
echo "##### $x #####"
LC_ALL=C.UTF-8 MANROFFSEQ='' MANWIDTH=80 man --warnings -E UTF-8 -l -Tutf8 -Z $x >/dev/null
done
The man pages are not perfect after this, there are still a lot of
suboptimal syntax, but this helps towards better man pages.
All new code of the whole pull request, including one or several files
that are either new files or modified ones, are contributed under the
BSD-new license. I am contributing on behalf of my employer Amazon Web
Services, Inc.
2023-03-11 13:01:39 -08:00
value is 'd:t:o,/tmp/mysql_client_test.trace'.
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2010-04-28 15:06:11 +02:00
\fB \- \- getopt\- ll\- test=\fR \fB \fI option\fR \fR ,
2009-09-16 14:03:18 +02:00
. \" mysql_client_test: getopt-ll-test option
. \" getopt-ll-test option: mysql_client_test
2010-04-28 15:06:11 +02:00
\fB \- g \fR \fB \fI option\fR \fR
2009-05-25 11:59:47 +02:00
.sp
Option to use for testing bugs in the
getopt
2009-09-16 14:03:18 +02:00
library\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql_client_test: host option
. \" host option: mysql_client_test
2009-05-25 11:59:47 +02:00
\fB \- \- host=\fR \fB \fI host_name\fR \fR ,
\fB \- h \fR \fB \fI host_name\fR \fR
.sp
2015-09-09 14:32:52 +02:00
Connect to the MariaDB server on the given host\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql_client_test: password option
. \" password option: mysql_client_test
2009-05-25 11:59:47 +02:00
\fB \- \- password[=\fR \fB \fI password\fR \fR \fB ]\fR ,
\fB \- p[\fR \fB \fI password\fR \fR \fB ]\fR
.sp
2009-09-16 14:03:18 +02:00
The password to use when connecting to the server\& . If you use the short option form (\fB \- p\fR ), you
2009-05-25 11:59:47 +02:00
\fI cannot\fR
2009-09-16 14:03:18 +02:00
have a space between the option and the password\& . If you omit the
2009-05-25 11:59:47 +02:00
\fI password\fR
value following the
2009-09-16 14:03:18 +02:00
. \" mysql_client_test: password option
. \" password option: mysql_client_test
2009-05-25 11:59:47 +02:00
\fB \- \- password\fR
or
\fB \- p\fR
2009-09-16 14:03:18 +02:00
option on the command line, you are prompted for one\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql_client_test: port option
. \" port option: mysql_client_test
2009-05-25 11:59:47 +02:00
\fB \- \- port=\fR \fB \fI port_num\fR \fR ,
\fB \- P \fR \fB \fI port_num\fR \fR
.sp
2009-09-16 14:03:18 +02:00
The TCP/IP port number to use for the connection\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2010-04-28 15:06:11 +02:00
\fB \- \- server\- arg=\fR \fB \fI arg\fR \fR ,
2009-09-16 14:03:18 +02:00
. \" mysql_client_test: server-arg option
. \" server-arg option: mysql_client_test
2010-04-28 15:06:11 +02:00
\fB \- A \fR \fB \fI arg\fR \fR
2009-05-25 11:59:47 +02:00
.sp
2009-09-16 14:03:18 +02:00
Argument to send to the embedded server\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2010-04-28 15:06:11 +02:00
\fB \- \- show\- tests\fR ,
\fB \- T\fR
2009-05-25 11:59:47 +02:00
.sp
2009-09-16 14:03:18 +02:00
Show all test names\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql_client_test: silent option
. \" silent option: mysql_client_test
2009-05-25 11:59:47 +02:00
\fB \- \- silent\fR ,
\fB \- s\fR
.sp
2009-09-16 14:03:18 +02:00
Be more silent\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql_client_test: socket option
. \" socket option: mysql_client_test
2009-05-25 11:59:47 +02:00
\fB \- \- socket=\fR \fB \fI path\fR \fR ,
\fB \- S \fR \fB \fI path\fR \fR
.sp
The socket file to use when connecting to
localhost
2009-09-16 14:03:18 +02:00
(which is the default host)\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2010-04-28 15:06:11 +02:00
\fB \- \- testcase\fR ,
\fB \- c\fR
2009-05-25 11:59:47 +02:00
.sp
2010-04-28 15:06:11 +02:00
The option is used when called from
\fB mysql\- test\- run\& .pl\fR , so that
\fB mysql_client_test\fR
may optionally behave in a different way than if called manually, for example by skipping some tests\& . Currently, there is no difference in behavior but the option is included in order to make this possible\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql_client_test: user option
. \" user option: mysql_client_test
2009-05-25 11:59:47 +02:00
\fB \- \- user=\fR \fB \fI user_name\fR \fR ,
\fB \- u \fR \fB \fI user_name\fR \fR
.sp
2015-09-09 14:32:52 +02:00
The MariaDB user name to use when connecting to the server\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2009-05-25 11:59:47 +02:00
\fB \- v \fR \fB \fI dir_name\fR \fR ,
2009-09-16 14:03:18 +02:00
. \" mysql_client_test: vardir option
. \" vardir option: mysql_client_test
2009-05-25 11:59:47 +02:00
\fB \- \- vardir=\fR \fB \fI dir_name\fR \fR
.sp
2009-09-16 14:03:18 +02:00
The data directory for tests\& . The default is
mysql\- test/var\& .
.RE
2009-05-25 11:59:47 +02:00
.SH "COPYRIGHT"
2009-09-16 14:03:18 +02:00
.br
2009-05-25 11:59:47 +02:00
.PP
2020-05-15 17:35:47 +02:00
Copyright \(co 2007, 2010, Oracle and/or its affiliates, 2010-2020 MariaDB Foundation
2009-05-25 11:59:47 +02:00
.PP
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
.PP
This documentation is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
.PP
2019-05-11 21:29:06 +03:00
You should have received a copy of the GNU General Public License along with the program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA or see http://www.gnu.org/licenses/.
2009-09-16 14:03:18 +02:00
.sp
2009-05-25 11:59:47 +02:00
.SH "SEE ALSO"
2015-09-09 14:32:52 +02:00
For more information, please refer to the MariaDB Knowledge Base, available online at https://mariadb.com/kb/
2009-05-25 11:59:47 +02:00
.SH AUTHOR
2015-09-09 14:32:52 +02:00
MariaDB Foundation (http://www.mariadb.org/).