XAMPP:即使我更改了MySQL端口,也阻止了MySQL端口

时间:2018-03-17 13:27:03

标签: mysql xampp port blocked

最初我让XAMPP与MariaDB一起运行然后意识到我需要MySQL,所以尝试单独安装MySQL(https://dev.mysql.com/downloads/installer/)但是这非常麻烦所以我卸载了所有内容并重新安装了XAMPP与MySQL(https://filehippo.com/download_xampp/)。

但MySQL一直告诉我它的端口被阻止了。我找不到阻塞端口的内容,所以我在my.ini文件中以及XAMPP服务和端口设置中将其更改为端口:3308 (最初为端口:3306)。但我仍然得到一个错误,所以现在我真的很困惑为什么MySQL拒绝工作。

有人可以解决这个问题吗?

MySQL错误日志:

2018-03-17 13:07:28 1a34 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.
2018-03-17 13:07:28 6708 [Note] InnoDB: innodb_empty_free_list_algorithm has been changed to legacy because of small buffer pool size. In order to use backoff, increase buffer pool at least up to 20MB.

2018-03-17 13:07:28 6708 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2018-03-17 13:07:28 6708 [Note] InnoDB: The InnoDB memory heap is disabled
2018-03-17 13:07:28 6708 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2018-03-17 13:07:28 6708 [Note] InnoDB: _mm_lfence() and _mm_sfence() are used for memory barrier
2018-03-17 13:07:28 6708 [Note] InnoDB: Compressed tables use zlib 1.2.3
2018-03-17 13:07:28 6708 [Note] InnoDB: Using generic crc32 instructions
2018-03-17 13:07:28 6708 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2018-03-17 13:07:28 6708 [Note] InnoDB: Completed initialization of buffer pool
2018-03-17 13:07:28 6708 [Note] InnoDB: Restoring page 0 of tablespace 0
2018-03-17 13:07:28 6708 [Warning] InnoDB: Doublewrite does not have page_no=0 of space: 0
2018-03-17 13:07:28 6708 [ERROR] InnoDB: space header page consists of zero bytes in data file C:\xampp\mysql\data\ibdata1
2018-03-17 13:07:28 6708 [ERROR] InnoDB: Could not open or create the system tablespace. If you tried to add new data files to the system tablespace, and it failed here, you should now edit innodb_data_file_path in my.cnf back to what it was, and remove the new ibdata files InnoDB created in this failed attempt. InnoDB only wrote those files full of zeros, but did not yet use them in any way. But be careful: do not remove old data files which contain your precious data!
2018-03-17 13:07:28 6708 [ERROR] Plugin 'InnoDB' init function returned error.
2018-03-17 13:07:28 6708 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2018-03-17 13:07:28 6708 [Note] Plugin 'FEEDBACK' is disabled.
2018-03-17 13:07:28 6708 [ERROR] Unknown/unsupported storage engine: InnoDB
2018-03-17 13:07:28 6708 [ERROR] Aborting

1 个答案:

答案 0 :(得分:0)

InnoDB: space header page consists of zero bytes in data file C:\xampp\mysql\data\ibdata1

它不是端口块,但问题在于文件。

它看起来像磁盘已满,没有权限,或者你应该使用chkdsk。也许文件ibdata1已损坏。