Solve the Problem of Cannot create windows service for mysql. error: 0, createservice

Source: Internet
Author: User

Solve the Problem of Cannot create windows service for mysql. error: 0, createservice

During MySQL5.1 installation, I deleted all the previous MySQL5.0 GUI tools and servers, deleted all the installation directories, changed the Directory Name of the data files, and cleared the registry using the perfect uninstallation method.
Then restart and install MySQL5.1 (I have encountered a situation where the service Cannot be started before, and this will be done). You can configure Cannot create windows service for MySQL In the last step. error: 0: The Configuration tool is disabled and cannot be retried several times. Later, Baidu heard that it is necessary to execute SC delete mysql under the user of the system administrator to delete the MySQL service and then start the configuration tool configuration, it cannot be restarted, and then try again.
I deleted the service and then configured the same error, and then deleted the service. After the restart, the configuration still failed.
I also read some articles online. FinallySolutionAs follows:

1. if an error occurs, turn off the configuration tool and run the following command under the system administrator account:SC delete mysql(Mysql is the service name, which is determined by your service name );

2. Delete C:/Documents and Settings/All Users/Application Data/MySQL Server 5.1/dataIb_logfile0 and ib_logfile1Delete two files. By the way, there is an err file under this directory named after the host name, which contains the error message, similar to the following section:

InnoDB: The first specified data file E:/Data/ibdata1 did not exist:
InnoDB: a new database to be created!
090501 19:20:08 InnoDB: Setting file E:/Data/ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Error: log file./ib_logfile0 is of different size 0 48234496 bytes
InnoDB: than specified in the. cnf file 0 17825792 bytes!
090501 19:20:09 [ERROR] Plugin 'innodb' init function returned error.
090501 19:20:09 [ERROR] Plugin 'innodb' registry as a storage engine failed.
090501 19:20:09 [ERROR] Unknown/unsupported table type: INNODB
090501 19:20:09 [ERROR] Aborting
090501 19:20:09 [Warning] Forcing shutdown of 1 plugins
090501 19:20:09 [Note] E:/Program Files/MySQL Server/bin/mysqld: Shutdown complete
 

3. The data file directory specified when the configuration is deleted. It seems that my data file cannot be deleted immediately at the time. When I use unlocker to delete the directory, it says that it will be deleted at the next restart.
4. Restart.
5. Start the configuration tool configuration.

This is the success.

I would like to thank the elders who provided help information and hope to help those who encountered the same error.

The above is the solution to the installation error of MySQL5.1. I hope it will be helpful for your learning, and I hope you can support more help.

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.