Mysql 5.7.20 compressed Version Download and installation simple tutorial, mysql5.7.20

Source: Internet
Author: User

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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.