2009-09-16 14:03:18 +02:00
'\" t
2009-05-25 11:59:47 +02:00
. \" Title: \fBmysql.server\fR
2009-09-16 14:03:18 +02:00
. \" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
. \" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
. \" Date: 08/12/2009
2009-05-25 11:59:47 +02:00
. \" Manual: MySQL Database System
. \" Source: MySQL 5.1
2009-09-16 14:03:18 +02:00
. \" Language: English
2009-05-25 11:59:47 +02:00
. \"
2009-09-16 14:03:18 +02:00
.TH "\FBMYSQL\&.SERVER\FR" "1" "08/12/2009" "MySQL 5\&.1" "MySQL Database System"
. \" -----------------------------------------------------------------
. \" * 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.server
2009-05-25 11:59:47 +02:00
.SH "NAME"
mysql.server \- MySQL server startup script
.SH "SYNOPSIS"
2009-09-16 14:03:18 +02:00
.HP \w '\fBmysql\ {start|stop}\fR\ 'u
2009-05-25 11:59:47 +02:00
\fB mysql {start|stop}\fR
.SH "DESCRIPTION"
.PP
MySQL distributions on Unix include a script named
2009-09-16 14:03:18 +02:00
\fB mysql\& .server\fR \& . It can be used on systems such as Linux and Solaris that use System V\- style run directories to start and stop system services\& . It is also used by the Mac OS X Startup Item for MySQL\& .
2009-05-25 11:59:47 +02:00
.PP
2009-09-16 14:03:18 +02:00
\fB mysql\& .server\fR
2009-05-25 11:59:47 +02:00
can be found in the
2009-09-16 14:03:18 +02:00
support\- files
directory under your MySQL installation directory or in a MySQL source distribution\& .
2009-05-25 11:59:47 +02:00
.PP
2009-09-16 14:03:18 +02:00
If you use the Linux server RPM package (MySQL\- server\- \fI VERSION\fR \& .rpm), the
\fB mysql\& .server\fR
2009-05-25 11:59:47 +02:00
script will be installed in the
2009-09-16 14:03:18 +02:00
/etc/init\& .d
2009-05-25 11:59:47 +02:00
directory with the name
2009-09-16 14:03:18 +02:00
mysql\& . You need not install it manually\& . See
Section\ \& 2.4, \(lq Installing MySQL from RPM Packages on Linux\(rq , for more information on the Linux RPM packages\& .
2009-05-25 11:59:47 +02:00
.PP
Some vendors provide RPM packages that install a startup script under a different name such as
2009-09-16 14:03:18 +02:00
\fB mysqld\fR \& .
2009-05-25 11:59:47 +02:00
.PP
If you install MySQL from a source distribution or using a binary distribution format that does not install
2009-09-16 14:03:18 +02:00
\fB mysql\& .server\fR
automatically, you can install it manually\& . Instructions are provided in
Section\ \& 2.11.2.2, \(lq Starting and Stopping MySQL Automatically\(rq \& .
2009-05-25 11:59:47 +02:00
.PP
2009-09-16 14:03:18 +02:00
\fB mysql\& .server\fR
2009-05-25 11:59:47 +02:00
reads options from the
2009-09-16 14:03:18 +02:00
[mysql\& .server]
2009-05-25 11:59:47 +02:00
and
[mysqld]
2009-09-16 14:03:18 +02:00
sections of option files\& . For backward compatibility, it also reads
2009-05-25 11:59:47 +02:00
[mysql_server]
sections, although you should rename such sections to
2009-09-16 14:03:18 +02:00
[mysql\& .server]
when using MySQL 5\& .1\& .
2009-05-25 11:59:47 +02:00
.PP
2009-09-16 14:03:18 +02:00
\fB mysql\& .server\fR
supports the following options:
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql.server: basedir option
. \" basedir option: mysql.server
2009-05-25 11:59:47 +02:00
\fB \- \- basedir=\fR \fB \fI path\fR \fR
.sp
2009-09-16 14:03:18 +02:00
The path to the MySQL installation directory\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql.server: datadir option
. \" datadir option: mysql.server
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 MySQL data directory\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql.server: pid-file option
. \" pid-file option: mysql.server
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 file in which the server should write its process ID\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql.server: service-startup-timeout option
. \" service-startup-timeout option: mysql.server
2009-05-25 11:59:47 +02:00
\fB \- \- service\- startup\- timeout=\fR \fB \fI file_name\fR \fR
.sp
2009-09-16 14:03:18 +02:00
How long in seconds to wait for confirmation of server startup\& . If the server does not start within this time,
\fB mysql\& .server\fR
exits with an error\& . The default value is 900\& . A value of 0 means not to wait at all for startup\& . Negative values mean to wait forever (no timeout)\& . This option was added in MySQL 5\& .1\& .17\& . Before that, a value of 900 is always used\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql.server: use-mysqld_safe option
. \" use-mysqld_safe option: mysql.server
2009-05-25 11:59:47 +02:00
\fB \- \- use\- mysqld_safe\fR
.sp
Use
\fB mysqld_safe\fR
2009-09-16 14:03:18 +02:00
to start the server\& . This is the default\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql.server: use-manager option
. \" use-manager option: mysql.server
2009-05-25 11:59:47 +02:00
\fB \- \- use\- manager\fR
.sp
2009-09-16 14:03:18 +02:00
Use Instance Manager to start the server\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql.server: user option
. \" user option: mysql.server
2009-05-25 11:59:47 +02:00
\fB \- \- user=\fR \fB \fI user_name\fR \fR
.sp
The login user name to use for running
2009-09-16 14:03:18 +02:00
\fB mysqld\fR \& .
.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
2009-09-16 14:03:18 +02:00
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
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
2009-09-16 14:03:18 +02: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-1301 USA or see http://www.gnu.org/licenses/.
.sp
2009-05-25 11:59:47 +02:00
.SH "SEE ALSO"
For more information, please refer to the MySQL Reference Manual,
which may already be installed locally and which is also available
online at http://dev.mysql.com/doc/.
.SH AUTHOR
2009-09-16 14:03:18 +02:00
Sun Microsystems, Inc. (http://www.mysql.com/).