0

How can I solve the problem when I try to install MySQL 5.6 and it tells me that the specified port 3306 is already in use. I uninstall my previous MySQL which is version 5.1 already and I do not have any idea to check which program is using the port. Can somebody please post a step by step guide?

Thanks in advance.

  • when you install MySQL 5.6, you can change the port into 3307. – JW 웃 May 29 '13 at 13:30
  • Open task manager and look for mysqld process – JesseJames May 29 '13 at 13:31
  • 2
    did you actually stop the old process before you removed MySQL? – Alnitak May 29 '13 at 13:34
  • 3
    You can run netstat -tulpn to see what process is listening on 3306. – Alex Howansky May 29 '13 at 13:38
  • 1
    most servers that run MySQL don't have control panels... ;-) – Alnitak May 29 '13 at 13:38
0

First of all uninstall the previous version of mysql... in most of the cases it works. If it doesn't , open Run (win+R) and type "resmon.exe" .A window will be opened, now click on Listening ports .Now you can see port "3306" as mysqld.exe. Now, remember the PID of the mysqld.exe. Now, open cmd (as administrator) and type taskkill /F /PID 3306 (if your PID is 3306) .... That's it now you can reinstall mysql again with 3306 port

  • This helped, thanks – Nate Jun 5 at 15:35