昨天用各種方式試驗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端口並沒有被占用。
網上看到一個運行批處理文件的解決辦法,但是需要重啟:
我就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: '::'.