简体   繁体   English

MySQL 会话不会在 XAMPP 上启动

[英]MySQL session won't start on XAMPP

my MySQL won't start and it shows like this:我的 MySQL 无法启动,显示如下:

12:50:50  [mysql]   Error: MySQL shutdown unexpectedly.
12:50:50  [mysql]   This may be due to a blocked port, missing dependencies, 
12:50:50  [mysql]   improper privileges, a crash, or a shutdown by another method.
12:50:50  [mysql]   Press the Logs button to view error logs and check
12:50:50  [mysql]   the Windows Event Viewer for more clues
12:50:50  [mysql]   If you need more help, copy and post this
12:50:50  [mysql]   entire log window on the forums

and then this is the error logs:然后这是错误日志:

InnoDB: using atomic writes.
2020-03-05 12:50:47 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2020-03-05 12:50:47 0 [Note] InnoDB: Uses event mutexes
2020-03-05 12:50:47 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-03-05 12:50:47 0 [Note] InnoDB: Number of pools: 1
2020-03-05 12:50:47 0 [Note] InnoDB: Using SSE2 crc32 instructions
2020-03-05 12:50:47 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2020-03-05 12:50:47 0 [Note] InnoDB: Completed initialization of buffer pool
2020-03-05 12:50:48 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2020-03-05 12:50:48 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-03-05 12:50:48 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-03-05 12:50:48 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2020-03-05 12:50:48 0 [Note] InnoDB: Waiting for purge to start
2020-03-05 12:50:48 0 [Note] InnoDB: 10.4.11 started; log sequence number 300306; transaction id 171
2020-03-05 12:50:48 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2020-03-05 12:50:48 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-03-05 12:50:48 0 [Note] InnoDB: Buffer pool(s) load completed at 200305 12:50:48
2020-03-05 12:50:48 0 [Note] Server socket created on IP: '::'.
2020-03-05 12:50:48 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.


2020-03-05 12:50:48 0 [ERROR] Do you already have another mysqld server running on port: 3306 ?
2020-03-05 12:50:48 0 [ERROR] Aborting

What is the cause of these errors and how can I rectify them?这些错误的原因是什么,我该如何纠正它们?

THANK YOU SO MUCH.太感谢了。

for this issue go to:对于这个问题去:

c:\\xampp\\mysql\\data\\ c:\\xampp\\mysql\\data\\

and delete ALL FILES except DIRECTORIES并删除除目录之外的所有文件

just in case keep my.ini, if you got error again delete my.ini too.以防万一保留my.ini,如果再次出错,也删除my.ini。

I hope it helps you.我希望它能帮助你。

Very Very Easy非常容易

follow the steps按照步骤

1.go to xampp\\mysql\\backup copy everything from backup folder then 1.去 xampp\\mysql\\backup 从备份文件夹复制所有内容然后

2.go to xampp\\mysql\\data paste everything in data folder copied from backup folder 2.转到 xampp\\mysql\\data 粘贴从备份文件夹复制的数据文件夹中的所有内容

Restart xampp and start all.Thanks.重新启动 xampp 并启动​​所有。谢谢。

my MySQL won't start and it shows like this:我的MySQL无法启动,它显示如下:

12:50:50  [mysql]   Error: MySQL shutdown unexpectedly.
12:50:50  [mysql]   This may be due to a blocked port, missing dependencies, 
12:50:50  [mysql]   improper privileges, a crash, or a shutdown by another method.
12:50:50  [mysql]   Press the Logs button to view error logs and check
12:50:50  [mysql]   the Windows Event Viewer for more clues
12:50:50  [mysql]   If you need more help, copy and post this
12:50:50  [mysql]   entire log window on the forums

and then this is the error logs:然后这是错误日志:

InnoDB: using atomic writes.
2020-03-05 12:50:47 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2020-03-05 12:50:47 0 [Note] InnoDB: Uses event mutexes
2020-03-05 12:50:47 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-03-05 12:50:47 0 [Note] InnoDB: Number of pools: 1
2020-03-05 12:50:47 0 [Note] InnoDB: Using SSE2 crc32 instructions
2020-03-05 12:50:47 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2020-03-05 12:50:47 0 [Note] InnoDB: Completed initialization of buffer pool
2020-03-05 12:50:48 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2020-03-05 12:50:48 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-03-05 12:50:48 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-03-05 12:50:48 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2020-03-05 12:50:48 0 [Note] InnoDB: Waiting for purge to start
2020-03-05 12:50:48 0 [Note] InnoDB: 10.4.11 started; log sequence number 300306; transaction id 171
2020-03-05 12:50:48 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2020-03-05 12:50:48 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-03-05 12:50:48 0 [Note] InnoDB: Buffer pool(s) load completed at 200305 12:50:48
2020-03-05 12:50:48 0 [Note] Server socket created on IP: '::'.
2020-03-05 12:50:48 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.


2020-03-05 12:50:48 0 [ERROR] Do you already have another mysqld server running on port: 3306 ?
2020-03-05 12:50:48 0 [ERROR] Aborting

What is the cause of these errors and how can I rectify them?这些错误的原因是什么,我该如何纠正?

THANK YOU SO MUCH.太感谢了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM