Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rfrkk opened this issue May 23, 2024 · 4 comments

Comments

@rfrkk
Copy link

rfrkk commented May 23, 2024

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

@rfrkk
Copy link
Author

rfrkk commented May 28, 2024

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.

@leokhoa
Copy link
Owner

leokhoa commented May 28, 2024

@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.

@rfrkk
Copy link
Author

rfrkk commented May 28, 2024

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

@sensasi-delight
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants