Troubleshooting the MySQL service failed to start the service did not report any errors

Source: Internet
Author: User
Tags administrator password
MySQL database after upgrading to 5.7 version, and the previous version somewhat different, there is no data folder, we know that the MySQL database files are saved in the Data folder, the online people say the 5.6 version of the Data folder to copy one, this statement is not reliable, I have tried, I have been able to login, but can not To modify the administrator password, the following is a standard workaround.
After installing the MySQL5.7, open the cmd Command window and go to the bin directory in the MySQL installation directory and enter the following command:
-- initialize-insecure--user=mysql


After executing the above command, MySQL will build a data folder, and set up the default database, the login user name is root, the password is empty, after the operation is the same as the previous version

Troubleshooting the MySQL service failed to start the service did not report any errors

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.