Hi,
Wampmanager Icon->PHP->php.ini
Two replacements by the port number you want
mysql.default_port = 3306
and
mysqli.default_port = 3306
Wampmanager Icon->MySQL->my.ini
Three replacements by the port number you want
port = 3306
for sections [client], [wampmysqld] (or [wampmysqld64]) and [mysqld]
This this can be done automaticaly by right-click Tools of my
Wampserver 2.5.17---------------------------------------------------------------
Documentation Apache -
Documentation PHP -
Documentation MySQL -
Wampserver install files & addons