解决安装MySQL5.1出现Cannot create windows service for mysql.error:0
来源:互联网 发布:华莱士有多高 知乎 编辑:程序博客网 时间:2024/05/18 16:38
今早上6点多就起来装MySQL5.1,我把以前MySQL5.0的GUI工具和服务器全部删掉,安装目录全部删掉,数据文件目录名字改掉,注册表用完美卸载清理了。
然后重启安装MySQL5.1(我以前遇到过服务启动不了的情况,这样做就搞定了),可配置到最后一步时出现Cannot create windows service for mysql.error:0错误,
把配置工具关掉重试几次都不行,后来百度了下,听说要在系统管理员用户下执行sc delete mysql删除MySQL服务后再启动配置工具配置,实在不行重启后再试。
我删掉服务再配置还是同样错误,再删掉服务,重启后配置还是不行。
又在网上参考了好些文章,最后解决办法如下:
1.出现错误后关掉配置工具,在系统管理员帐户下执行命令:sc delete mysql(mysql是服务名,根据你的服务名定);
2.删除C:/Documents and Settings/All Users/Application Data/MySQL/MySQL Server 5.1/data目录下ib_logfile0、ib_logfile1两个文件删除,顺便说句,此目录下有个err文件,是以主机名命名的,里面记载着错误信息,类似下面这段:
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' registration 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/MySQL Server/bin/mysqld: Shutdown complete
3.删除配置时指定的数据文件目录,好像当时我的不能立即删除,我用unlocker删除时它说要下次重启时删除。
4.重启。
5.启动配置工具配置。
这次就成功了。
感谢提供帮助信息的前辈们,也希望对出现同样错误的朋友有帮助。
- 解决安装MySQL5.1出现Cannot create windows service for mysql.error:0
- 解决安装MySQL5.1出现Cannot create windows service for mysql.error:0
- 解决安装MySQL5.1出现Cannot create windows service for mysql.error:0
- Cannot create windows service for mysql.error:0 (解决安装MYSQL5出现问题)
- 解决安装MySQL5.5出现Cannot create windows service for mysql.error:0
- 解决安装MySQL出现Cannot create windows service for mysql.error:0
- 安装MySQL出现Cannot create windows service for mysql.error:0解决方案
- Error: Cannot create Windows service for MySql. Error: 0解决方案
- 重装mysql后出现"cannot create windows service for mysql.error:0"错误
- mysql错误:cannot create windows service for mysql.error:0
- Mysql "Cannot create windows service for mysql.error:0" 安装删除windows服务
- cannot create windows service for mysql. error 0—mysql启动错误1067的解决
- Cannot create Windows Service for MySQL.Error:0 解决方法集合
- cannot create windows service for mysql.error:0
- Cannot create windows service for mysql.error:0
- Cannot create Windows Service for MySQL.Error:0 解决方法
- cannot create windows service for mysql.error:0
- cannot create windows service for mysql error 0 解决办法
- 黑马程序员-多线程
- How to class-dump iPad apps?
- ACM ICPC过来人对初学者的建议
- 【OpenCv】Mat中常用的一些
- PM Related Topic 2
- 解决安装MySQL5.1出现Cannot create windows service for mysql.error:0
- goole SVN代码编辑
- 养生小常识:睡眠为第一大补 怎么睡觉才最补?
- CD-ROM Red book, Yellow Book, White Book, Green Book
- 转贴 fatal error LNK1201:
- Android多媒体扫描过程(Android Media Scanner Prosess)
- 首尾相连数组的最大子数组和
- Win7x64+VS2012+OpenCV2.4.3+CMake2.8.10+TBB41重编译OpenCV
- Android Fragment实践(三)