我的 sql 没有在 XAAMP 上启动端口,而且我还向您发送了日志文件,PL 帮忙看看其中有什么错误?

我的 sql 没有在 XAAMP 上启动端口,而且我还向您发送了日志文件,PL 帮忙看看其中有什么错误?
2019-08-17 21:29:46 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2019-08-17 21:29:46 0 [Note] InnoDB: Uses event mutexes
2019-08-17 21:29:46 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2019-08-17 21:29:46 0 [Note] InnoDB: Number of pools: 1
2019-08-17 21:29:46 0 [Note] InnoDB: Using SSE2 crc32 instructions
2019-08-17 21:29:46 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2019-08-17 21:29:46 0 [Note] InnoDB: Completed initialization of buffer pool
2019-08-17 21:29:47 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=1791378
2019-08-17 21:29:47 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2019-08-17 21:29:47 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2019-08-17 21:29:47 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2019-08-17 21:29:47 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2019-08-17 21:29:47 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2019-08-17 21:29:47 0 [Note] InnoDB: Waiting for purge to start
2019-08-17 21:29:47 0 [Note] InnoDB: 10.3.16 started; log sequence number 1791387; transaction id 163
2019-08-17 21:29:47 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2019-08-17 21:29:47 0 [Note] Plugin 'FEEDBACK' is disabled.
2019-08-17 21:29:47 0 [Note] Server socket created on IP: '::'.
2019-08-17 21:29:47 0 [ERROR] Can't start server: Bind on TCP/IP port. Got error: 10048: Only one usage of each socket address (protocol/network address/port) is normally permitted.


2019-08-17 21:29:47 0 [ERROR] Do you already have another mysqld server running on port: 3306 ?
2019-08-17 21:29:47 0 [ERROR] Aborting

2019-08-17 21:31:26 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2019-08-17 21:31:26 0 [Note] InnoDB: Uses event mutexes
2019-08-17 21:31:26 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2019-08-17 21:31:26 0 [Note] InnoDB: Number of pools: 1
2019-08-17 21:31:26 0 [Note] InnoDB: Using SSE2 crc32 instructions
2019-08-17 21:31:26 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2019-08-17 21:31:26 0 [Note] InnoDB: Completed initialization of buffer pool
2019-08-17 21:31:27 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2019-08-17 21:31:27 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2019-08-17 21:31:27 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2019-08-17 21:31:27 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2019-08-17 21:31:27 0 [Note] InnoDB: Waiting for purge to start
2019-08-17 21:31:27 0 [Note] InnoDB: 10.3.16 started; log sequence number 1791396; transaction id 163
2019-08-17 21:31:27 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2019-08-17 21:31:27 0 [Note] Plugin 'FEEDBACK' is disabled.
2019-08-17 21:31:27 0 [Note] Server socket created on IP: '::'.
2019-08-17 21:31:27 0 [ERROR] Can't start server: Bind on TCP/IP port. Got error: 10048: Only one usage of each socket address (protocol/network address/port) is normally permitted.


2019-08-17 21:31:27 0 [ERROR] Do you already have another mysqld server running on port: 3306 ?
2019-08-17 21:31:27 0 [ERROR] Aborting

2019-08-17 21:45:02 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2019-08-17 21:45:02 0 [Note] InnoDB: Uses event mutexes
2019-08-17 21:45:02 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2019-08-17 21:45:02 0 [Note] InnoDB: Number of pools: 1
2019-08-17 21:45:02 0 [Note] InnoDB: Using SSE2 crc32 instructions
2019-08-17 21:45:02 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2019-08-17 21:45:02 0 [Note] InnoDB: Completed initialization of buffer pool
2019-08-17 21:45:02 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2019-08-17 21:45:02 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2019-08-17 21:45:02 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2019-08-17 21:45:02 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2019-08-17 21:45:02 0 [Note] InnoDB: Waiting for purge to start
2019-08-17 21:45:02 0 [Note] InnoDB: 10.3.16 started; log sequence number 1791405; transaction id 163
2019-08-17 21:45:02 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2019-08-17 21:45:02 0 [Note] Plugin 'FEEDBACK' is disabled.
2019-08-17 21:45:02 0 [Note] Server socket created on IP: '::'.
2019-08-17 21:45:02 0 [ERROR] Can't start server: Bind on TCP/IP port. Got error: 10048: Only one usage of each socket address (protocol/network address/port) is normally permitted.


2019-08-17 21:45:02 0 [ERROR] Do you already have another mysqld server running on port: 3306 ?
2019-08-17 21:45:02 0 [ERROR] Aborting

答案1

我将 XAMPP 的端口改为 3307,MySQL 保持不变。以下是我这样做的方法:*请注意,您的系统上的行号可能有所不同。

在 XAMPP GUI 中单击“配置”->“服务和端口设置”​​->“MySQL”选项卡->将主端口更改为 3307->保存->保存

找到 XAMPP 的安装文件 -> 打开 MySQL 文件夹 -> 打开 bin 文件夹 -> 右键单击​​“my.ini”并编辑

更改以下几行:(第 20 行)端口 = 3306 -> 端口 = 3307(第 28 行)端口 = 3306 -> 端口 = 3307

保存文件,重新启动计算机,服务器即可运行。

相关内容