Specifying TCP/IP port using MySQL ODBC 5.2

Connection string

This MySQL Connector/ODBC 5.2 connection string can be used for connections to MySQL.

Driver={MySQL ODBC 5.2 ANSI Driver};Server=myServerAddress;Port=3306;
Database
=myDataBase;
User=myUsername;Password=myPassword;Option=3;

The driver defaults to port value 3306, if not specified in the connection string, as 3306 is the default port for MySQL.