MySQL service cannot be started

Source: Internet
Author: User

Some time ago, MySQL was installed smoothly, and soon it was installed. After simple configuration, enter the MySQL console, enter the password, and then enter the working status smoothly.

However, when I enter the MySQL console the next day and enter the password, the entire console disappears. the problem persists after several retries. I went online to Baidu and found that many people encountered the same problem. ini configuration error. INI according to the changes on the Internet, and then restart the service, the result is still not OK. so there is no way to reinstall it. re-install, but it cannot be completed after the last step of configuration (because the service is started at that step, the service cannot be started at all times ). go online again. finally find a solution to the problem:

 

First, let's take a look at the MySQL service parameters and the location of the configuration file used. my version is in the installation directory. open my. INI find datadir, and then open this path to delete MySQL files and folders. then reinstall and solve the problem.

 

But later I found the same problem, and it cannot be solved by using the previous method, that is, deleting the corresponding file and folder, and then re-installing. we use another method: After the installation is completeBack up my. ini and restore my. ini when the service cannot be started.

 

An error occurred. I found that I dropped database MySQL every time to test the MySQL database. At this time, I stopped the service and started the service again. therefore, it is very important that you cannot delete this database.

Of course, if you delete the data directory by mistake, follow the instructions above to delete the data directory And then reinstall it.

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.