Specifying TCP/IP port using MySQL ODBC 5.1

Connection string

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

Driver={MySQL ODBC 5.1 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.