Install mysql-5.7.11-win32 in Windows 7
It took me two days to install the mysql-5.7 version because version 5.7 has added many new features than the previous version. I will sort out possible problems during the installation process and share them with you.
1. Download mysql-5.7.11-win32.
(1) MySQL installation files are divided into two types: the first msi format. Click Install in msi format, and click next step by step. The second is zip format. The zip format is self-decompressed. After decompression, MySQL can be used, but configuration is required. After decompression, place the folder in the appropriate location. We recommend that you put it in the root path of the disk for convenient operations (note that the path should not contain Chinese characters ).
(2) MySQL is divided into MySQL Community Server (Community Edition) and MySQL Enterprise Edition (commercial Edition) based on the charging or not ).
We use the Community version in zip Format: mysql-5.7.11-win32.zip.
(3) download Web site: http://www.mysql.com/downloads/mysql/, according to your computer system type, select the corresponding version. Download the compressed package mysql-5.7.11-win32.zip
2. Install mysql
(1)decompress mysql-5.7.11-win32.zip and put it in the appropriate location. on my computer, I put it to the root path of drive D. Copy the my-default.int and rename it my. ini, as shown in.
(2) enter the following content in my. ini.
3. Configure mysql
(1) configure the mysql path to the environment variable.
(2) enter the bin directory under the mysql installation directory, as shown in:
(3) mysqld -- initialize -- user = mysql -- console during initialization;
Create a new mysql database and let the system generate a temporary password, which will be displayed on the console;
Then install mysqld -- install;
(4) start the service
(5) connect to the database. The password is the temporary password generated in step 2.
(6) enter the password, and then display:
(7) data is successfully started.
At this point, we can create a database to complete the corresponding operations. I hope to help you.