Detailed installation process of mysql5.7.21 in win10, win10mysql5.7.21

Source: Internet
Author: User

Detailed installation process of mysql5.7.21 in win10, win10mysql5.7.21

This article will share with you the problems encountered during mysql5.7.21 installation and installation for your reference. The specific content is as follows:

1. I downloaded the mysql-5.7.21-winx64, free installation version, but need to configure my. ini file and new data folder, this will be discussed later.

2. After downloading and unzipping the file, place the unzipping folder in the desired place. My files are: G: \ softwareSetUp \ mysql \ mysql-5.7.21-winx64.

3. Configure the path environment variable, including two paths: G: \ softwareSetUp \ mysql \ mysql-5.7.21-winx64 \ bin;
C: \ Windows \ System32
If C: \ Windows \ System32 is not configured, the system prompts "net" is not an internal or external command when running net start mysql.

4. Create my. ini text under the mysql-5.7.21-winx64 with the following content:


Create a data folder in the same directory

5. Run the command prompt as an administrator and execute mysqld install


6. Enter G: \ softwareSetUp \ mysql \ mysql-5.7.21-winx64 \ bin
Run mysqld -- initialize-insecure -- user = mysql
There is no prompt after the running is completed. Check whether the directory in my. ini and data folders is correct,


7. Run net start mysql to start the MySQL service and prompt that the startup is successful;

8. Run mysql-u root-p and log on to MySQL.

Problem: C: \ Windows \ System32 is not configured for the environment variable. Run the net start mysql command to prompt that "net" is not an internal or external command.

The above is all the content of this article. I hope it will be helpful for your learning and support for helping customers.

Related Article

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.