The initial password for the Windows Free installation version of mysql5.7

Source: Internet
Author: User
Tags log log

After MySQL5.7, the initial password is not empty by default, but a randomly generated password.

    1. In the Mysql/data directory, an. err file is generated (equivalent to the log log file under Linux, which is occupied by the MySQL service).
    2. Use Notepad to open directly.
    3. Write down the password, restart the MySQL service, and enter the cmd command line, where you can log in using Mysql-u root-p and type the password.
    4. After entering the database, use set password for [email protected] = password (' your password '); Reset the login password.
    5. Prompt for query OK, reset succeeds, then you can try to log in again.

The initial password for the Windows Free installation version of mysql5.7

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.