close port 3306 windows code example Example: free port number 3306 in windows 10 Just Open task manager and Kill MySql service.