The only way to get mysql to connect to a database on a different port is to start it with the "-p" option.
www.coderanch.com