Default Port for MySQL Server is 3306.
We can change this Default port to any Port we want.
Please follow the following steps for the Same.
1. Find the "my.ini" file at following location,
C:\Program Files\MySQL\MySQL Server 5.0\my.ini
2. Search for "port=3306" in my.ini file.
3. There are two instances of "port=3306".
4. change the value to say "port=3309" in both the occurances of Port.
5. Save the "my.ini" file.
6. Open "Run" and Enter "Services.msc" in it.Hit Enter.
7. Restart "MYSQL" services from Services screen.
8. Now check the changed port by logging in to MYSQL Server where you need to enter "port" as "3309".
Note:- Restarting of MySQL service is mandatory.
