gpt4 book ai didi

mysql - XAMPP:MySQL 端口被阻止,即使我更改了它

转载 作者:行者123 更新时间:2023-11-29 17:50:59 27 4
gpt4 key购买 nike

最初,我让 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

最佳答案

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

这不是端口阻塞,而是文件问题。

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

关于mysql - XAMPP:MySQL 端口被阻止,即使我更改了它,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49336548/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com