Figure 1. Shows a MySQL ODBC 3.51 DSN Configuration Dialog which, as its name suggests is used to configure user DSNs for MySQL. This visually shows the various information needed in constructing a DSN and their corresponding places and format in our sample connection string. TAKE NOTE that this connection APPLIES ONLY to MySQL ODBC DSNs and my NOT BE APPLICABLE to other database drivers or sources.
DSN=pcs;DESC=MySQL ODBC 3.51 Driver DSN;DATABASE=pcs;SERVER=localhost;UID=pcs;PASSWORD=cygnus;PORT=3306;OPTION=35;STMT=
DSN=pcs;DESC=MySQL ODBC 3.51 Driver DSN;DATABASE=pcs;SERVER=localhost;UID=pcs;PASSWORD=cygnus;PORT=3306;OPTION=35;STMT=
DSN=pcs;DESC=MySQL ODBC 3.51 Driver DSN;DATABASE=pcs;SERVER=localhost;UID=pcs;PASSWORD=cygnus;PORT=3306;OPTION=35;STMT=
DSN=pcs;DESC=MySQL ODBC 3.51 Driver DSN;DATABASE=pcs;SERVER=localhost;UID=pcs;PASSWORD=cygnus;PORT=3306;OPTION=35;STMT=

Figure 1. MySQL ODBC DSN Configuration Dialog
DSN=pcs;DESC=MySQL ODBC 3.51 Driver DSN;DATABASE=pcs;SERVER=localhost;UID=pcs;PASSWORD=cygnus;PORT=3306;OPTION=35;STMT=
DSN=pcs;DESC=MySQL ODBC 3.51 Driver DSN;DATABASE=pcs;SERVER=localhost;UID=pcs;PASSWORD=cygnus;PORT=3306;OPTION=35;STMT=
DSN=pcs;DESC=MySQL ODBC 3.51 Driver DSN;DATABASE=pcs;SERVER=localhost;UID=pcs;PASSWORD=cygnus;PORT=3306;OPTION=35;STMT=
DSN=pcs;DESC=MySQL ODBC 3.51 Driver DSN;DATABASE=pcs;SERVER=localhost;UID=pcs;PASSWORD=cygnus;PORT=3306;OPTION=35;STMT=
* Take note that these can be excluded in the connection string but still specified in the Open() function of the Connection object.

Figure 2. MySQL ODBC Options
DSN=pcs;DESC=MySQL ODBC 3.51 Driver DSN;DATABASE=pcs;SERVER=localhost;UID=pcs;PASSWORD=cygnus;PORT=3306;OPTION=35;STMT=
The option component of the connection string is formed by any or OR'ing two or more of the values below:
| Options that affect the behaviour of Driver |
Value |
| Don't Optimize Column Width | 1 |
| Return Matching Rows | 2 |
| Allow BIG Results | 8 |
| Use Compressed Protocol | 2048 |
| Change BIGINT Columns to INT | 16384 |
| Safety (Check this if you have problems) | 131072 |
| Miscellaneous Options | Value |
| Don't Prompt on Connect | 16 |
| Enable Dynamic Cursor | 32 |
| Ignore # in #.Table | 64 |
| Use Manager Cursors | 128 |
| Don't Use Setlocale | 256 |
| Pad CHAR to Full Length | 512 |
| Don't Cache Results (only for forward-only cursors) | 1048576 |
| Return Table names in SQLDescribeCol | 1024 |
| Ignore Space After Function Names | 4096 |
| Force Use of Named Pipes | (Unable to check value) |
| No Catalog (exp) | 32768 |
| Read Options from C:\my.cnf | 65536 |
| Disable Transactions | 262144 |
| Force Use of Forward-only Cursors | 2097152 |
Copyright 2003-2004 Mark Jundo P. Documento