Oracle 5.0 Reference Manual page 105

Table of Contents

Advertisement

Installing MySQL on Microsoft Windows Using a
• If the service-installation command specifies a service name other than
install
and the group that has the same name as the service in the standard option files. This enables you
to use the
group with the service name for use by the server installed with that service name.
• If the service-installation command specifies a
name, the server reads options the same way as described in the previous item, except that it reads
options only from the the named file and ignores the standard option files.
As a more complex example, consider the following command:
shell>
"C:\Program Files\MySQL\MySQL Server 5.0\bin\mysqld"
--install MySQL --defaults-file=C:\my-opts.cnf
Here, the default service name (MySQL) is given after the
[240]
option had been given, this command would have the effect of causing the server to read
file
the
[mysqld]
option is present, the server reads options from the
file.
You can also specify options as Start parameters in the Windows
MySQL service.
Once a MySQL server has been installed as a service, Windows starts the service automatically
whenever Windows starts. The service also can be started immediately from the
by using a
NET START MySQL
When run as a service,
there. If
mysqld
there to indicate the cause of the problem. The error log is located in the MySQL data directory (for
example,
C:\Program Files\MySQL\MySQL Server
.err.
When a MySQL server has been installed as a service, and the service is running, Windows stops the
service automatically when Windows shuts down. The server also can be stopped manually by using
the
Services
You also have the choice of installing the server as a manual service if you do not wish for the service
to be started automatically during the boot process. To do this, use the
rather than the
shell>
"C:\Program Files\MySQL\MySQL Server 5.0\bin\mysqld" --install-manual
To remove a server that is installed as a service, first stop it if it is running by executing
MySQL. Then use the
shell>
"C:\Program Files\MySQL\MySQL Server 5.0\bin\mysqld" --remove
If
is not running as a service, you can start it from the command line. For instructions, see
mysqld
Section 2.10.4.5, "Starting MySQL from the Windows Command
Please see
Section 2.10.5, "Troubleshooting a MySQL Installation Under
difficulties during installation.
2.10.4.8. Testing The MySQL Installation
You can test whether the MySQL server is working by executing any of the following commands:
shell>
"C:\Program Files\MySQL\MySQL Server 5.0\bin\mysqlshow"
shell>
"C:\Program Files\MySQL\MySQL Server 5.0\bin\mysqlshow" -u root mysql
shell>
"C:\Program Files\MySQL\MySQL Server 5.0\bin\mysqladmin" version status proc
shell>
"C:\Program Files\MySQL\MySQL Server 5.0\bin\mysql" test
option, the server uses that service name. It reads options from the
group for options that should be used by all MySQL services, and an option
[mysqld]
group from the standard option files. However, because the
command. The
has no access to a console window, so no messages can be seen
mysqld
does not start, check the error log to see whether the server wrote any messages
utility, the
NET STOP MySQL
option:
--install
[418]
--remove
noinstall
--defaults-file
--install
[mysqld]
command is not case sensitive.
NET
5.0\data). It is the file with a suffix of
command, or the
option to remove it:
85
Zip Archive
following the
MySQL
[mysqld]
[240]
option after the service
option. If no
--defaults-
--defaults-file
option group, and only from the named
utility before you start the
Services
Services
mysqladmin shutdown
--install-manual
Line".
Windows", if you encounter
--
group
[240]
utility, or
command.
option
NET STOP

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents