Mysql 5.7.20 compressed Version Download and installation simple tutorial, mysql5.7.20
I ,:
Http://dev.mysql.com/downloads/mysql/
Http://www.bkjia.com/softs/451120.html
1. Enter the official network download page to display the latest version. Select the second one (mysql5.7.20-winx64.zip)
2. After the download is complete, decompress the package directly to the custom directory. The decompressed directory is the installation directory.
2. Configure Environment Variables
1. Added environment variables, for example:
Variable name: MYSQL_HOME
Variable value: D: \ mysql \ mysql5.7.20-winx64
2. Modify the environment variable PATH
Add % MYSQL_HOME % \ bin after PATH. Note: new variable values must be separated ;.
3. Add the my. ini configuration file
1. my. ini configuration file and data folder, you need to manually create text my. ini. If it is stored in the root directory, data cannot be automatically generated (it has been a long time), my. ini, the content is as follows:
[Client] default-character-set = utf8 [mysqld] # decompress the directory basedir = % MYSQL_HOME % # decompress the directory datadir = % MYSQL_HOME % \ data port = 3306 default-character-set = utf8
4. initialize mysql and start the mysql Service
1. Run Command Line cmd as an administrator to enter the bin directory (Be sure to enter the bin directory)
Example:cd D:\mysql\mysql5.7.20-winx64\bin
2. Enter the command: mysqld
-- Initialize-insecure (generate a root user without a password)
A data folder is generated under the root directory, which contains files
3. start the service: net start mysql, stop the service: net stop mysql
Mysql service started successfully
4. Set the mysql password
Mysqladmin-u root password
5. Success
Others: remove service commands in the bin directory (mysqld -- remove)
Summary
The above is a simple tutorial for downloading and installing Mysql 5.7.20 compressed version. I hope it will be helpful to you. If you have any questions, please leave a message for me, the editor will reply to you in a timely manner. Thank you very much for your support for the help House website!