Windows Firewall Configuration Process

Windows Firewall Configuration Process

Windows Firewall Configuration Process

Below you can find some quick screenshots showing the required configuration of a Windows firewall for successful connections to a default instance and a named instance.
 
A default instance of SQL Server listening on the default port 1433. In this scenario, you need to ensure an exception is added to TCP port 1433 in the Windows firewall.
In the Case of MYSQL Default Port is 3306.

To open a port in the Windows firewall for TCP access –

  1. On the Start menu, click Run, type WF.msc, and then click OK.
            
  1. In the Windows Firewall with Advanced Security, in the left pane, Double click Inbound Rules, and then click New Rule in the action panel.
            

  1. In the Rule Type dialog box, select Port, and then click Next.
            

  1. In the Protocol and Ports dialog box, select TCP. Select Specific local ports, and then type the port number of the instance of the Database Engine, such as 1433 for the default instance for MSSQL. Click Next.
            

  1. In the Action dialog box, select Allow the connection, and then click Next.
            

  1. In the Profile dialog box, select any profiles that describe the computer connection environment when you want to connect to the Database Engine, and then click Next.
            

  1. In the Name dialog box, type a name and description for this rule, and then click Finish.
            
  1. Once done, you should see that rule is created and is enabled by default. 
             

 
According to same type you have add the same Port in Outbound Rules also. 
 
NOTE : For MYSQL you have to ADD – 3306 Port in Inbound and Outbound Both Rules.

Hope this helps.