• XAMPP的MYSQL无法启动


    昨天用各种方式试验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_newmysqldata 数据库的文件替换了一下,替换后,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_newmysqldataib_logfile101 size to 5 MB
    2014-11-25 23:57:55 4336 [Note] InnoDB: Setting log file E:xampp_newmysqldataib_logfile1 size to 5 MB
    2014-11-25 23:57:56 4336 [Note] InnoDB: Renaming log file E:xampp_newmysqldataib_logfile101 to E:xampp_newmysqldataib_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: '::'.
  • 相关阅读:
    window10使用vagrant+virtualBox搭建centos7
    吾日三思
    搭建EFK过程
    docker端口映射失效解决方法
    centos7防火墙相关命令
    docker学习
    python 读取hive数据
    shell 命令 查看本机ip
    shell 命令 修改hosts文件
    shell 命令 mkdir -p
  • 原文地址:https://www.cnblogs.com/4php/p/4122210.html
Copyright © 2020-2023  润新知