Note: The following operations require you to have the highest access permission to your computer.
1. Download the free installation version (more than 100 MB) for Windows
Download the package from the official MySQL website (to a regular channel ).
2. decompress the package (to the C root directory or another directory) and rename it to MySQL.
3. Copy a copy of huge. ini.
Suitable for PCs with 1-2 GB memory. You can select another INI File Based on your configuration and rename it my. ini.
4. modify my. ini
Add two rows in the [mysqld] Field
Basedir = C:/MySQL
Datadir = C:/MySQL/Data
Note: The Path separator is not "\".
5. Add the bin path (C: \ mysql \ bin) of MySQL to the path of the system environment variable.
6. Open CMD and install the MySQL service.
Run cmd as the administrator for Windows 7. Otherwise, installation of the Service will fail!
CD
C: \ mysql \ bin (this must be the case, otherwise you will fail in step 1) execute the following command:
Mysqld -- install MySQL -- defaults-file = "C: \ mysql \ My. ini"
Note: C: \ mysql \ My. INI is the path of my. ini. Do not write an error. Otherwise, the MySQL service cannot be started.
7. Check whether the service is added to the system service.
A. Start with win + R
B. Enter services. MSC
C. Check whether the MySQL service already exists. If yes, start it and set it to automatic (start upon startup)
8. Enter MySQL
Mysql-uroot-P
Other can refer to: http://blog.csdn.net/androidbluetooth/article/details/6394301