Jump to content

mysqld.exe unable to be deleted


Irate
Go to solution Solved by kicken,

Recommended Posts

Yeah, topic title.

 

I've been using XAMPP, messed up my configuration details big time and couldn't reverse it, decided to uninstall it and then re-install it, but I can't delete that single file because it is perpetually executing even though I never opened it.

All other files were deleted without problems...

 

Any way to end the process (I can't find it in my taskmgr) prematurely or any way to delete the file?

 

Thanks in advance...

Link to comment
Share on other sites

Still occuring, tried looking up all processes with sql in it, ended them, couldn't delete mysqld.exe.

 

Anyone know how to force a delete if the process is still running?

Link to comment
Share on other sites

Hahah, thank you for the suggestion, but I'm staying with Windows at the moment, I just bought this PC a year ago, whenever I get a new PC, I'll get myself Linux.

 

So... any other suggestions? :/

Link to comment
Share on other sites

Did you stop the process through Xamp?

 

When you shut down your computer it should stop.

 

I uninstalled XAMPP and it prompted me to try deleting the folder, but couldn't.

I shut down my PC and rebooted it already, didn't work :l

 

 

 

the suggestion to use a bootable linux cd wasn't to install linux, it was to boot to an environment where windows isn't running so that you can delete the file without it being locked by the windows operating system.

 

 

Would I be able to achieve the same with a VM?

Link to comment
Share on other sites

I'm not sure whether you would be able to achive that in case this VM is a part of the same windows instalation.

 

What's the problem with the bootable linux cd?    

 

Another good alternative is Hirens.BootCD.

Link to comment
Share on other sites

I just talked to my IT Teacher at school, he said that I could download such data freely and then play it on a CD.

 

Thank you for the suggestion, I'll reply once I have more information on this matter.

Link to comment
Share on other sites

You could also just boot into windows safe mode and delete the file. Mysql shouldn't be started up when you boot into safe mode.

 

 

That did the job, wonder why I didn't come to think of it yet...

Link to comment
Share on other sites

  • 3 years later...

I know it is too late to reply back, but I just had this issue and fixed it simpler and the good thing about this method is that I do not have to reboot the PC or start anything in safemode.

 

1-If you go to resmon from run (resource monitor) and look for associate handlers, and search for mysqld.exe, you´ll probably see it used by explorer.

2-Open Task Manager

3-Open CMD

4-Stop the explorer.exe from taskmgr (This will close all your explorer windows)

5-Go to the Command prompt or CMD and run

cd C:\XAMPP\directory where the mysqld.exe is stored, once you are within the directory where mysqld.exe

type and run del  mysqld.exe to delete the file

type and run explorer.exe and everything will go back to normal, you will see the file dissapeared and you will be able to delete the directory.

 

Late but I just wanted to provide another method. Imagine if you would need to do this on a cluster or a server where you are not able to restart. :-)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.