欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  数据库

用XAMPP启动MySql时报错--Using innodb_additional_mem_pool_siz_MySQL

程序员文章站 2022-06-06 22:14:48
...
XAMPP bitsCN.com

XAMMPP Version :xampp-win32-1.8.3-0-VC11-installer

MySQL Version:

用XAMPP启动MySql时报错--Using innodb_additional_mem_pool_siz_MySQL

【查看当前MySQL版本方法】

使用-V参数

首先我们想到的肯定就是查看版本号的参数命令,参数为-V(大写字母)或者--version

用XAMPP启动MySql时报错--Using innodb_additional_mem_pool_siz_MySQL

使用方法:

D:/xampp/mysql/bin 或者
D:/xampp/mysql/bin

摘自:http://blog.163.com/magicc_love/blog/static/18585366220134159357764/

mysql_error.log

用XAMPP启动MySql时报错--Using innodb_additional_mem_pool_siz_MySQL

2014-02-10 16:06:35 8956 [Note] Plugin 'FEDERATED' is disabled.
2014-02-10 16:06:35 1fc8 InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator.
2014-02-10 16:06:35 8956 [Note] InnoDB: The InnoDB memory heap is disabled
2014-02-10 16:06:35 8956 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2014-02-10 16:06:35 8956 [Note] InnoDB: Compressed tables use zlib 1.2.3
2014-02-10 16:06:35 8956 [Note] InnoDB: Not using CPU crc32 instructions
2014-02-10 16:06:35 8956 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2014-02-10 16:06:35 8956 [Note] InnoDB: Completed initialization of buffer pool
2014-02-10 16:06:35 8956 [Note] InnoDB: The first specified data file F:/xampp/mysql/data/ibdata1 did not exist: a new database to be created!
2014-02-10 16:06:35 8956 [Note] InnoDB: Setting file F:/xampp/mysql/data/ibdata1 size to 10 MB
2014-02-10 16:06:35 8956 [Note] InnoDB: Database physically writes the file full: wait...

尝试网上的方法后,仍然未解决:

1、运行xampp/mysql目录下的mysql_installservice.bat,弹出dos窗口后按任意键关闭。

然后再运行此目录下的mysql_uninstallservice.bat即可。

现在XAMPP的控制版面就可以成功启动MySql了。

2、在D:/ XAMPP / mysql的/ BIN下面的my.ini文件中添加

innodb_force_recovery = 1

不过位置要加在的[mysqld]中,一开始加在末尾没用处

以上两个方法未能解决,再次仔细研读log

注意到:

The first specified data file F:/xampp/mysql/data/ibdata1 did not exist: a new database to be created!

思考是否是因为该文件创建有错误,导致的不能启动,于是到该路径下删除已生成的ibdata1

再次启动XAMPP中的MySQL

可启动成功,解决该问题。

bitsCN.com