Connector/ODBC Examples
1772
TraceFile
specifies the name and full path of the trace file and
Trace
is set to
ON
or
OFF
. You
can also use
1
or
YES
for
ON
and
0
or
NO
for
OFF
. If you are using
ODBCConfig
from
unixODBC
,
then follow the instructions for tracing
unixODBC
calls at
HOWTO-ODBCConfig
.
20.1.4.8.4. Enabling a Connector/ODBC Log
To generate a Connector/ODBC log, do the following:
1. Within Windows, enable the
Trace Connector/ODBC
option flag in the Connector/ODBC
connect/configure screen. The log is written to file
C:\myodbc.log
. If the trace option is not
remembered when you are going back to the above screen, it means that you are not using the
myodbcd.dll
driver, see
Section 20.1.4.3.3, “Troubleshooting ODBC Connection Problems”
.
On Mac OS X, Unix, or if you are using a DSN-less connection, either supply
OPTION=4
in the
connection string, or set the corresponding keyword/value pair in the DSN.
2. Start your application and try to get it to fail. Then check the Connector/ODBC trace file to find out
what could be wrong.
If you need help determining what is wrong, see
Section 20.1.8.1, “Connector/ODBC Community
Support”
.
20.1.5. Connector/ODBC Examples
Once you have configured a DSN to provide access to a database, how you access and use that
connection is dependent on the application or programming language. As ODBC is a standardized
interface, any application or language that supports ODBC can use the DSN and connect to the
configured database.
20.1.5.1. Basic Connector/ODBC Application Steps
Interacting with a MySQL server from an applications using the Connector/ODBC typically involves the
following operations:
• Configure the Connector/ODBC DSN.
• Connect to MySQL server.
• Initialization operations.
• Execute SQL statements.
• Retrieve results.
• Perform
transactions
.
• Disconnect from the server.
Most applications use some variation of these steps. The basic application steps are shown in the
following diagram:
Содержание 5.0
Страница 1: ...MySQL 5 0 Reference Manual ...
Страница 18: ...xviii ...
Страница 60: ...40 ...
Страница 396: ...376 ...
Страница 578: ...558 ...
Страница 636: ...616 ...
Страница 844: ...824 ...
Страница 1234: ...1214 ...
Страница 1426: ...MySQL Proxy Scripting 1406 The following diagram shows an overview of the classes exposed by MySQL Proxy ...
Страница 1427: ...MySQL Proxy Scripting 1407 ...
Страница 1734: ...1714 ...
Страница 1752: ...1732 ...
Страница 1783: ...Configuring Connector ODBC 1763 ...
Страница 1793: ...Connector ODBC Examples 1773 ...
Страница 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Страница 1842: ...Connector Net Installation 1822 5 Once the installation has been completed click Finish to exit the installer ...
Страница 1864: ...Connector Net Visual Studio Integration 1844 Figure 20 24 Debug Stepping Figure 20 25 Function Stepping 1 of 2 ...
Страница 2850: ...2830 ...
Страница 2854: ...2834 ...
Страница 2928: ...2908 ...
Страница 3000: ...2980 ...
Страница 3122: ...3102 ...
Страница 3126: ...3106 ...
Страница 3174: ...3154 ...
Страница 3232: ...3212 ...