Apply mysql port number where appropriate