"Record" Installation of Mysql 5.7 decompression version

Source: Internet
Author: User

1. Decompression

2. Open My_default.ini

Change Basedir to MySQL's extracted directory

Change DataDir to MySQL's extracted directory \data

3. Changing Environment variables

Add Mysql_home to the MySQL directory in the system variable

Add Mysql_home\bin inside Path

4. Open CMD window with administrator, enter Mysqld-install, install service under the Bin folder of MySQL unzip directory (installation directory)

5, after the successful installation of the same directory input, mysqld--initialize, initialize, generate the corresponding Data folder (note that the Data folder is initialized when the generated is not manually created)

6. net start MySQL start MySQL service

7, after the successful start, input mysql-u root-p This is the comparison pit. Without password login, the MySQL5.7 version automatically gives a random password at the time of installation.

This random password, to the MySQL installation directory under Search, *.err. Then open with text, Ctrl + F, search temporary, you will find the random password, with this random password login

8, after the random password login, change the root password,

Set password for [email protected] = password (' 123456 ');

The above sentence is to change the root password to 123456. The next time you use root login you can use the new password (123456).

"Record" Installation of Mysql 5.7 decompression version

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.