错误:MySQL 意外关闭。插件“反馈”已禁用

问题描述 投票:0回答:2

今天我运行MySQL,MySQL 不工作,在控制台中给出以下错误:

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

检查“/xampp/mysql/data/mysql_error.log”文件时,我得到:

InnoDB: using atomic writes.
2021-03-16  8:30:41 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2021-03-16  8:30:41 0 [Note] InnoDB: Uses event mutexes
2021-03-16  8:30:41 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2021-03-16  8:30:41 0 [Note] InnoDB: Number of pools: 1
2021-03-16  8:30:41 0 [Note] InnoDB: Using SSE2 crc32 instructions
2021-03-16  8:30:41 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2021-03-16  8:30:41 0 [Note] InnoDB: Completed initialization of buffer pool
2021-03-16  8:30:41 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2021-03-16  8:30:41 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2021-03-16  8:30:41 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2021-03-16  8:30:41 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2021-03-16  8:30:41 0 [Note] InnoDB: Waiting for purge to start
2021-03-16  8:30:42 0 [Note] InnoDB: 10.4.17 started; log sequence number 47072; transaction id 8
2021-03-16  8:30:42 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2021-03-16  8:30:42 0 [Note] Plugin 'FEEDBACK' is disabled.
2021-03-16  8:30:42 0 [Note] InnoDB: Buffer pool(s) load completed at 210316  8:30:42
2021-03-16  8:30:42 0 [Note] Server socket created on IP: '::'.
mysql mariadb mariadb-10.4
2个回答
5
投票

删除这些文件并重新启动mysql服务。

/var/lib/mysqld/ib_logfile0
/var/lib/mysql/ib_logfile1
/var/lib/mysql/aria_log_control

0
投票

当 XAMPP 或 MAMP 配置为在系统启动时启动 MySQL 和 PHP 并且默认情况下 MySQL 使用端口 3306 时,经常会出现此错误。 我们必须像这样将此端口从旧端口更改为新端口:

  • 首先,您必须打开XAMPP控制面板。
  • 单击MySQL配置按钮->单击my.ini文件
  • 它将在记事本中打开,之后你必须在两个地方找到并更改端口号从3306到3307
  • 保存。

这里:

# The following options will be passed to all MySQL clients
[client]
Password = your_password   
port =  3306  #--->  3307  
socket =  "/ xampp / mysql / mysql.sock"

还有这里:

The MySQL server 
[ mysqld ] 
port =  3306  #--->  3307 
socket =  "/ xampp / mysql / mysql.sock"
© www.soinside.com 2019 - 2024. All rights reserved.