MySQL5 install in green windows (recommended), mysql5windows
1. Download MySQL
: Http://downloads.mysql.com/archives/get/file/mysql-5.7.11-winx64.zip.
2 Installation Process
2.1 decompress mysql-5.7.11-winx64.zip to a directory.
The directory I extracted is D: \ mysqlDev \
2.2 compile the MySQL running configuration file my. ini, or modify the name of the previous. ini file my. ini.
Add the following content to my. ini:
[Mysqld] # Set mysql installation directory basedir = D: \ mysqlDev \ mysql-5.7.11-winx64 \ mysql-5.7.11-winx64 # Set mysql database data storage directory, must be data, or \ xxx \ datadatadir = D: \ mysqlDev \ mysql-5.7.11-winx64 \ mysql-5.7.11-winx64 \ data # set port = 3306 # set mysql Server character set default-character-set = gbk remarks: if no character set string is displayed, you do not need to set [client] # set the character set default-character-set = gbk of the mysql client.
2.3 install the mysql Service
Enter the Directory D: \ mysqlDev \ MS-DOS \ mysql-5.7.11-winx64 \ bin from the mysql-5.7.11-winx64 window and run the following command:
mysqld --install MySQL --defaults-file=D:\mysqlDev\mysql-5.7.11-winx64\mysql-5.7.11-winx64\my.ini
Note: This may cause a problem: Install/Remove of the Service Denied!
If this error is reported, run cmd as an administrator.
2.4 start the mysql database
In the above command window, enter the command: net start MySQL
In this way, the mysql service is started.
If the command is not easy to use, click the computer on the desktop, click "manage", open the management tool, find the mysql Service, right-click to start
2.5 Delete a service
Execute mysqld -- remove MySQL.
The above is a summary of the installation of MySQL5 Green Edition windows. I hope it will help you. If you have any questions, please leave a message and I will reply to you in a timely manner. Thank you very much for your support for the help House website!