当前位置:Gxlcms > mysql > 用XAMPP启动MySql时报错--Usinginnodb_additional_mem_pool_siz_MySQL

用XAMPP启动MySql时报错--Usinginnodb_additional_mem_pool_siz_MySQL

时间:2021-07-01 10:21:17 帮助过:30人阅读

XAMPP

bitsCN.com

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

MySQL Version:

image

【查看当前MySQL版本方法】

使用-V参数

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

2009062414304052240

使用方法:

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

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

mysql_error.log

image

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

人气教程排行