MySql5.7.12 installation-free configuration and service failure troubleshooting _ MySQL

Source: Internet
Author: User
MySql5712 installation-free configuration and service cannot start the problem solution: 1 unzip the mysql-5712-win32zip file. 2. Add environment variables to the BIN folder in the extracted folder. 1.decompress the mysql-5.7.12-win32.zip file.

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

3. Create a 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 and assign the corresponding path values to the basedir and datadir files.

5. In CMD, enter the created data folder, and then execute "mysqld -- initialize" to initialize the data folder.

6. Run CMD to enter the bin folder and run "mysqld-install" to install the service.

7. Enter "net start mysql" to start the service.

The default initialization password is in the *. err file of the data folder initialized with "mysqld -- initialize. Open the file in notepad and find something similar.

"Uue!" in the anti-white part! "NwB54w. o" is the initial password.

Change the default ROOT password

First, use the default password to log on to the database, and then use the "set password = password ('your password');" statement.

Solution to the problem that My SQL service cannot be started.

Generally, data is not initialized. The solution can be solved by proceeding to Step 1 above.

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.