Oracle 5.0 Reference Manual page 1767

Table of Contents

Advertisement

3. The directory created contains the subdirectories, lib, bin, and test. Copy the contents of
and
to a suitable location such as /usr/local:
bin
shell> sudo cp bin/* /usr/local/bin
shell> sudo cp lib/* /usr/local/lib
4. Finally, register the driver with iODBC using the
shell> myodbc3i -a -d -t"MySQL ODBC 3.51 Driver;Driver=/usr/local/lib/libmyodbc3.so;Setup=/usr/local
To verify the installed drivers, either use the ODBC Administrator application or the
shell> myodbc3i -q -d
20.1.3.4. Building Connector/ODBC from a Source Distribution on Windows
You only need to build Connector/ODBC from source on Windows to modify the source or installation
location. If you are unsure whether to install from source, please use the binary installation detailed in
Section 20.1.3.1, "Installing Connector/ODBC on
Building Connector/ODBC from source on Windows requires a number of different tools and packages:
• MDAC, Microsoft Data Access SDK from http://support.microsoft.com/kb/110093.
• Suitable C compiler, such as Microsoft Visual C++ or the C compiler included with Microsoft Visual
Studio.
Microsoft Visual Studio 7 and 8 are preferred, and well-tested.
• Connector/ODBC 5.2: cmake.
• MySQL client libraries and include files from MySQL 4.0.0 or higher. (Preferably MySQL 4.0.16 or
higher). This is required because Connector/ODBC uses calls and structures that exist only starting
from this version of the library. To get the client libraries and include files, visit
downloads/.
Build Steps
Set the environment variables for the Visual Studio toolchain. Visual Studio includes a batch file to set
these for you, and installs a Start menu shortcut that opens a command prompt with these variables
set.
Set
MYSQL_DIR
example:
C:\>
set MYSQL_DIR=C:\PROGRA~1\MySQL\MYSQLS~1.0
Build Connector/ODBC using the
root directory (in a command prompt window):
C:\>
cmake -G "Visual Studio 8 2005"
This produces a project file that you can open with Visual Studio, or build from the command line with
either of the following commands:
C:\>
devenv.com MySQL_Connector_ODBC.sln /build Release
C:\>
devenv.com MySQL_Connector_ODBC.sln /build RelWithDebInfo
To compile a debug build, set the
libraries are used:
C:\>
cmake -G "Visual Studio 8 2005" -DCMAKE_BUILD_TYPE=Debug
C:\>
devenv.com MySQL_Connector_ODBC.sln /build Debug
Upon completion, the executables are in the
Connector/ODBC Installation
to the MySQL server installation path, while using the short-style file names. For
command-line tool by executing the following from the source
cmake
build type so that the correct versions of the MySQL client
cmake
tool you just installed:
myodbc3i
Windows".
and
subdirectories.
bin/
lib/
1747
lib
utility:
myodbc3i
http://dev.mysql.com/

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents