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-SAFE\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-safe
. \" tools: mariadbd-safe
2009-09-16 14:03:18 +02:00
. \" scripts
2009-05-25 11:59:47 +02:00
.SH "NAME"
2024-09-03 19:15:59 +02:00
mariadbd-safe \- MariaDB server startup script (mariadbd-safe is now a symlink to mariadbd-safe)
2009-05-25 11:59:47 +02:00
.SH "SYNOPSIS"
2024-09-03 19:15:59 +02:00
.HP \w '\fBmariadbd-safe\ \fR \fB \fI options\fR\fR\ 'u
\fB mariadbd-safe \fR \fB \fI options\fR \fR
2009-05-25 11:59:47 +02:00
.SH "DESCRIPTION"
.PP
2024-09-03 19:15:59 +02:00
\fB mariadbd-safe\fR
2009-05-25 11:59:47 +02:00
is the recommended way to start a
2024-09-03 19:15:59 +02:00
\fB mariadbd\fR
2015-09-09 14:32:52 +02:00
server on Unix\& .
2024-09-03 19:15:59 +02:00
\fB mariadbd-safe\fR
2015-09-09 14:32:52 +02:00
adds some safety features such as restarting the server when an error occurs and logging runtime information to an error log file\& . Descriptions of error logging is given later in this section\& .
2009-05-25 11:59:47 +02:00
.sp
2024-09-03 19:15:59 +02:00
\fB mariadbd-safe\fR
2009-05-25 11:59:47 +02:00
tries to start an executable named
2024-09-03 19:15:59 +02:00
\fB mariadbd\fR \& . To override the default behavior and specify explicitly the name of the server you want to run, specify a
\fB \- \- mariadbd\fR
2009-05-25 11:59:47 +02:00
or
2024-09-03 19:15:59 +02:00
\fB \- \- mariadbd\- version\fR
2009-05-25 11:59:47 +02:00
option to
2024-09-03 19:15:59 +02:00
\fB mariadbd-safe\fR \& . You can also use
2009-05-25 11:59:47 +02:00
\fB \- \- ledir\fR
to indicate the directory where
2024-09-03 19:15:59 +02:00
\fB mariadbd-safe\fR
2009-09-16 14:03:18 +02:00
should look for the server\& .
2009-05-25 11:59:47 +02:00
.PP
Many of the options to
2024-09-03 19:15:59 +02:00
\fB mariadbd-safe\fR
2009-05-25 11:59:47 +02:00
are the same as the options to
2024-09-03 19:15:59 +02:00
\fB mariadbd\fR \& .
2009-05-25 11:59:47 +02:00
.PP
2009-09-16 14:03:18 +02:00
Options unknown to
2024-09-03 19:15:59 +02:00
\fB mariadbd-safe\fR
2009-09-16 14:03:18 +02:00
are passed to
2024-09-03 19:15:59 +02:00
\fB mariadbd\fR
2009-09-16 14:03:18 +02:00
if they are specified on the command line, but ignored if they are specified in the
2024-10-03 15:59:20 +10:00
[mariadbd-safe] or [mariadbd_safe]
2015-09-09 14:32:52 +02:00
groups of an option file\& .
2009-05-25 11:59:47 +02:00
.PP
2024-09-03 19:15:59 +02:00
\fB mariadbd-safe\fR
2009-05-25 11:59:47 +02:00
reads all options from the
2024-09-03 19:15:59 +02:00
[mariadbd],
2013-09-19 22:24:39 +02:00
[server],
2024-10-03 15:59:20 +10:00
[mariadbd-safe] and [mariadbd_safe]
2009-09-16 14:03:18 +02:00
sections in option files\& . For example, if you specify a
2024-09-03 19:15:59 +02:00
[mariadbd]
2009-05-25 11:59:47 +02:00
section like this,
2024-09-03 19:15:59 +02:00
\fB mariadbd-safe\fR
2009-05-25 11:59:47 +02:00
will find and use the
\fB \- \- log\- error\fR
option:
.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
[mariadbd]
2009-09-16 14:03:18 +02:00
log\- error=error\& .log
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 backward compatibility,
2024-09-03 19:15:59 +02:00
\fB mariadbd-safe\fR
2009-05-25 11:59:47 +02:00
also reads
2024-09-03 19:15:59 +02:00
[safe_mariadbd]
2009-05-25 11:59:47 +02:00
sections, although you should rename such sections to
2024-09-03 19:15:59 +02:00
[mariadbd-safe]
2015-09-09 14:32:52 +02:00
in current installations\& .
2009-05-25 11:59:47 +02:00
.PP
2024-09-03 19:15:59 +02:00
\fB mariadbd-safe\fR
2015-09-09 14:32:52 +02:00
supports the options in the following list\& . It also reads option files and supports the options for processing them.
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-safe: help option
. \" help option: mariadbd-safe
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-safe: basedir option
. \" basedir option: mariadbd-safe
2009-05-25 11:59:47 +02:00
\fB \- \- basedir=\fR \fB \fI path\fR \fR
.sp
2015-09-09 14:32:52 +02:00
The path to the MariaDB installation directory\& .
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-safe: core-file-size option
. \" core-file-size option: mariadbd-safe
2009-05-25 11:59:47 +02:00
\fB \- \- core\- file\- size=\fR \fB \fI size\fR \fR
.sp
The size of the core file that
2024-09-03 19:15:59 +02:00
\fB mariadbd\fR
2009-09-16 14:03:18 +02:00
should be able to create\& . The option value is passed to
\fB ulimit \- c\fR \& .
.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-safe: crash-script option
. \" crash-script option: mariadbd-safe
2015-09-10 20:12:50 +02:00
\fB \- \- crash\- script=\fR \fB \fI file\fR \fR
.sp
2024-09-03 19:15:59 +02:00
Script to call in the event of mariadbd crashing\& .
2015-09-10 20:12:50 +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-safe: datadir option
. \" datadir option: mariadbd-safe
2009-05-25 11:59:47 +02:00
\fB \- \- datadir=\fR \fB \fI path\fR \fR
.sp
2009-09-16 14:03:18 +02:00
The path to the data directory\& .
.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-safe: defaults-extra-file option
. \" defaults-extra-file option: mariadbd-safe
2009-05-25 11:59:47 +02:00
\fB \- \- defaults\- extra\- file=\fR \fB \fI path\fR \fR
.sp
2009-09-16 14:03:18 +02:00
The name of an option file to be read in addition to the usual option files\& . This must be the first option on the command line if it is used\& . If the file does not exist or is otherwise inaccessible, the server will exit with an error\& .
.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-safe: defaults-file option
. \" defaults-file option: mariadbd-safe
2009-05-25 11:59:47 +02:00
\fB \- \- defaults\- file=\fR \fB \fI file_name\fR \fR
.sp
2009-09-16 14:03:18 +02:00
The name of an option file to be read instead of the usual option files\& . This must be the first option on the command line if it is used\& .
.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-safe: flush-caches option
. \" flush-caches option: mariadbd-safe
2015-09-10 20:12:50 +02:00
\fB \- \- flush\- caches\fR
.sp
Flush and purge buffers/caches before starting the server\& .
.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-safe: ledir option
. \" ledir option: mariadbd-safe
2009-05-25 11:59:47 +02:00
\fB \- \- ledir=\fR \fB \fI path\fR \fR
.sp
If
2024-09-03 19:15:59 +02:00
\fB mariadbd-safe\fR
2009-09-16 14:03:18 +02:00
cannot find the server, use this option to indicate the path name to the directory where the server is located\& .
.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-safe: log-error option
. \" log-error option: mariadbd-safe
2009-05-25 11:59:47 +02:00
\fB \- \- log\- error=\fR \fB \fI file_name\fR \fR
.sp
2015-09-10 20:12:50 +02:00
Write the error log to the given 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-safe: malloc-lib option
. \" malloc-lib option: mariadbd-safe
2015-09-10 20:12:50 +02:00
\fB \- \- malloc\- lib=\fR \fB \fI lib\fR \fR
.sp
Preload shared library lib if available\& .
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-safe: mariadbd option
. \" mariadbd option: mariadbd-safe
\fB \- \- mariadbd=\fR \fB \fI prog_name\fR \fR
2009-05-25 11:59:47 +02:00
.sp
The name of the server program (in the
ledir
2015-09-09 14:32:52 +02:00
directory) that you want to start\& . This option is needed if you use the MariaDB binary distribution but have the data directory outside of the binary distribution\& . If
2024-09-03 19:15:59 +02:00
\fB mariadbd-safe\fR
2009-05-25 11:59:47 +02:00
cannot find the server, use the
\fB \- \- ledir\fR
2009-09-16 14:03:18 +02:00
option to indicate the path name to the directory where the server is located\& .
.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-safe: mariadbd-version option
. \" mariadbd-version option: mariadbd-safe
\fB \- \- mariadbd\- version=\fR \fB \fI suffix\fR \fR
2009-05-25 11:59:47 +02:00
.sp
This option is similar to the
2024-09-03 19:15:59 +02:00
\fB \- \- mariadbd\fR
2009-09-16 14:03:18 +02:00
option, but you specify only the suffix for the server program name\& . The basename is assumed to be
2024-09-03 19:15:59 +02:00
\fB mariadbd\fR \& . For example, if you use
\fB \- \- mariadbd\- version=debug\fR ,
\fB mariadbd-safe\fR
2009-05-25 11:59:47 +02:00
starts the
2024-09-03 19:15:59 +02:00
\fB mariadbd\- debug\fR
2009-05-25 11:59:47 +02:00
program in the
ledir
2009-09-16 14:03:18 +02:00
directory\& . If the argument to
2024-09-03 19:15:59 +02:00
\fB \- \- mariadbd\- version\fR
2009-05-25 11:59:47 +02:00
is empty,
2024-09-03 19:15:59 +02:00
\fB mariadbd-safe\fR
2009-05-25 11:59:47 +02:00
uses
2024-09-03 19:15:59 +02:00
\fB mariadbd\fR
2009-05-25 11:59:47 +02:00
in the
ledir
2009-09-16 14:03:18 +02:00
directory\& .
.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-safe: nice option
. \" nice option: mariadbd-safe
2009-05-25 11:59:47 +02:00
\fB \- \- nice=\fR \fB \fI priority\fR \fR
.sp
Use the
nice
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
program to set the server's scheduling priority to the given value\& .
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-safe: no-auto-restart option
. \" no-auto-restart option: mariadbd-safe
2022-11-02 16:24:36 +02:00
\fB \- \- no\- auto\- restart\fR ,
\fB \- \- nowatch\fR ,
\fB \- \- no\- watch\fR
2015-09-10 20:12:50 +02:00
.sp
2024-09-03 19:15:59 +02:00
Exit after starting mariadbd\& .
2015-09-10 20:12:50 +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-safe: no-defaults option
. \" no-defaults option: mariadbd-safe
2009-05-25 11:59:47 +02:00
\fB \- \- no\- defaults\fR
.sp
2009-09-16 14:03:18 +02:00
Do not read any option files\& . This must be the first option on the command line if it is used\& .
.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-safe: numa-interleave option
. \" numa-interleave option: mariadbd-safe
2015-09-10 20:12:50 +02:00
\fB \- \- numa\- interleave\fR
.sp
2024-09-03 19:15:59 +02:00
Run mariadbd with its memory interleaved on all NUMA nodes\& .
2015-09-10 20:12:50 +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-safe: open-files-limit option
. \" open-files-limit option: mariadbd-safe
2009-05-25 11:59:47 +02:00
\fB \- \- open\- files\- limit=\fR \fB \fI count\fR \fR
.sp
The number of files that
2024-09-03 19:15:59 +02:00
\fB mariadbd\fR
2009-09-16 14:03:18 +02:00
should be able to open\& . The option value is passed to
\fB ulimit \- n\fR \& . Note that you need to start
2024-09-03 19:15:59 +02:00
\fB mariadbd-safe\fR
2009-05-25 11:59:47 +02:00
as
root
for this to work properly!
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-safe: pid-file option
. \" pid-file option: mariadbd-safe
2009-05-25 11:59:47 +02:00
\fB \- \- pid\- file=\fR \fB \fI file_name\fR \fR
.sp
2009-09-16 14:03:18 +02:00
The path name of the process ID 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-safe: plugin-dir option
. \" plugin-dir option: mariadbd-safe
2015-09-10 20:12:50 +02:00
\fB \- \- plugin\- dir=\fI dir_name\fR
.sp
Directory for client-side plugins\& .
.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-safe: port option
. \" port option: mariadbd-safe
2009-05-25 11:59:47 +02:00
\fB \- \- port=\fR \fB \fI port_num\fR \fR
.sp
2009-09-16 14:03:18 +02:00
The port number that the server should use when listening for TCP/IP connections\& . The port number must be 1024 or higher unless the server is started by the
2009-05-25 11:59:47 +02:00
root
2009-09-16 14:03:18 +02:00
system user\& .
.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-safe: skip-kill-mariadbd option
. \" skip-kill-mariadbd option: mariadbd-safe
\fB \- \- skip\- kill\- mariadbd\fR
2009-05-25 11:59:47 +02:00
.sp
Do not try to kill stray
2024-09-03 19:15:59 +02:00
\fB mariadbd\fR
2009-09-16 14:03:18 +02:00
processes at startup\& . This option works only on Linux\& .
.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-safe: socket option
. \" socket option: mariadbd-safe
2009-05-25 11:59:47 +02:00
\fB \- \- socket=\fR \fB \fI path\fR \fR
.sp
2009-09-16 14:03:18 +02:00
The Unix socket file that the server should use when listening for local connections\& .
.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-safe: syslog option
. \" syslog option: mariadbd-safe
. \" mariadbd-safe: skip-syslog option
. \" skip-syslog option: mariadbd-safe
2009-05-25 11:59:47 +02:00
\fB \- \- syslog\fR ,
\fB \- \- skip\- syslog\fR
.sp
\fB \- \- syslog\fR
causes error messages to be sent to
syslog
on systems that support the
\fB logger\fR
2009-09-16 14:03:18 +02:00
program\& .
2009-05-25 11:59:47 +02:00
\- \- skip\- syslog
suppresses the use of
2015-09-09 14:32:52 +02:00
syslog; messages are written to an error log file\& .
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-safe: syslog-tag option
. \" syslog-tag option: mariadbd-safe
2009-05-25 11:59:47 +02:00
\fB \- \- syslog\- tag=\fR \fB \fI tag\fR \fR
.sp
For logging to
syslog, messages from
2024-09-03 19:15:59 +02:00
\fB mariadbd-safe\fR
2009-05-25 11:59:47 +02:00
and
2024-09-03 19:15:59 +02:00
\fB mariadbd\fR
2009-05-25 11:59:47 +02:00
are written with a tag of
2024-09-03 19:15:59 +02:00
mariadbd-safe
2009-05-25 11:59:47 +02:00
and
2024-09-03 19:15:59 +02:00
mariadbd, respectively\& . To specify a suffix for the tag, use
2009-05-25 11:59:47 +02:00
\fB \- \- syslog\- tag=\fR \fB \fI tag\fR \fR , which modifies the tags to be
2024-09-03 19:15:59 +02:00
mariadbd-safe\- \fI tag\fR
2009-05-25 11:59:47 +02:00
and
2024-09-03 19:15:59 +02:00
mariadbd\- \fI tag\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-safe: timezone option
. \" timezone option: mariadbd-safe
2009-05-25 11:59:47 +02:00
\fB \- \- timezone=\fR \fB \fI timezone\fR \fR
.sp
Set the
TZ
2009-09-16 14:03:18 +02:00
time zone environment variable to the given option value\& . Consult your operating system documentation for legal time zone specification formats\& .
.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-safe: user option
. \" user option: mariadbd-safe
2009-05-25 11:59:47 +02:00
\fB \- \- user={\fR \fB \fI user_name\fR \fR \fB |\fR \fB \fI user_id\fR \fR \fB }\fR
.sp
Run the
2024-09-03 19:15:59 +02:00
\fB mariadbd\fR
2009-05-25 11:59:47 +02:00
server as the user having the name
\fI user_name\fR
or the numeric user ID
2009-09-16 14:03:18 +02:00
\fI user_id\fR \& . (\(lq User\(rq
2015-09-10 20:12:50 +02:00
in this context refers to a system login account, not a MariaDB user listed in the grant tables\& .)
2009-05-25 11:59:47 +02:00
.RE
.PP
If you execute
2024-09-03 19:15:59 +02:00
\fB mariadbd-safe\fR
2009-05-25 11:59:47 +02:00
with the
\fB \- \- defaults\- file\fR
or
\fB \- \- defaults\- extra\- file\fR
2009-09-16 14:03:18 +02:00
option to name an option file, the option must be the first one given on the command line or the option file will not be used\& . For example, this command will not use the named option file:
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
mariadb> \fB mariadbd-safe \- \- port=\fR \fB \fI port_num\fR \fR \fB \- \- defaults\- file=\fR \fB \fI file_name\fR \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
Instead, use the following 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
mariadb> \fB mariadbd-safe \- \- defaults\- file=\fR \fB \fI file_name\fR \fR \fB \- \- port=\fR \fB \fI port_num\fR \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
The
2024-09-03 19:15:59 +02:00
\fB mariadbd-safe\fR
2015-09-10 20:12:50 +02:00
script is written so that it normally can start a server that was installed from either a source or a binary distribution of MariaDB, even though these types of distributions typically install the server in slightly different locations\& .
2024-09-03 19:15:59 +02:00
\fB mariadbd-safe\fR
2009-05-25 11:59:47 +02:00
expects one of the following conditions to be true:
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
The server and databases can be found relative to the working directory (the directory from which
2024-09-03 19:15:59 +02:00
\fB mariadbd-safe\fR
2009-09-16 14:03:18 +02:00
is invoked)\& . For binary distributions,
2024-09-03 19:15:59 +02:00
\fB mariadbd-safe\fR
2009-05-25 11:59:47 +02:00
looks under its working directory for
2009-09-16 14:03:18 +02:00
bin
2009-05-25 11:59:47 +02:00
and
2009-09-16 14:03:18 +02:00
data
directories\& . For source distributions, it looks for
libexec
2009-05-25 11:59:47 +02:00
and
2009-09-16 14:03:18 +02:00
var
directories\& . This condition should be met if you execute
2024-09-03 19:15:59 +02:00
\fB mariadbd-safe\fR
2015-09-10 20:12:50 +02:00
from your MariaDB installation directory (for example,
2009-09-16 14:03:18 +02:00
/usr/local/mysql
for a binary distribution)\& .
.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
If the server and databases cannot be found relative to the working directory,
2024-09-03 19:15:59 +02:00
\fB mariadbd-safe\fR
2009-09-16 14:03:18 +02:00
attempts to locate them by absolute path names\& . Typical locations are
/usr/local/libexec
2009-05-25 11:59:47 +02:00
and
2015-09-10 20:12:50 +02:00
/usr/local/var\& . The actual locations are determined from the values configured into the distribution at the time it was built\& . They should be correct if MariaDB is installed in the location specified at configuration time\& .
2009-05-25 11:59:47 +02:00
.RE
.PP
Because
2024-09-03 19:15:59 +02:00
\fB mariadbd-safe\fR
2015-09-10 20:12:50 +02:00
tries to find the server and databases relative to its own working directory, you can install a binary distribution of MariaDB anywhere, as long as you run
2024-09-03 19:15:59 +02:00
\fB mariadbd-safe\fR
2015-09-10 20:12:50 +02:00
from the MariaDB installation directory:
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
shell> \fB cd \fR \fB \fI mysql_installation_directory\fR \fR
2024-09-03 19:15:59 +02:00
shell> \fB bin/mariadbd-safe &\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
If
2024-09-03 19:15:59 +02:00
\fB mariadbd-safe\fR
2015-09-10 20:12:50 +02:00
fails, even when invoked from the MariaDB installation directory, you can specify the
2009-05-25 11:59:47 +02:00
\fB \- \- ledir\fR
and
\fB \- \- datadir\fR
2009-09-16 14:03:18 +02:00
options to indicate the directories in which the server and databases are located on your system\& .
2009-05-25 11:59:47 +02:00
.PP
When you use
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 ,
\fB mariadbd-safe\fR
2009-05-25 11:59:47 +02:00
arranges for error (and notice) messages from itself and from
2024-09-03 19:15:59 +02:00
\fB mariadbd\fR
2009-09-16 14:03:18 +02:00
to go to the same destination\& .
2009-05-25 11:59:47 +02:00
.PP
2015-09-10 20:12:50 +02:00
There are several
2024-09-03 19:15:59 +02:00
\fB mariadbd-safe\fR
2009-05-25 11:59:47 +02:00
options for controlling the destination of these messages:
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 \- \- syslog\fR : Write error messages to
syslog
on systems that support the
\fB logger\fR
2009-09-16 14:03:18 +02:00
program\& .
.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 \- \- skip\- syslog\fR : Do not write error messages to
2009-09-16 14:03:18 +02:00
syslog\& . Messages are written to the default error log file (\fI host_name\fR \& .err
2009-05-25 11:59:47 +02:00
in the data directory), or to a named file if the
\fB \- \- log\- error\fR
2009-09-16 14:03:18 +02:00
option is given\& .
.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
. \}
\fB \- \- log\- error=\fR \fB \fI file_name\fR \fR : Write error messages to the named error file\& .
2009-05-25 11:59:47 +02:00
.RE
.PP
If none of these options is given, the default is
2009-09-16 14:03:18 +02:00
\fB \- \- skip\- syslog\fR \& .
.if n \{ \
2009-05-25 11:59:47 +02:00
.sp
2009-09-16 14:03:18 +02:00
. \}
.RS 4
2024-04-16 10:44:00 +03:00
.it 1
2009-05-25 11:59:47 +02:00
.nr an-no-space-flag 1
.nr an-break-flag 1
.br
2009-09-16 14:03:18 +02:00
.ps +1
2009-05-25 11:59:47 +02:00
\fB Note\fR
2009-09-16 14:03:18 +02:00
.ps -1
.br
2009-05-25 11:59:47 +02:00
.PP
2009-09-16 14:03:18 +02:00
.sp .5v
.RE
2009-05-25 11:59:47 +02:00
.PP
If
\fB \- \- syslog\fR
and
\fB \- \- log\- error\fR
are both given, a warning is issued and
\fB \- \- log\- error\fR
2009-09-16 14:03:18 +02:00
takes precedence\& .
2009-05-25 11:59:47 +02:00
.PP
When
2024-09-03 19:15:59 +02:00
\fB mariadbd-safe\fR
2009-05-25 11:59:47 +02:00
writes a message, notices go to the logging destination (syslog
or the error log file) and
2009-09-16 14:03:18 +02:00
stdout\& . Errors go to the logging destination and
stderr\& .
2009-05-25 11:59:47 +02:00
.PP
Normally, you should not edit the
2024-09-03 19:15:59 +02:00
\fB mariadbd-safe\fR
2009-09-16 14:03:18 +02:00
script\& . Instead, configure
2024-09-03 19:15:59 +02:00
\fB mariadbd-safe\fR
2009-05-25 11:59:47 +02:00
by using command\- line options or options in the
2024-09-03 19:15:59 +02:00
[mariadbd-safe]
2009-05-25 11:59:47 +02:00
section of a
2009-09-16 14:03:18 +02:00
my\& .cnf
option file\& . In rare cases, it might be necessary to edit
2024-09-03 19:15:59 +02:00
\fB mariadbd-safe\fR
2009-09-16 14:03:18 +02:00
to get it to start the server properly\& . However, if you do this, your modified version of
2024-09-03 19:15:59 +02:00
\fB mariadbd-safe\fR
2015-09-10 20:12:50 +02:00
might be overwritten if you upgrade MariaDB in the future, so you should make a copy of your edited version that you can reinstall\& .
2009-05-25 11:59:47 +02:00
.PP
On NetWare,
2024-09-03 19:15:59 +02:00
\fB mariadbd-safe\fR
2009-09-16 14:03:18 +02:00
is a NetWare Loadable Module (NLM) that is ported from the original Unix shell script\& . It starts the server as follows:
.sp
.RS 4
.ie n \{ \
\h '-04' 1.\h '+01'\c
. \}
.el \{ \
.sp -1
.IP " 1." 4 .2
. \}
Runs a number of system and option checks\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04' 2.\h '+01'\c
. \}
.el \{ \
.sp -1
.IP " 2." 4 .2
. \}
2009-05-25 11:59:47 +02:00
Runs a check on
MyISAM
2009-09-16 14:03:18 +02:00
tables\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04' 3.\h '+01'\c
. \}
.el \{ \
.sp -1
.IP " 3." 4 .2
. \}
2015-09-10 20:12:50 +02:00
Provides a screen presence for the MariaDB server\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04' 4.\h '+01'\c
. \}
.el \{ \
.sp -1
.IP " 4." 4 .2
. \}
2009-05-25 11:59:47 +02:00
Starts
2024-09-03 19:15:59 +02:00
\fB mariadbd\fR , monitors it, and restarts it if it terminates in error\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04' 5.\h '+01'\c
. \}
.el \{ \
.sp -1
.IP " 5." 4 .2
. \}
2009-05-25 11:59:47 +02:00
Sends error messages from
2024-09-03 19:15:59 +02:00
\fB mariadbd\fR
2009-05-25 11:59:47 +02:00
to the
2009-09-16 14:03:18 +02:00
\fI host_name\fR \& .err
file in the data directory\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04' 6.\h '+01'\c
. \}
.el \{ \
.sp -1
.IP " 6." 4 .2
. \}
2009-05-25 11:59:47 +02:00
Sends
2024-09-03 19:15:59 +02:00
\fB mariadbd-safe\fR
2009-05-25 11:59:47 +02:00
screen output to the
2009-09-16 14:03:18 +02:00
\fI host_name\fR \& .safe
file in the data directory\& .
.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
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/).