Installing MySQL on Microsoft Windows Using a
noinstall
Zip Archive
79
2.10.4. Installing MySQL on Microsoft Windows Using a
noinstall
Zip
Archive
Users who are installing from the Noinstall package can use the instructions in this section to manually
install MySQL. The process for installing MySQL from a Zip archive is as follows:
1. Extract the archive to the desired install directory
2. Create an option file
3. Choose a MySQL server type
4. Start the MySQL server
5. Secure the default user accounts
This process is described in the sections that follow.
2.10.4.1. Extracting the Install Archive
To install MySQL manually, do the following:
1. If you are upgrading from a previous version please refer to
Section 2.10.6, “Upgrading MySQL on
Windows”
, before beginning the upgrade process.
2. Make sure that you are logged in as a user with administrator privileges.
3. Choose an installation location. Traditionally, the MySQL server is installed in
C:\mysql
. The
MySQL Installation Wizard installs MySQL under
C:\Program Files\MySQL
. If you do not install
MySQL at
C:\mysql
, you must specify the path to the install directory during startup or in an
option file. See
Section 2.10.4.2, “Creating an Option File”
.
4. Extract the install archive to the chosen installation location using your preferred Zip archive tool.
Some tools may extract the archive to a folder within your chosen installation location. If this occurs,
you can move the contents of the subfolder into the chosen installation location.
2.10.4.2. Creating an Option File
If you need to specify startup options when you run the server, you can indicate them on the command
line or place them in an option file. For options that are used every time the server starts, you may find
it most convenient to use an option file to specify your MySQL configuration. This is particularly true
under the following circumstances:
• The installation or data directory locations are different from the default locations (
C:\Program
Files\MySQL\MySQL Server 5.0
and
C:\Program Files\MySQL\MySQL Server
5.0\data
).
• You need to tune the server settings.
When the MySQL server starts on Windows, it looks for option files in several locations, such as
the Windows directory,
C:\
, and the MySQL installation directory (for the full list of locations, see
Section 4.2.3.3, “Using Option Files”
). The Windows directory typically is named something like
C:
\WINDOWS
. You can determine its exact location from the value of the
WINDIR
environment variable
using the following command:
shell>
echo %WINDIR%
MySQL looks for options in each location first in the
my.ini
file, and then in the
my.cnf
file. However,
to avoid confusion, it is best if you use only one file. If your PC uses a boot loader where
C:
is not the
boot drive, your only option is to use the
my.ini
file. Whichever option file you use, it must be a plain
text file.
Summary of Contents for 5.0
Page 1: ...MySQL 5 0 Reference Manual ...
Page 18: ...xviii ...
Page 60: ...40 ...
Page 396: ...376 ...
Page 578: ...558 ...
Page 636: ...616 ...
Page 844: ...824 ...
Page 1234: ...1214 ...
Page 1427: ...MySQL Proxy Scripting 1407 ...
Page 1734: ...1714 ...
Page 1752: ...1732 ...
Page 1783: ...Configuring Connector ODBC 1763 ...
Page 1793: ...Connector ODBC Examples 1773 ...
Page 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Page 2850: ...2830 ...
Page 2854: ...2834 ...
Page 2928: ...2908 ...
Page 3000: ...2980 ...
Page 3122: ...3102 ...
Page 3126: ...3106 ...
Page 3174: ...3154 ...
Page 3232: ...3212 ...