Fixed MySQL2 reference issues and connection problem.

Need to take all of the connection details as the port was missing.