leokhoa/laragon

Shutting down the server for too long and how to automatically removing mysqld

Opened this issue · 4 comments

I have two continuation questions:

questions 1.

Shutting down the server for too long. To MYSQL, it needs 20s.

_2024_05_24_06_28_39_106.mp4

questions 2.****

How to automatically removing mysqld?

When laragon stop all server, the mysqld no longer works but is still in Task Manager and eats too much memory.

p202

It seens a bug of laragon, beacuse i use cmd

  1. net start mysql
  2. net stop mysql

its result was the all mysqld.exe be killed from task tools. But change using laragen 6.0, the mysqld.exe do not be killed always.

@rfrkk : I will check and improve that. Laragon tries to graceful shutdown MySQL. It could be you have MySQL root password that prevent Laragon from calling mysqld command properly.

In mysql I have set a password.

Looking forward to Laragon's correction, thank you.

Currently I am using this method temporarily:
Everything is running normally and no mysql errors have occurred.
step1 laragon stop service
step2. Execute CloseMysqlService.bat

CloseMysqlService.bat

@echo off
echo working......
net stop mysql
@echo Delete redundant mysqld.exe (if any)
taskkill /F /IM mysqld.exe
echo success !
echo. & pause

I confirm that I’ve encountered the same situation. I stopped MySQL from the Laragon panel, but the mysqld.exe process remained running in the Task Manager. Then, I tried connecting to MySQL using HeidiSQL, and it worked fine, even though MySQL was stopped in the Laragon panel.