mysql5.7 version Install the correct steps under Window

Source: Internet
Author: User

1. Unzip the document to a location, such as C:/mysql

2. Set the My.ini-default

Basedir=mysql folder locations, such as C:/mysql

DataDir =mysql folder location/data, such as C:/mysql/data (the Data folder does not exist, please create a new)

3.win+r run cmd to open the Windows console.

4. Enter the Mysql/bin folder location, such as C:/mysql/bin

In Windows console input: CD C:/mysql/bin

5. In Windows console input: Mysqld--initialize-insecure (initialize root user without password)

6. In Windows console input: Mysqld-install

7. In Windows console input: net start MySQL

8. In Windows console input: Mysql-uroot

No password directly into MySQL

9. In the MySQL console input: Alter user ' root ' @ ' localhost ' identified by ' new password ';

To set a new MySQL password.

mysql5.7 version Install the correct steps under Window

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.