Oracle 5.0 Reference Manual page 1845

Table of Contents

Advertisement

To install Connector/Net on Unix/Mono:
1. Download the
directory of your choice, for example: ~/connector-net/.
2. In the directory where you unzipped the connector to, change into the
file
MySql.Data.dll
3. You must register the Connector/Net component, MySql.Data, in the Global Assembly Cache
(GAC). In the current directory enter the
root-shell> gacutil /i MySql.Data.dll
This will register
lib/mono/gac, where you will find
You are now ready to compile your application. You must ensure that when you compile your
application you include the Connector/Net component using the
example:
shell> gmcs -r:System.dll -r:System.Data.dll -r:MySql.Data.dll HelloWorld.cs
Note, the assemblies that are referenced depend on the requirements of the application, but
applications using Connector/Net must provide
You can further check your installation by running the compiled program, for example:
shell> mono HelloWorld.exe
20.2.2.3. Installing Connector/Net from the Source Code
Obtaining the Source Code
To obtain the most recent development source tree, first download and install Bazaar. You can obtain
Bazaar from the
is therefore compatible with any Linux, Unix, Windows or Mac OS X host. Instructions for downloading
and installing Bazaar on the different platforms are available on the Bazaar Web site.
The most recent development source tree is available from our public Subversion trees at
dev.mysql.com/tech-resources/sources.html.
To check out out the Connector/Net sources, change to the directory where you want the copy of the
Connector/Net tree to be stored, then use the following command:
shell> bzr branch lp:connectornet/trunk
To download a specific version of Connector/Net, specify the version number instead of trunk. For
example, to obtain a copy of the 6.0 version of the source tree:
shell> bzr branch lp:connectornet/6.0
Source packages are also available on the downloads page.
Building the Source Code on Windows
The following procedure can be used to build the connector on Microsoft Windows.
Connector/Net Installation
mysql-connector-net-version-noinstall.zip
is present. This filename is case-sensitive.
into the GAC. You can check this by listing the contents of
MySql.Data
Caution
Read this section only if you are interested in helping us test our new code.
If you just want to get Connector/Net up and running on your system, use a
standard release distribution.
Bazaar VCS
Website. Bazaar is supported by any platform that supports Python, and
command:
gacutil
if the registration has been successful.
MySql.Data
-r:MySql.Data
1825
and extract the contents to a
subdirectory. Ensure the
bin
command-line option. For
-r:
as a minimum.
/usr/
http://

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents