2009-09-16 14:03:18 +02:00
'\" t
2009-05-25 11:59:47 +02:00
. \"
2024-09-03 19:15:59 +02:00
.TH "\fBMARIADBD-MULTI\fR" "1" "3 September 2024" "MariaDB 11.4" "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 *
. \" -----------------------------------------------------------------
2024-09-03 19:15:59 +02:00
. \" mariadbd-multi
. \" tools: mariadbd-multi
2009-09-16 14:03:18 +02:00
. \" scripts
2024-09-03 19:15:59 +02:00
. \" multi mariadbd
2009-05-25 11:59:47 +02:00
.SH "NAME"
2024-09-03 19:15:59 +02:00
mariadbd-multi \- manage multiple MariaDB servers (mariadbd-multi is now a symlink to mariadbd-multi)
2009-05-25 11:59:47 +02:00
.SH "SYNOPSIS"
2024-09-03 19:15:59 +02:00
.HP \w '\fBmariadbd-multi\ [\fR\fB\fIoptions\fR\fR\fB]\ {start|stop|report}\ [\fR\fB\fIGNR\fR\fR\fB[,\fR\fB\fIGNR\fR\fR\fB]\ \& .\&.\&.]\fR\ 'u
\fB mariadbd-multi [\fR \fB \fI options\fR \fR \fB ] {start|stop|report} [\fR \fB \fI GNR\fR \fR \fB [,\fR \fB \fI GNR\fR \fR \fB ] \& .\& .\& .]\fR
2009-05-25 11:59:47 +02:00
.SH "DESCRIPTION"
.PP
2024-09-03 19:15:59 +02:00
\fB mariadbd-multi\fR
2009-05-25 11:59:47 +02:00
is designed to manage several
2024-09-03 19:15:59 +02:00
\fB mariadbd\fR
2015-09-10 20:12:50 +02:00
processes that listen for connections on different Unix socket files and TCP/IP ports\& . It can start or stop servers, or report their current status\& .
2009-05-25 11:59:47 +02:00
.PP
2024-09-03 19:15:59 +02:00
\fB mariadbd-multi\fR
2009-05-25 11:59:47 +02:00
searches for groups named
2024-09-03 19:15:59 +02:00
[mariadbd\fI N\fR ]
2009-05-25 11:59:47 +02:00
in
2009-09-16 14:03:18 +02:00
my\& .cnf
2009-05-25 11:59:47 +02:00
(or in the file named by the
\fB \- \- config\- file\fR
2009-09-16 14:03:18 +02:00
option)\& .
2009-05-25 11:59:47 +02:00
\fI N\fR
2009-09-16 14:03:18 +02:00
can be any positive integer\& . This number is referred to in the following discussion as the option group number, or
\fI GNR\fR \& . Group numbers distinguish option groups from one another and are used as arguments to
2024-09-03 19:15:59 +02:00
\fB mariadbd-multi\fR
2009-09-16 14:03:18 +02:00
to specify which servers you want to start, stop, or obtain a status report for\& . Options listed in these groups are the same that you would use in the
2024-09-03 19:15:59 +02:00
[mariadbd]
2009-05-25 11:59:47 +02:00
group used for starting
2024-09-03 19:15:59 +02:00
\fB mariadbd\fR \& . However, when using multiple servers, it is necessary that each one use its own value for options such as the Unix socket file and TCP/IP port number\& .
2009-05-25 11:59:47 +02:00
.PP
To invoke
2024-09-03 19:15:59 +02:00
\fB mariadbd-multi\fR , use the following syntax:
2009-05-25 11:59:47 +02:00
.sp
2009-09-16 14:03:18 +02:00
.if n \{ \
.RS 4
. \}
2009-05-25 11:59:47 +02:00
.nf
2024-09-03 19:15:59 +02:00
shell> \fB mariadbd-multi [\fR \fB \fI options\fR \fR \fB ] {start|stop|report} [\fR \fB \fI GNR\fR \fR \fB [,\fR \fB \fI GNR\fR \fR \fB ] \& .\& .\& .]\fR
2009-05-25 11:59:47 +02:00
.fi
2009-09-16 14:03:18 +02:00
.if n \{ \
2009-05-25 11:59:47 +02:00
.RE
2009-09-16 14:03:18 +02:00
. \}
2009-05-25 11:59:47 +02:00
.PP
start,
stop, and
report
2009-09-16 14:03:18 +02:00
indicate which operation to perform\& . You can perform the designated operation for a single server or multiple servers, depending on the
2009-05-25 11:59:47 +02:00
\fI GNR\fR
2009-09-16 14:03:18 +02:00
list that follows the option name\& . If there is no list,
2024-09-03 19:15:59 +02:00
\fB mariadbd-multi\fR
2009-09-16 14:03:18 +02:00
performs the operation for all servers in the option file\& .
2009-05-25 11:59:47 +02:00
.PP
Each
\fI GNR\fR
2009-09-16 14:03:18 +02:00
value represents an option group number or range of group numbers\& . The value should be the number at the end of the group name in the option file\& . For example, the
2009-05-25 11:59:47 +02:00
\fI GNR\fR
for a group named
2024-09-03 19:15:59 +02:00
[mariadbd17]
2009-05-25 11:59:47 +02:00
is
2009-09-16 14:03:18 +02:00
17\& . To specify a range of numbers, separate the first and last numbers by a dash\& . The
2009-05-25 11:59:47 +02:00
\fI GNR\fR
value
10\- 13
represents groups
2024-09-03 19:15:59 +02:00
[mariadbd10]
2009-05-25 11:59:47 +02:00
through
2024-09-03 19:15:59 +02:00
[mariadbd13]\& . Multiple groups or group ranges can be specified on the command line, separated by commas\& . There must be no whitespace characters (spaces or tabs) in the
2009-05-25 11:59:47 +02:00
\fI GNR\fR
2009-09-16 14:03:18 +02:00
list; anything after a whitespace character is ignored\& .
2009-05-25 11:59:47 +02:00
.PP
This command starts a single server using option group
2024-09-03 19:15:59 +02:00
[mariadbd17]:
2009-05-25 11:59:47 +02:00
.sp
2009-09-16 14:03:18 +02:00
.if n \{ \
.RS 4
. \}
2009-05-25 11:59:47 +02:00
.nf
2024-09-03 19:15:59 +02:00
shell> \fB mariadbd-multi start 17\fR
2009-05-25 11:59:47 +02:00
.fi
2009-09-16 14:03:18 +02:00
.if n \{ \
2009-05-25 11:59:47 +02:00
.RE
2009-09-16 14:03:18 +02:00
. \}
2009-05-25 11:59:47 +02:00
.PP
This command stops several servers, using option groups
2024-09-03 19:15:59 +02:00
[mariadbd8]
2009-05-25 11:59:47 +02:00
and
2024-09-03 19:15:59 +02:00
[mariadbd10]
2009-05-25 11:59:47 +02:00
through
2024-09-03 19:15:59 +02:00
[mariadbd13]:
2009-05-25 11:59:47 +02:00
.sp
2009-09-16 14:03:18 +02:00
.if n \{ \
.RS 4
. \}
2009-05-25 11:59:47 +02:00
.nf
2024-09-03 19:15:59 +02:00
shell> \fB mariadbd-multi stop 8,10\- 13\fR
2009-05-25 11:59:47 +02:00
.fi
2009-09-16 14:03:18 +02:00
.if n \{ \
2009-05-25 11:59:47 +02:00
.RE
2009-09-16 14:03:18 +02:00
. \}
2009-05-25 11:59:47 +02:00
.PP
For an example of how you might set up an option file, use this command:
.sp
2009-09-16 14:03:18 +02:00
.if n \{ \
.RS 4
. \}
2009-05-25 11:59:47 +02:00
.nf
2024-09-03 19:15:59 +02:00
shell> \fB mariadbd-multi \- \- example\fR
2009-05-25 11:59:47 +02:00
.fi
2009-09-16 14:03:18 +02:00
.if n \{ \
2009-05-25 11:59:47 +02:00
.RE
2009-09-16 14:03:18 +02:00
. \}
2009-05-25 11:59:47 +02:00
.PP
2024-09-03 19:15:59 +02:00
\fB mariadbd-multi\fR
2009-05-25 11:59:47 +02:00
searches for option files as follows:
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
. \}
2024-09-03 19:15:59 +02:00
. \" mariadbd-multi: no-defaults option
. \" no-defaults option: mariadbd-multi
2009-05-25 11:59:47 +02:00
With
2009-09-16 14:03:18 +02:00
\fB \- \- no\- defaults\fR , no option files are read\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2024-09-03 19:15:59 +02:00
. \" mariadbd-multi: defaults-file option
. \" defaults-file option: mariadbd-multi
2009-05-25 11:59:47 +02:00
With
2009-09-16 14:03:18 +02:00
\fB \- \- defaults\- file=\fR \fB \fI file_name\fR \fR , only the named file is read\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2024-09-03 19:15:59 +02:00
. \" mariadbd-multi: defaults-extra-file option
. \" defaults-extra-file option: mariadbd-multi
2009-05-25 11:59:47 +02:00
Otherwise, option files in the standard list of locations are read, including any file named by the
\fB \- \- defaults\- extra\- file=\fR \fB \fI file_name\fR \fR
2009-09-16 14:03:18 +02:00
option, if one is given\& . (If the option is given multiple times, the last value is used\& .)
2009-05-25 11:59:47 +02:00
.RE
.PP
2009-12-01 08:24:05 +01:00
Option files read are searched for
2024-09-03 19:15:59 +02:00
[mariadbd-multi]
2009-12-01 08:24:05 +01:00
and
2024-09-03 19:15:59 +02:00
[mariadbd\fI N\fR ]
2009-12-01 08:24:05 +01:00
option groups\& . The
2024-09-03 19:15:59 +02:00
[mariadbd-multi]
2009-12-01 08:24:05 +01:00
group can be used for options to
2024-09-03 19:15:59 +02:00
\fB mariadbd-multi\fR
2009-12-01 08:24:05 +01:00
itself\& .
2024-09-03 19:15:59 +02:00
[mariadbd\fI N\fR ]
2009-12-01 08:24:05 +01:00
groups can be used for options passed to specific
2024-09-03 19:15:59 +02:00
\fB mariadbd\fR
2009-12-01 08:24:05 +01:00
instances\& .
.PP
2015-09-10 20:12:50 +02:00
The
2024-09-03 19:15:59 +02:00
[mariadbd]
2009-12-01 08:24:05 +01:00
or
2024-09-03 19:15:59 +02:00
[mariadbd_safe]
2009-12-01 08:24:05 +01:00
groups can be used for common options read by all instances of
2024-09-03 19:15:59 +02:00
\fB mariadbd\fR
2009-12-01 08:24:05 +01:00
or
2024-09-03 19:15:59 +02:00
\fB mariadbd_safe\fR \& . You can specify a
2009-12-01 08:24:05 +01:00
\fB \- \- defaults\- file=\fR \fB \fI file_name\fR \fR
option to use a different configuration file for that instance, in which case the
2024-09-03 19:15:59 +02:00
[mariadbd]
2009-12-01 08:24:05 +01:00
or
2024-09-03 19:15:59 +02:00
[mariadbd_safe]
2015-09-10 20:12:50 +02:00
groups from that file will be used for that instance\& .
2009-12-01 08:24:05 +01:00
.PP
2024-09-03 19:15:59 +02:00
\fB mariadbd-multi\fR
2010-04-28 15:06:11 +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
. \}
2024-09-03 19:15:59 +02:00
. \" mariadbd-multi: help option
. \" help option: mariadbd-multi
2009-05-25 11:59:47 +02:00
\fB \- \- help\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
. \}
2024-09-03 19:15:59 +02:00
. \" mariadbd-multi: example option
. \" example option: mariadbd-multi
2009-05-25 11:59:47 +02:00
\fB \- \- example\fR
.sp
2009-09-16 14:03:18 +02:00
Display a sample option file\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2024-09-03 19:15:59 +02:00
. \" mariadbd-multi: log option
. \" log option: mariadbd-multi
2009-05-25 11:59:47 +02:00
\fB \- \- log=\fR \fB \fI file_name\fR \fR
.sp
2009-09-16 14:03:18 +02:00
Specify the name of the log file\& . If the file exists, log output is appended to it\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2024-09-03 19:15:59 +02:00
. \" mariadbd-multi: mariadb-admin option
. \" mariadb-admin option: mariadbd-multi
\fB \- \- mariadb-admin=\fR \fB \fI prog_name\fR \fR
2009-05-25 11:59:47 +02:00
.sp
The
2024-09-03 19:15:59 +02:00
\fB mariadb-admin\fR
2009-09-16 14:03:18 +02:00
binary to be used to stop servers\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2024-09-03 19:15:59 +02:00
. \" mariadbd-multi: mariadbd option
. \" mariadbd option: mariadbd-multi
\fB \- \- mariadbd=\fR \fB \fI prog_name\fR \fR
2009-05-25 11:59:47 +02:00
.sp
The
2024-09-03 19:15:59 +02:00
\fB mariadbd\fR
2009-09-16 14:03:18 +02:00
binary to be used\& . Note that you can specify
2024-09-03 19:15:59 +02:00
\fB mariadbd_safe\fR
2009-09-16 14:03:18 +02:00
as the value for this option also\& . If you use
2024-09-03 19:15:59 +02:00
\fB mariadbd_safe\fR
2009-05-25 11:59:47 +02:00
to start the server, you can include the
2024-09-03 19:15:59 +02:00
mariadbd
2009-05-25 11:59:47 +02:00
or
ledir
options in the corresponding
2024-09-03 19:15:59 +02:00
[mariadbd\fI N\fR ]
2009-09-16 14:03:18 +02:00
option group\& . These options indicate the name of the server that
2024-09-03 19:15:59 +02:00
\fB mariadbd_safe\fR
2009-09-16 14:03:18 +02:00
should start and the path name of the directory where the server is located\& . (See the descriptions for these options in
2024-09-03 19:15:59 +02:00
\fB mariadbd_safe\fR (1)\& .) Example:
2009-05-25 11:59:47 +02:00
.sp
2009-09-16 14:03:18 +02:00
.if n \{ \
.RS 4
. \}
2009-05-25 11:59:47 +02:00
.nf
2024-09-03 19:15:59 +02:00
[mariadbd38]
mariadbd = mariadbd\- debug
2009-05-25 11:59:47 +02:00
ledir = /opt/local/mysql/libexec
.fi
2009-09-16 14:03:18 +02:00
.if n \{ \
.RE
. \}
2009-05-25 11:59:47 +02:00
.RE
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
. \}
2024-09-03 19:15:59 +02:00
. \" mariadbd-multi: no-log option
. \" no-log option: mariadbd-multi
2009-05-25 11:59:47 +02:00
\fB \- \- no\- log\fR
.sp
Print log information to
stdout
2009-09-16 14:03:18 +02:00
rather than to the log file\& . By default, output goes to the log file\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2024-09-03 19:15:59 +02:00
. \" mariadbd-multi: password option
. \" password option: mariadbd-multi
2009-05-25 11:59:47 +02:00
\fB \- \- password=\fR \fB \fI password\fR \fR
.sp
2015-09-10 20:12:50 +02:00
The password of the MariaDB account to use when invoking
2024-09-03 19:15:59 +02:00
\fB mariadb-admin\fR \& . Note that the password value is not optional for this option, unlike for other MariaDB programs\& .
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
. \}
2024-09-03 19:15:59 +02:00
. \" mariadbd-multi: silent option
. \" silent option: mariadbd-multi
2009-05-25 11:59:47 +02:00
\fB \- \- silent\fR
.sp
2009-09-16 14:03:18 +02:00
Silent mode; disable warnings\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2024-09-03 19:15:59 +02:00
. \" mariadbd-multi: tcp-ip option
. \" tcp-ip option: mariadbd-multi
2009-05-25 11:59:47 +02:00
\fB \- \- tcp\- ip\fR
.sp
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
Connect to the MariaDB server(s) via the TCP/IP port instead of the UNIX socket\& . This affects stopping
and reporting. If a socket file is missing, the server may still be running, but can be accessed only
2015-09-10 20:12:50 +02:00
via the TCP/IP port\& . By default connecting is done via the UNIX socket\& . This option affects
stop and report operations\& .
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
. \}
2024-09-03 19:15:59 +02:00
. \" mariadbd-multi: user option
. \" user option: mariadbd-multi
2009-05-25 11:59:47 +02:00
\fB \- \- user=\fR \fB \fI user_name\fR \fR
.sp
2015-09-10 20:12:50 +02:00
The user name of the MariaDB account to use when invoking
2024-09-03 19:15:59 +02:00
\fB mariadb-admin\fR \& .
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
. \}
2024-09-03 19:15:59 +02:00
. \" mariadbd-multi: verbose option
. \" verbose option: mariadbd-multi
2009-05-25 11:59:47 +02:00
\fB \- \- verbose\fR
.sp
2009-09-16 14:03:18 +02:00
Be more verbose\& .
.RE
2009-05-25 11:59:47 +02:00
.sp
2009-09-16 14:03:18 +02:00
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2024-09-03 19:15:59 +02:00
. \" mariadbd-multi: version option
. \" version option: mariadbd-multi
2009-09-16 14:03:18 +02:00
\fB \- \- version\fR
2009-05-25 11:59:47 +02:00
.sp
2009-09-16 14:03:18 +02:00
Display version information and exit\& .
2009-05-25 11:59:47 +02:00
.RE
2016-12-07 11:58:40 +02:00
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2024-09-03 19:15:59 +02:00
. \" mariadbd-multi: wsrep-new-cluster option
. \" wsrep-new-cluster option: mariadbd-multi
2016-12-07 11:58:40 +02:00
\fB \- \- wsrep\- new\- cluster\fR
.sp
Bootstrap a cluster\& .
.RE
2009-05-25 11:59:47 +02:00
.PP
Some notes about
2024-09-03 19:15:59 +02:00
\fB mariadbd-multi\fR :
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
. \}
2009-05-25 11:59:47 +02:00
\fB Most important\fR : Before using
2024-09-03 19:15:59 +02:00
\fB mariadbd-multi\fR
2009-05-25 11:59:47 +02:00
be sure that you understand the meanings of the options that are passed to the
2024-09-03 19:15:59 +02:00
\fB mariadbd\fR
2009-05-25 11:59:47 +02:00
servers and
\fI why\fR
you would want to have separate
2024-09-03 19:15:59 +02:00
\fB mariadbd\fR
2009-09-16 14:03:18 +02:00
processes\& . Beware of the dangers of using multiple
2024-09-03 19:15:59 +02:00
\fB mariadbd\fR
2009-09-16 14:03:18 +02:00
servers with the same data directory\& . Use separate data directories, unless you
2009-05-25 11:59:47 +02:00
\fI know\fR
2009-09-16 14:03:18 +02:00
what you are doing\& . Starting multiple servers with the same data directory does
2009-05-25 11:59:47 +02:00
\fI not\fR
2015-09-10 20:12:50 +02:00
give you extra performance in a threaded system\& .
.sp .5v
.RE
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
. \}
2015-09-10 20:12:50 +02:00
\fB Important\fR : Make sure that the data directory for each server is fully accessible to the Unix account that the specific
2024-09-03 19:15:59 +02:00
\fB mariadbd\fR
2009-09-16 14:03:18 +02:00
process is started as\& .
2009-05-25 11:59:47 +02:00
\fI Do not\fR
use the Unix
\fI root\fR
account for this, unless you
\fI know\fR
2015-09-10 20:12:50 +02:00
what you are doing\& .
2009-09-16 14:03:18 +02:00
.sp .5v
.RE
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2015-09-10 20:12:50 +02:00
Make sure that the MariaDB account used for stopping the
2024-09-03 19:15:59 +02:00
\fB mariadbd\fR
2009-05-25 11:59:47 +02:00
servers (with the
2024-09-03 19:15:59 +02:00
\fB mariadbadmin\fR
2009-09-16 14:03:18 +02:00
program) has the same user name and password for each server\& . Also, make sure that the account has the
2009-05-25 11:59:47 +02:00
SHUTDOWN
2009-09-16 14:03:18 +02:00
privilege\& . If the servers that you want to manage have different user names or passwords for the administrative accounts, you might want to create an account on each server that has the same user name and password\& . For example, you might set up a common
2009-05-25 11:59:47 +02:00
multi_admin
account by executing the following commands for each server:
.sp
2009-09-16 14:03:18 +02:00
.if n \{ \
.RS 4
. \}
2009-05-25 11:59:47 +02:00
.nf
2024-09-03 19:15:59 +02:00
shell> \fB mariadb \- u root \- S /tmp/mariadb\& .sock \- p\fR
2009-05-25 11:59:47 +02:00
Enter password:
2024-09-03 19:15:59 +02:00
mariadb> \fB GRANT SHUTDOWN ON *\& .*\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
\- > \fB TO 'multi_admin'@'localhost' IDENTIFIED BY 'multipass';\fR
2009-05-25 11:59:47 +02:00
.fi
2009-09-16 14:03:18 +02:00
.if n \{ \
2009-05-25 11:59:47 +02:00
.RE
2009-09-16 14:03:18 +02:00
. \}
.sp
2015-09-10 20:12:50 +02:00
Change the connection parameters appropriately when connecting to each one\& . Note that the host name part of the account name must allow you to connect as
2009-05-25 11:59:47 +02:00
multi_admin
from the host where you want to run
2024-09-03 19:15:59 +02:00
\fB mariadbd-multi\fR \& .
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
The Unix socket file and the TCP/IP port number must be different for every
2024-09-03 19:15:59 +02:00
\fB mariadbd\fR \& . (Alternatively, if the host has multiple network addresses, you can use
2009-05-25 11:59:47 +02:00
\fB \- \- bind\- address\fR
2009-09-16 14:03:18 +02:00
to cause different servers to listen to different interfaces\& .)
.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
The
\fB \- \- pid\- file\fR
option is very important if you are using
2024-09-03 19:15:59 +02:00
\fB mariadbd-safe\fR
2009-05-25 11:59:47 +02:00
to start
2024-09-03 19:15:59 +02:00
\fB mariadbd\fR
2009-05-25 11:59:47 +02:00
(for example,
2024-09-03 19:15:59 +02:00
\fB \- \- mariadbd=mariadbd-safe\fR ) Every
\fB mariadbd\fR
2009-09-16 14:03:18 +02:00
should have its own process ID file\& . The advantage of using
2024-09-03 19:15:59 +02:00
\fB mariadbd-safe\fR
2009-05-25 11:59:47 +02:00
instead of
2024-09-03 19:15:59 +02:00
\fB mariadbd\fR
2009-05-25 11:59:47 +02:00
is that
2024-09-03 19:15:59 +02:00
\fB mariadbd-safe\fR
2009-05-25 11:59:47 +02:00
monitors its
2024-09-03 19:15:59 +02:00
\fB mariadbd\fR
2009-05-25 11:59:47 +02:00
process and restarts it if the process terminates due to a signal sent using
kill \- 9
2009-09-16 14:03:18 +02:00
or for other reasons, such as a segmentation fault\& . Please note that the
2024-09-03 19:15:59 +02:00
\fB mariadbd-safe\fR
2009-09-16 14:03:18 +02:00
script might require that you start it from a certain place\& . This means that you might have to change location to a certain directory before running
2024-09-03 19:15:59 +02:00
\fB mariadbd-multi\fR \& . If you have problems starting, please see the
\fB mariadbd-safe\fR
2009-09-16 14:03:18 +02:00
script\& . Check especially the lines:
2009-05-25 11:59:47 +02:00
.sp
2009-09-16 14:03:18 +02:00
.if n \{ \
.RS 4
. \}
2009-05-25 11:59:47 +02:00
.nf
\- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \-
MY_PWD=`pwd`
# Check if we are starting this relative (for the binary release)
2024-09-03 19:15:59 +02:00
if test \- d $MY_PWD/data/mariadb \- a \e
2022-12-12 14:20:08 +11:00
\- f \& ./share/mariadb/english/errmsg\& .sys \- a \e
\- x \& ./bin/mariadbd
2009-05-25 11:59:47 +02:00
\- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \-
.fi
2009-09-16 14:03:18 +02:00
.if n \{ \
2009-05-25 11:59:47 +02:00
.RE
2009-09-16 14:03:18 +02:00
. \}
.sp
The test performed by these lines should be successful, or you might encounter problems\& . See
2024-09-03 19:15:59 +02:00
\fB mariadbd-safe\fR (1)\& .
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
You might want to use the
\fB \- \- user\fR
option for
2024-09-03 19:15:59 +02:00
\fB mariadbd\fR , but to do this you need to run the
\fB mariadbd-multi\fR
2009-05-25 11:59:47 +02:00
script as the Unix
root
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
user\& . Having the option in the option file doesn't matter; you just get a warning if you are not the superuser and the
2024-09-03 19:15:59 +02:00
\fB mariadbd\fR
2009-09-16 14:03:18 +02:00
processes are started under your own Unix account\& .
2009-05-25 11:59:47 +02:00
.RE
.PP
The following example shows how you might set up an option file for use with
2024-09-03 19:15:59 +02:00
\fB mariadbd-multi\fR \& . The order in which the
\fB mariadbd\fR
2009-09-16 14:03:18 +02:00
programs are started or stopped depends on the order in which they appear in the option file\& . Group numbers need not form an unbroken sequence\& . The first and fifth
2024-09-03 19:15:59 +02:00
[mariadbd\fI N\fR ]
2009-05-25 11:59:47 +02:00
groups were intentionally omitted from the example to illustrate that you can have
\(lq gaps\(rq
2009-09-16 14:03:18 +02:00
in the option file\& . This gives you more flexibility\& .
2009-05-25 11:59:47 +02:00
.sp
2009-09-16 14:03:18 +02:00
.if n \{ \
.RS 4
. \}
2009-05-25 11:59:47 +02:00
.nf
2009-09-16 14:03:18 +02:00
# This file should probably be in your home dir (~/\& .my\& .cnf)
# or /etc/my\& .cnf
# Version 2\& .1 by Jani Tolonen
2024-09-03 19:15:59 +02:00
[mariadbd-multi]
mariadbd = /usr/local/bin/mariadbd-safe
mariadb-admin = /usr/local/bin/mariadb-admin
2009-05-25 11:59:47 +02:00
user = multi_admin
password = multipass
2024-09-03 19:15:59 +02:00
[mariadbd2]
socket = /tmp/mariadb\& .sock2
2009-05-25 11:59:47 +02:00
port = 3307
2009-09-16 14:03:18 +02:00
pid\- file = /usr/local/mysql/var2/hostname\& .pid2
2009-05-25 11:59:47 +02:00
datadir = /usr/local/mysql/var2
2022-12-12 14:20:08 +11:00
language = /usr/local/share/mariadb/english
2009-05-25 11:59:47 +02:00
user = john
2024-09-03 19:15:59 +02:00
[mariadbd3]
2009-09-16 14:03:18 +02:00
socket = /tmp/mysql\& .sock3
2009-05-25 11:59:47 +02:00
port = 3308
2009-09-16 14:03:18 +02:00
pid\- file = /usr/local/mysql/var3/hostname\& .pid3
2009-05-25 11:59:47 +02:00
datadir = /usr/local/mysql/var3
2022-12-12 14:20:08 +11:00
language = /usr/local/share/mariadb/swedish
2009-05-25 11:59:47 +02:00
user = monty
2024-09-03 19:15:59 +02:00
[mariadbd4]
2009-09-16 14:03:18 +02:00
socket = /tmp/mysql\& .sock4
2009-05-25 11:59:47 +02:00
port = 3309
2009-09-16 14:03:18 +02:00
pid\- file = /usr/local/mysql/var4/hostname\& .pid4
2009-05-25 11:59:47 +02:00
datadir = /usr/local/mysql/var4
2022-12-12 14:20:08 +11:00
language = /usr/local/share/mariadb/estonia
2009-05-25 11:59:47 +02:00
user = tonu
2024-09-03 19:15:59 +02:00
[mariadbd6]
2009-09-16 14:03:18 +02:00
socket = /tmp/mysql\& .sock6
2009-05-25 11:59:47 +02:00
port = 3311
2009-09-16 14:03:18 +02:00
pid\- file = /usr/local/mysql/var6/hostname\& .pid6
2009-05-25 11:59:47 +02:00
datadir = /usr/local/mysql/var6
2022-12-12 14:20:08 +11:00
language = /usr/local/share/mariadb/japanese
2009-05-25 11:59:47 +02:00
user = jani
.fi
2009-09-16 14:03:18 +02:00
.if n \{ \
2009-05-25 11:59:47 +02:00
.RE
2009-09-16 14:03:18 +02:00
. \}
2009-05-25 11:59:47 +02:00
.PP
.SH "COPYRIGHT"
2009-09-16 14:03:18 +02:00
.br
2009-05-25 11:59:47 +02:00
.PP
2024-09-03 19:15:59 +02:00
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc., 2010-2024 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/).