There is only one config file:
includes/config.inc.php
The top area should deal with connection information; I'm not entirely sure if Rick allows specifying a specific port in the configuration however... if it doesn't then you may have to edit the mysql lib file.