Oracle 5.0 Reference Manual page 154

Table of Contents

Advertisement

Note that by not using mysql_install_db, you not only have to populate the grant tables
manually, you also have to create them first.
2.18.1.2. Starting and Stopping MySQL Automatically
Generally, you start the
• Invoke
mysqld
• Run the MySQL server as a Windows service. The service can be set to start the server
automatically when Windows starts, or as a manual service that you start on request. For
instructions, see
• Invoke mysqld_safe, which tries to determine the proper options for
those options. This script is used on Unix and Unix-like systems. See
— MySQL Server Startup
• Invoke mysql.server. This script is used primarily at system startup and shutdown on systems that
use System V-style run directories (that is,
it usually is installed under the name mysql. The
mysqld_safe. See
• On Mac OS X, install a separate MySQL Startup Item package to enable the automatic startup of
MySQL on system startup. The Startup Item starts the server by invoking mysql.server. See
Section 2.11, "Installing MySQL on Mac OS
The
mysqld_safe
the server manually, or automatically at system startup time.
can be used to stop the server.
To start or stop the server manually using the
arguments:
shell>
mysql.server start
shell>
mysql.server stop
Before
mysql.server
then invokes mysqld_safe. If you want the server to run as some specific user, add an appropriate
option to the
user
(It is possible that you will need to edit
MySQL in a nonstandard location. Modify it to change location into the proper directory before it runs
mysqld_safe. If you do this, your modified version of
upgrade MySQL in the future, so you should make a copy of your edited version that you can reinstall.)
mysql.server stop
manually by executing
To start and stop MySQL automatically on your server, you need to add start and stop commands to
the appropriate places in your
If you use the Linux server RPM package (MySQL-server-VERSION.rpm), the
is installed in the
Section 2.12, "Installing MySQL from RPM Packages on
packages.
Some vendors provide RPM packages that install a startup script under a different name such as
mysqld.
If you install MySQL from a source distribution or using a binary distribution format that does not install
mysql.server
directory under the MySQL installation directory or in a MySQL source tree.
files
Unix Postinstallation Procedures
server in one of these ways:
mysqld
directly. This works on any platform.
Section 2.10.4.7, "Starting MySQL as a Windows
Script".
Section 4.3.3,
"mysql.server
and
mysql.server
starts the server, it changes location to the MySQL installation directory, and
group of the
[mysqld]
mysql.server
stops the server by sending a signal to it. You can also stop the server
mysqladmin
shutdown.
/etc/rc*
directory with the name mysql. You need not install it manually. See
/etc/init.d
automatically, you can install it manually. The script can be found in the
and run-level specific directories), where
/etc/init.d
mysql.server
— MySQL Server Startup
X", for details.
scripts and the Mac OS X Startup Item can be used to start
mysql.server
script, invoke it with
mysql.server
option file, as shown later in this section.
/etc/my.cnf
if you've installed a binary distribution of
mysql.server
files.
Linux", for more information on the Linux RPM
134
Service".
and then runs it with
mysqld
Section 4.3.2,
"mysqld_safe
script starts the server by invoking
Script".
and the Startup Item also
or
start
may be overwritten if you
mysql.server
support-
stop
script

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents