1. Download MySQL
Http://www.mysql.org/downloads
Ii. Installation Process
1. Decompress mysql-noinstall-5.0.45-win32.zip to a directory.
Assume that Mysql_home = D: \ Dev \ mysql-5.0.45
2. Compile the MySQL running configuration file my. ini.
My. ini
-----------------------------
[Mysqld]
# Set the installation directory of MySQL
Basedir = $ mysql_home
# Set the data storage directory of the MySQL database, which must be data or \ XXX \ data
Datadir = $ mysql_home \ data
# Set the character set of the MySQL server
Default-character-set = utf8
[Client]
# Set the character set of the mysql client
Default-character-set = GBK
-----------------------------
3. Install the MySQL Service
Enter the directory e: \ myserver \ MS-DOS \ bin from the mysql-5.0.37-win32 window and run the following command:
Mysqld -- install mysql5 -- defaults-file =: \ Dev \ mysql-5.0.45 \ My. ini
4. Start the MySQL database
In the above command window, enter the command: Net start mysql5
In this way, the MySQL service is started.
5. delete a service
RunMysqld -- remove mysql5You can.