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.5.1,
23 “Installing MySQL on Linux Using RPM Packages”, 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.12.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 © 1997, 2013, Oracle and/or its affiliates. All rights
77 reserved.
78
79 This documentation is free software; you can redistribute it and/or
80 modify it only under the terms of the GNU General Public License as
81 published by the Free Software Foundation; version 2 of the License.
82
83 This documentation is distributed in the hope that it will be useful,
84 but WITHOUT ANY WARRANTY; without even the implied warranty of
85 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
86 General Public License for more details.
87
88 You should have received a copy of the GNU General Public License along
89 with the program; if not, write to the Free Software Foundation, Inc.,
90 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or see
91 http://www.gnu.org/licenses/.
92
93
95 For more information, please refer to the MySQL Reference Manual, which
96 may already be installed locally and which is also available online at
97 http://dev.mysql.com/doc/.
98
100 Oracle Corporation (http://dev.mysql.com/).
101
102
103
104MySQL 5.1 11/04/2013 MYSQL.SERVER(1)