xampp mysql 重启,XAMPP MySQL服务重启后崩溃

I just install a XAMPP 7.3.6-2-VC15 for Win64, and when i install it, it's fine, MySQL start from control panel without error, et all is ok.

After rebooting my PC, Apache is still working, but MySQL refuse to start ! I try to reinstall XAMPP, but it's exactly the same. MySQL Work fine, and stop working after reboot.

Here is THe few log i have...

In the control panel :

09:48:10 [mysql] Attempting to start MySQL app...

09:48:10 [mysql] Status change detected: running

09:48:11 [mysql] Status change detected: stopped

09:48:11 [mysql] Error: MySQL shutdown unexpectedly.

09:48:11 [mysql] This may be due to a blocked port, missing dependencies,

09:48:11 [mysql] improper privileges, a crash, or a shutdown by another method.

09:48:11 [mysql] Press the Logs button to view error logs and check

09:48:11 [mysql] the Windows Event Viewer for more clues

09:48:11 [mysql] If you need more help, copy and post this

09:48:11 [mysql] entire log window on the forums

And in the log file :

2019-07-02 9:48:10 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions

2019-07-02 9:48:10 0 [Note] InnoDB: Uses event mutexes

2019-07-02 9:48:10 0 [Note] InnoDB: Compressed tables use zlib 1.2.11

2019-07-02 9:48:10 0 [Note] InnoDB: Number of pools: 1

2019-07-02 9:48:10 0 [Note] InnoDB: Using SSE2 crc32 instructions

2019-07-02 9:48:10 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M

2019-07-02 9:48:10 0 [Note] InnoDB: Completed initialization of buffer pool

2019-07-02 9:48:10 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=1834407

2019-07-02 9:48:10 0 [Note] InnoDB: 128 out of 128 rollback segments are active.

2019-07-02 9:48:10 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"

2019-07-02 9:48:10 0 [Note] InnoDB: Creating shared tablespace for temporary tables

2019-07-02 9:48:10 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...

2019-07-02 9:48:10 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.

2019-07-02 9:48:10 0 [Note] InnoDB: Waiting for purge to start

2019-07-02 9:48:10 0 [Note] InnoDB: 10.3.16 started; log sequence number 1834416; transaction id 265

2019-07-02 9:48:10 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool

2019-07-02 9:48:10 0 [Note] InnoDB: Buffer pool(s) load completed at 190702 9:48:10

2019-07-02 9:48:10 0 [Note] Plugin 'FEEDBACK' is disabled.

2019-07-02 9:48:10 0 [Note] Server socket created on IP: '::'.

I try the following :

Change port for other than 3306 => no success

Run xamp control panel as admin => no success

remove temporary table ibdata1 and ibtmp1 => no success

If someone have an idea...

EDIT : I try to install as a windows service via admin panel as administrator. And so, i have some new lines in log. Seems user table is corrupted... how can i repair ?

2019-07-02 10:04:41 0 [ERROR] mysqld.exe: Table '.\mysql\user' is marked as crashed and should be repaired

2019-07-02 10:04:41 0 [ERROR] mysqld.exe: Index for table '.\mysql\user' is corrupt; try to repair it

2019-07-02 10:04:41 0 [ERROR] Couldn't repair table: mysql.user

2019-07-02 10:04:41 0 [ERROR] Fatal error: Can't open and lock privilege tables: Index for table 'user' is corrupt; try to repair it

解决方案

This one helped for me:

Open shell from from control panel and start mysql with this command:

mysqld –-console –-skip-grant-tables –-skip-external-locking

Open another shell from control panel and repair database with this command:

mysqlcheck -r --databases mysql --use-frm

Stop mysql, close shells and restart mysql normally.

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值