Oracle 5.0 Reference Manual page 574

Table of Contents

Advertisement

[mysqld]
datadir = C:/mydata1
port = 3307
enable-named-pipe
socket = mypipe1
Modify
C:\my-opts2.cnf
previously.
A similar procedure applies for servers that you want to permit shared-memory connections. Enable
such connections with the
name for each server with the
5.3.2.2. Starting Multiple MySQL Instances as Windows Services
On Windows, a MySQL server can run as a Windows service. The procedures for installing, controlling,
and removing a single MySQL service are described in
Windows
Service".
To set up multiple MySQL services, you must make sure that each instance uses a different service
name in addition to the other parameters that must be unique per instance.
For the following instructions, suppose that you want to run the
versions of MySQL that are installed at
(This might be the case if you're running 4.1.24 as your production server, but also want to conduct
tests using 5.0.96.)
To install MySQL as a Windows service, use the
information about these options, see
Based on the preceding information, you have several ways to set up multiple services. The following
instructions describe some examples. Before trying any of them, shut down and remove any existing
MySQL services.
• Approach 1: Specify the options for all services in one of the standard option files. To do this, use a
different service name for each server. Suppose that you want to run the 4.1.24
the service name of
this case, you can use the
example, you can set up
# options for mysqld1 service
[mysqld1]
basedir = C:/mysql-4.1.24
port = 3307
enable-named-pipe
socket = mypipe1
# options for mysqld2 service
[mysqld2]
basedir = C:/mysql-5.0.96
port = 3308
enable-named-pipe
socket = mypipe2
Install the services as follows, using the full server path names to ensure that Windows registers the
correct executable program for each service:
C:\>
C:\mysql-4.1.24\bin\mysqld-nt --install mysqld1
C:\>
C:\mysql-5.0.96\bin\mysqld-nt --install mysqld2
To start the services, use the services manager, or use
names:
C:\>
NET START mysqld1
C:\>
NET START mysqld2
Running Multiple MySQL Instances on Windows
similarly for use by the second server. Then start the servers as described
--shared-memory
--shared-memory-base-name
C:\mysql-4.1.24
Section 2.10.4.7, "Starting MySQL as a Windows
and the 5.0.96
mysqld1
group for 4.1.24 and the
[mysqld1]
like this:
C:\my.cnf
554
[420]
option and specify a unique shared-memory
[420]
Section 2.10.4.7, "Starting MySQL as a
mysqld-nt
and C:\mysql-5.0.96, respectively.
or
--install
--install-manual
using the service name mysqld2. In
mysqld-nt
[mysqld2]
NET START
option.
server from two different
option. For
Service".
mysqld-nt
group for 5.0.96. For
with the appropriate service
using

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents