MySql5.7.12 Install-free configuration and service cannot start problem resolution

Source: Internet
Author: User

1. Unzip the Mysql-5.7.12-win32.zip file.

2. Add environment variables to the bin folder in the extracted folder.

3. Create the Data folder in the extracted folder.

4. Copy the My-default.ini and rename the copied copy to the My.ini file, then modify the My file to assign Basedir and DataDir to the corresponding path.


5. In cmd, go to the established Data folder and execute "mysqld--initialize" to initialize the Data folder.


6.CMD Enter the Bin folder and perform "Mysqld-install" to install the service.


7. Then enter "net start MySQL" to start the service.



where the default Initialize password In the *.err file of the Data folder initialized with "Mysqld--initialize". Open the file with Notepad to find a similar place


The "UUE!NWB54W.O" in the Anti-white section is the password that is initialized.


Modify the default root password

First use the default password to log in to the database, and then use "Set Password = password (' Your own password ');" statement.


There is a workaround for the problem that my SQL service cannot start.


In general, data is not initialized. Workaround proceed to step 5th above to resolve.



MySql5.7.12 Install-free configuration and service cannot start problem resolution

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.