1MYSQL.SERVER(1) MySQL Database System MYSQL.SERVER(1)
2
3
4
6 mysql.server - MySQL server startup script
7
9 mysql {start|stop}
10
12 MySQL distributions on Unix include a script named mysql.server. It can
13 be used on systems such as Linux and Solaris that use System V-style
14 run directories to start and stop system services. It is also used by
15 the Mac OS X Startup Item for MySQL.
16
17 mysql.server can be found in the support-files directory under your
18 MySQL installation directory or in a MySQL source distribution.
19
20 If you use the Linux server RPM package (MySQL-server-VERSION.rpm), the
21 mysql.server script will be installed in the /etc/init.d directory with
22 the name mysql. You need not install it manually. See Section 2.6.1,
23 “Installing MySQL from RPM Packages on Linux”, for more information on
24 the Linux RPM packages.
25
26 Some vendors provide RPM packages that install a startup script under a
27 different name such as mysqld.
28
29 If you install MySQL from a source distribution or using a binary
30 distribution format that does not install mysql.server automatically,
31 you can install it manually. Instructions are provided in
32 Section 2.13.1.2, “Starting and Stopping MySQL Automatically”.
33
34 mysql.server reads options from the [mysql.server] and [mysqld]
35 sections of option files. For backward compatibility, it also reads
36 [mysql_server] sections, although you should rename such sections to
37 [mysql.server] when using MySQL 5.1.
38
39 mysql.server supports the following options.
40
41 · --basedir=path
42
43 The path to the MySQL installation directory.
44
45 · --datadir=path
46
47 The path to the MySQL data directory.
48
49 · --pid-file=file_name
50
51 The path name of the file in which the server should write its
52 process ID.
53
54 · --service-startup-timeout=file_name
55
56 How long in seconds to wait for confirmation of server startup. If
57 the server does not start within this time, mysql.server exits with
58 an error. The default value is 900. A value of 0 means not to wait
59 at all for startup. Negative values mean to wait forever (no
60 timeout). This option was added in MySQL 5.1.17. Before that, a
61 value of 900 is always used.
62
63 · --use-mysqld_safe
64
65 Use mysqld_safe to start the server. This is the default.
66
67 · --use-manager
68
69 Use Instance Manager to start the server.
70
71 · --user=user_name
72
73 The login user name to use for running mysqld.
74
76 Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
77
78 This documentation is free software; you can redistribute it and/or
79 modify it only under the terms of the GNU General Public License as
80 published by the Free Software Foundation; version 2 of the License.
81
82 This documentation is distributed in the hope that it will be useful,
83 but WITHOUT ANY WARRANTY; without even the implied warranty of
84 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
85 General Public License for more details.
86
87 You should have received a copy of the GNU General Public License along
88 with the program; if not, write to the Free Software Foundation, Inc.,
89 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or see
90 http://www.gnu.org/licenses/.
91
92
94 For more information, please refer to the MySQL Reference Manual, which
95 may already be installed locally and which is also available online at
96 http://dev.mysql.com/doc/.
97
99 Sun Microsystems, Inc. (http://www.mysql.com/).
100
101
102
103MySQL 5.1 04/06/2010 MYSQL.SERVER(1)