XAMPP服务器错误:MySQL意外关闭

时间:2015-05-29 01:06:06

标签: mysql windows xampp port

不确定导致此错误到底是什么以及如何纠正错误。我想这是因为端口冲突或运行mysqld的多个实例,但不知道如何防止(无论哪个)应用程序耗尽端口。

当我检查netstat(XAMPP)时,它显示mysqld.exe使用了端口3306(我应该释放该端口吗?如果是这样的话怎么样?

OR

更改MYSQl端口是否可以解决此错误?如果是这样的话怎么样?

注意:这是来宾PC,因此不确定此系统中已安装的所有应用程序,或先前如何配置系统。

请从下面的XAMPP找到错误日志。

   2015-05-28 20:42:58 11488 [Note] Plugin 'FEDERATED' is disabled.
    2015-05-28 20:42:58 2e50 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.
    2015-05-28 20:42:58 11488 [Note] InnoDB: Using atomics to ref count buffer pool pages
    2015-05-28 20:42:58 11488 [Note] InnoDB: The InnoDB memory heap is disabled
    2015-05-28 20:42:58 11488 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
    2015-05-28 20:42:58 11488 [Note] InnoDB: Memory barrier is not used
    2015-05-28 20:42:58 11488 [Note] InnoDB: Compressed tables use zlib 1.2.3
    2015-05-28 20:42:58 11488 [Note] InnoDB: Not using CPU crc32 instructions
    2015-05-28 20:42:58 11488 [Note] InnoDB: Initializing buffer pool, size = 16.0M
    2015-05-28 20:42:58 11488 [Note] InnoDB: Completed initialization of buffer pool
    2015-05-28 20:42:58 11488 [Note] InnoDB: Highest supported file format is Barracuda.
    2015-05-28 20:42:58 11488 [Note] InnoDB: 128 rollback segment(s) are active.
    2015-05-28 20:42:58 11488 [Note] InnoDB: Waiting for purge to start
    2015-05-28 20:42:58 11488 [Note] InnoDB: 5.6.24 started; log sequence number 1665294
    2015-05-28 20:42:58 11488 [Note] Server hostname (bind-address): '*'; port: 3306
    2015-05-28 20:42:58 11488 [Note] IPv6 is available.
    2015-05-28 20:42:58 11488 [Note]   - '::' resolves to '::';
    2015-05-28 20:42:58 11488 [Note] Server socket created on IP: '::'.
    2015-05-28 20:42:58 11488 [ERROR] Can't start server: Bind on TCP/IP port: No such file or directory
    2015-05-28 20:42:58 11488 [ERROR] Do you already have another mysqld server running on port: 3306 ?
    2015-05-28 20:42:58 11488 [ERROR] Aborting

    2015-05-28 20:42:58 11488 [Note] Binlog end
    2015-05-28 20:42:58 11488 [Note] Shutting down plugin 'partition'
    2015-05-28 20:42:58 11488 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
    2015-05-28 20:42:58 11488 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
    2015-05-28 20:42:58 11488 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
    2015-05-28 20:42:58 11488 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
    2015-05-28 20:42:58 11488 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
    2015-05-28 20:42:58 11488 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
    2015-05-28 20:42:58 11488 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
    2015-05-28 20:42:58 11488 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
    2015-05-28 20:42:58 11488 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
    2015-05-28 20:42:58 11488 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
    2015-05-28 20:42:58 11488 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
    2015-05-28 20:42:58 11488 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
    2015-05-28 20:42:58 11488 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
    2015-05-28 20:42:58 11488 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
    2015-05-28 20:42:58 11488 [Note] Shutting down plugin 'INNODB_FT_DELETED'
    2015-05-28 20:42:58 11488 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
    2015-05-28 20:42:58 11488 [Note] Shutting down plugin 'INNODB_METRICS'
    2015-05-28 20:42:58 11488 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
    2015-05-28 20:42:58 11488 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
    2015-05-28 20:42:58 11488 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
    2015-05-28 20:42:58 11488 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
    2015-05-28 20:42:58 11488 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
    2015-05-28 20:42:58 11488 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
    2015-05-28 20:42:58 11488 [Note] Shutting down plugin 'INNODB_CMPMEM'
    2015-05-28 20:42:58 11488 [Note] Shutting down plugin 'INNODB_CMP_RESET'
    2015-05-28 20:42:58 11488 [Note] Shutting down plugin 'INNODB_CMP'
    2015-05-28 20:42:58 11488 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
    2015-05-28 20:42:58 11488 [Note] Shutting down plugin 'INNODB_LOCKS'
    2015-05-28 20:42:58 11488 [Note] Shutting down plugin 'INNODB_TRX'
    2015-05-28 20:42:58 11488 [Note] Shutting down plugin 'InnoDB'
    2015-05-28 20:42:58 11488 [Note] InnoDB: FTS optimize thread exiting.
    2015-05-28 20:42:58 11488 [Note] InnoDB: Starting shutdown...
    2015-05-28 20:42:59 11488 [Note] InnoDB: Shutdown completed; log sequence number 1665304
    2015-05-28 20:42:59 11488 [Note] Shutting down plugin 'BLACKHOLE'
    2015-05-28 20:42:59 11488 [Note] Shutting down plugin 'ARCHIVE'
    2015-05-28 20:42:59 11488 [Note] Shutting down plugin 'MRG_MYISAM'
    2015-05-28 20:42:59 11488 [Note] Shutting down plugin 'MyISAM'
    2015-05-28 20:42:59 11488 [Note] Shutting down plugin 'MEMORY'
    2015-05-28 20:42:59 11488 [Note] Shutting down plugin 'CSV'
    2015-05-28 20:42:59 11488 [Note] Shutting down plugin 'sha256_password'
    2015-05-28 20:42:59 11488 [Note] Shutting down plugin 'mysql_old_password'
    2015-05-28 20:42:59 11488 [Note] Shutting down plugin 'mysql_native_password'
    2015-05-28 20:42:59 11488 [Note] Shutting down plugin 'binlog'
    2015-05-28 20:42:59 11488 [Note] C:\xampp\mysql\bin\mysqld.exe: Shutdown complete

提前感谢您的帮助。欣赏它。

1 个答案:

答案 0 :(得分:0)

根据您的陈述,您已经检查了端口并发现它已被占用。所以我建议您更改端口。如果您想更改默认端口(不推荐)。请在mysql的实例路径中找到my.ini,例如 D:\ ProgramData \ MySQL \ MySQL Server 5.6 \ my.ini 。然后编辑 [client] [mysqld] 下面的端口,如下所示:

[client]
no-beep
# pipe
# socket=0.0
port=3306 #change to 3307
...
[mysqld]
...
# The TCP/IP Port the MySQL Server will listen on
port=3306 #change to 3307

然后保存,重启服务。

顺便说一句,如果你想在不同的端口运行不同的mysql,你应该做更多的事情。