Reset All TCP/IP Ports

I recently started running into a problem when using XAMPP webserver to develop site locally.

Occasionality the MYSQL service wouldn’t start due to a blocked port. Restarting my PC wouldn’t clear the port and the service still couldn’t be started. Sometimes, after leaving the PC off for a bit the problem would solve itself. It’s not always practical to sit around and wait for the problem to fix itself so the next thing to try is flushing all the TCP/IP ports to clear up whatever is blocking your MYSQL port.

To do this, search for “Windows Powershell”, right-click on it and select “Run As Administrator”.

When the Powershell opens, type:

netsh int ip reset

And hit “Enter”

This will then flush your ports. Restart the PC to complete the process and you should now be able to run MYSQL without the port issue cropping up.

Disclaimer: The code on this website is provided "as is" and comes with no warranty. The author of this website does not accept any responsibility for issues arising from the use of code on this website. Before making any significant changes, ensure you take a backup of all files and do not work directly on a live/production website without thoughly testing your changes first.

Leave a Reply

Your email address will not be published. Required fields are marked *