码迷,mamicode.com
首页 > 数据库 > 详细

XAMPP的MYSQL无法启动

时间:2014-11-26 01:04:15      阅读:278      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   io   ar   color   os   使用   sp   

昨天用各种方式试验MYSQL的数据库备份与恢复操作,恢复过程中,MYSQL就无法启动了。

提示如下:

22:59:43  [mysql]     Attempting to start MySQL app...
22:59:43  [mysql]     Status change detected: running
22:59:44  [mysql]     Status change detected: stopped
22:59:44  [mysql]     Error: MySQL shutdown unexpectedly.
22:59:44  [mysql]     This may be due to a blocked port, missing dependencies, 
22:59:44  [mysql]     improper privileges, a crash, or a shutdown by another method.
22:59:44  [mysql]     Press the Logs button to view error logs and check
22:59:44  [mysql]     the Windows Event Viewer for more clues
22:59:44  [mysql]     If you need more help, copy and post this
22:59:44  [mysql]     entire log window on the forums

This may be due to a blocked port, missing dependencies, 首先我看了端口,3306端口并没有被占用。

网上看到一个运行批处理文件的解决办法,但是需要重启:

http://wenku.baidu.com/link?url=fqqupfW1yxGYGtw3tGZe9HvzQxrSb2zQ3wiOJAi01ncikuFJAE1LJqQv0J97AocA-trfWz_wpaJQfjDTxWTC4mSahput3mJMchK3BgFWlGa

 我就X了,刚刚写了一大堆,结果提交后显示找不到服务器,,,,然后草稿箱里也没有,真是各种背

 

总之就是各种方法都试了,都无法解决,最后只能重新卸载重装解决的。

 

刚才将E:\xampp_new\mysql\data 数据库的文件替换了一下,替换后,mysql就无法启动了,终于找到了mysql无法启动的原因,就是因为替换data数据库文件造成的。

 

多次删除ibdata1、ib_logfile1、ib_logfile0 后,mysql才可以启动,第一次删除后,确实依然无法启动。

 

通过操作发现,使用直接复制、粘贴数据库文件的方法,对数据库进行恢复,是不可行的,会造成数据库无法启动,就算后面删除日志文件,数据库可以启动了,也是无法浏览数据库内的表文件的。

错误日志:

2014-11-25 23:57:55 4336 [Note] Plugin ‘FEDERATED‘ is disabled.
2014-11-25 23:57:55 2720 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-11-25 23:57:55 4336 [Note] InnoDB: Using atomics to ref count buffer pool pages
2014-11-25 23:57:55 4336 [Note] InnoDB: The InnoDB memory heap is disabled
2014-11-25 23:57:55 4336 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2014-11-25 23:57:55 4336 [Note] InnoDB: Compressed tables use zlib 1.2.3
2014-11-25 23:57:55 4336 [Note] InnoDB: Not using CPU crc32 instructions
2014-11-25 23:57:55 4336 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2014-11-25 23:57:55 4336 [Note] InnoDB: Completed initialization of buffer pool
2014-11-25 23:57:55 4336 [Note] InnoDB: Highest supported file format is Barracuda.
2014-11-25 23:57:55 4336 [Warning] InnoDB: Resizing redo log from 2*3072 to 2*320 pages, LSN=1625987
2014-11-25 23:57:55 4336 [Warning] InnoDB: Starting to delete and rewrite log files.
2014-11-25 23:57:55 4336 [Note] InnoDB: Setting log file E:\xampp_new\mysql\data\ib_logfile101 size to 5 MB
2014-11-25 23:57:55 4336 [Note] InnoDB: Setting log file E:\xampp_new\mysql\data\ib_logfile1 size to 5 MB
2014-11-25 23:57:56 4336 [Note] InnoDB: Renaming log file E:\xampp_new\mysql\data\ib_logfile101 to E:\xampp_new\mysql\data\ib_logfile0
2014-11-25 23:57:56 4336 [Warning] InnoDB: New log files created, LSN=1625987
2014-11-25 23:57:56 4336 [Note] InnoDB: 128 rollback segment(s) are active.
2014-11-25 23:57:56 4336 [Note] InnoDB: Waiting for purge to start
2014-11-25 23:57:56 4336 [Note] InnoDB: 5.6.16 started; log sequence number 1625987
2014-11-25 23:57:56 4336 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: d2275b21-74bb-11e4-8165-74d435fb4eb2.
2014-11-25 23:57:56 4336 [Note] Server hostname (bind-address): ‘*‘; port: 3306
2014-11-25 23:57:56 4336 [Note] IPv6 is available.
2014-11-25 23:57:56 4336 [Note]   - ‘::‘ resolves to ‘::‘;
2014-11-25 23:57:56 4336 [Note] Server socket created on IP: ‘::‘.

 

XAMPP的MYSQL无法启动

标签:style   blog   http   io   ar   color   os   使用   sp   

原文地址:http://www.cnblogs.com/4php/p/4122210.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!