How to change mysql port in wamp server

Change port 3306 to 3307 on Wampserver

1. Right click on WampServer tray icon

2. Got to Mysql=>my.ini File.

3.Open my.ini File.

4.change the mysql port.

Look for this line

# The MySQL server
port = 3306

5.Change both instances to another port (i.e. 3307)

6.Save my.ini File,

7.Restart Wamp MYSQL


we have changed the default port for MySQL from 3306 to 3307.

How to change apache port in wamp server

  1. Open the http.conf file found in your /wamp/bin/apache/Apache2.2.17/conf/ folder.
  2. Search for the line that shows Listen 80 and change it to Listen 81 or whatever port you want to change Apache to.
  3. Save and Close the file.
  4. Open the wampmanager.ini file in the /wamp/ folder.
  5. Search for localhost and when you find the lines that shows Parameters: “http://localhost/”; Glyph: , change the last parameter to http://localhost:81/ or whatever port you have changed for Apache.  This may come up in multiple places. This is to make sure that wamps links work properly.
  6. Save the file and close.
  7. Do the same thing with the wampmanager.tpl file and you are done :)