First we will check mysql port in settings file.It will be located in the MySQL installation directory, e.g. C:\Program Files\MySQL\MySQL Server 8.0\.Open the. ini configuration file with Notepad and Find the MySQL port that is listening on Windows. Now we will open port from windows firewall: 1. Open the Control Panel and click Security and ..