MYSQL无法启动,提示1067错误,解决步骤如下
1、查看mysql log文件
111228 17:05:41 [Note] Plugin ‘FEDERATED’ is disabled.
InnoDB: Error: data file .\ibdata1 is of a different size
InnoDB: 12219520 pages (rounded down to MB)
InnoDB: than specified in the .cnf file 6742144 pages!
InnoDB: Could not open or create data files.
InnoDB: If you tried to add new data files, and it failed here,
InnoDB: you should now edit innodb_data_file_path in my.cnf back
InnoDB: to what it was, and remove the new ibdata files InnoDB created
InnoDB: in this failed attempt. InnoDB only wrote those files full of
InnoDB: zeros, but did not yet use them in any way. But be careful: do not
InnoDB: remove old data files which contain your precious data!
111228 17:05:42 [ERROR] Plugin ‘InnoDB’ init function returned error.
111228 17:05:42 [ERROR] Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed.
111228 17:05:42 [ERROR] Unknown/unsupported table type: INNODB
111228 17:05:42 [ERROR] Aborting
2、事件查看器里提示
Plugin ‘InnoDB’ init function returned error.
Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed.
Unknown/unsupported table type: INNODB
3、问题原因,mysql/data目录下的ibdata1文件大小和配置文件里的文件大小不一致造成。
解决方法:修改my.ini文件
首先查看data目录下的ibdata1文件的大小,如186 GB (200,204,615,680 字节)
将200,204,615,680/1024/1024=190930M 将除以两个1024的结果填入my.ini的innodb设置,如下:
innodb_data_file_path = ibdata1:190930M;ibdata2:8M:autoextend
-
近期评论
参照这篇 wordpress放在windows主机子目录的静态化httpd.ini规则写法
我的主目录安装了wordpress开起了伪静态,现在子目录下也要安装一个wordpress,请问这个的伪静态怎么设置?
楼主把注册机发给我一下。下不了。
重新安装后已经搞定了。麻烦了!
在根目录安装wordpress后,子目录弄了个blog目录放boblog,虽然boblog不用.htaccess可以打开,但是无法进入后台,由xxxx.com/blog/admin.php跳转到xxxx.com/blog/login.php?adminlogin=1,需要再次填用户名和密码,填对了,还是跳转到xxxx.com/blog/login.php?adminlogin=1页面。按照你的方法,在根目录添加RewriteRule /books/(.*) /books/$1 [L] 也无法进入boblog的后台,不知道是不是不能用这一句,还是位置不对呢?请指点一下,谢谢!
