When the Services are started, connect to MySQL – open cmd.exe and run the following command: C:\Users\Nisarg>mysql -u root -pĪs you can see in the above screenshot, the command encounters an error. Use the following command: PS C:\> net start MySQL Test Connectivity Using the Command Line ![]() Once the my.ini file is updated, we should start MySQL from the Services. Once you find the file, open it with any text editor and add the following line: Port = 3242 In this demo, the location of that directory is C:\MySQL_Home. The my.ini file is in the MySQL Home directory. We can change the default port by editing the my.ini configuration file. Once the Services are stopped, we’ll edit the configuration file. PowerShell Command PS C:\> net stop MySQL ![]() We are using PowerShell commands for that: Stop MySQL Service and Add the Port Number in the my.ini fileīefore we change the default port, we must stop the MySQL Services. ![]() Now, let us stop the MySQL service and edit the MySQL configuration file. Specify the Name and Description of the new firewall’s rule in the Name screen.Ĭlick Finish to create the rule and close the wizard. Select Domain, Private, and Public checkboxes and click Next. We want to apply the rule to all network locations. Select Allow the connection on the Action screen. On the Protocols and Ports screen, select TCP and enter 3242 into the Specific local ports field. Click on Inbound Rules from the left pane > New Rule: To create a firewall rule, open the Control Panel > Windows Defender firewall > Advanced settings:Ī dialog box named Windows Defender Firewall with Advanced Security opens. Now, let us understand how to create a firewall rule that allows incoming connections from port number 3242.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |