Oracle 5.0 Reference Manual page 104

Table of Contents

Advertisement

Installing MySQL on Microsoft Windows Using a
shell>
"C:\Program Files\MySQL\MySQL Server 5.0\bin\mysqld" --install
The service-installation command does not start the server. Instructions for that are given later in this
section.
To make it easier to invoke MySQL programs, you can add the path name of the MySQL
to your Windows system
• On the Windows desktop, right-click the My Computer icon, and select Properties.
• Next select the Advanced tab from the System Properties menu that appears, and click the
Environment Variables button.
• Under System Variables, select Path, and then click the Edit button. The Edit System Variable
dialogue should appear.
• Place your cursor at the end of the text appearing in the space marked Variable Value. (Use the
End key to ensure that your cursor is positioned at the very end of the text in this space.) Then enter
the complete path name of your MySQL
5.0\bin), Note that there should be a semicolon separating this path from any
\MySQL Server
values present in this field. Dismiss this dialogue, and each dialogue in turn, by clicking OK until all of
the dialogues that were opened have been dismissed. You should now be able to invoke any MySQL
executable program by typing its name at the DOS prompt from any directory on the system, without
having to supply the path. This includes the servers, the
utilities such as
mysqladmin
You should not add the MySQL
MySQL servers on the same machine.
Warning
You must exercise great care when editing your system
accidental deletion or modification of any portion of the existing
leave you with a malfunctioning or even unusable system.
The following additional arguments can be used when installing the service:
• You can specify a service name immediately following the
name is MySQL.
• If a service name is given, it can be followed by a single option. By convention, this should be
defaults-file=file_name
should read options when it starts.
The use of a single option other than
[240]
defaults-file
for the server by placing them in the named option file. Also, in MySQL 5.0, use of an option different
from
--defaults-file
• As of MySQL 5.0.1, you can also specify a
name. This causes the server to run using the
system privileges. This account is available only for Windows XP or newer. If both
[240]
and
file
--local-service
order.
For a MySQL server that is installed as a Windows service, the following rules determine the service
name and option files that the server uses:
• If the service-installation command specifies no service name or the default service name (MySQL)
following the
--install
from the
[mysqld]
environment variable:
PATH
bin
and mysqldump.
directory to your Windows
bin
[240]
to specify the name of an option file from which the server
--defaults-file
is more flexible because it enables you to specify multiple startup options
[240]
is not supported until 5.0.3.
are given following the service name, they can be in any
option, the server uses the a service name of
group in the standard option files.
84
noinstall
directory (for example,
client, and all MySQL command-line
mysql
PATH
--install
[240]
is possible but discouraged.
option following the service
--local-service
Windows account that has limited
LocalService
Zip Archive
bin
C:\Program Files\MySQL
if you are running multiple
by hand;
PATH
value can
PATH
option. The default service
--defaults-
and reads options
MySQL
directory
--
--

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents