XAMMPP Version :xampp-win32-1.8.3-0-VC11-installer
MySQL Version:
【查看當前MySQL版本方法】
使用-V參數
首先我們想到的肯定就是查看版本號的參數命令,參數為-V(大寫字母)或者--version
使用方法:
D:\xampp\mysql\bin<mysql -V
或者
D:\xampp\mysql\bin<mysql –version
摘自:http://blog.163.com/magicc_love/blog/static/18585366220134159357764/
mysql_error.log
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
可啟動成功,解決該問題。