why run ODBC with Mono? you can create apps that access MySQL directly using
MySQL's own MySQL Connector/.NET, or PostgreSQL's Npgsql database drivers
for .NET. they work great with Mono on Linux.

On 4/26/07, KRTorio <[EMAIL PROTECTED]> wrote:

I have already installed mono (mono-core-1.2.3.1-0.novell) on FC4, and
successfully run simple gui .NET programs.
However I haven't had any success with running database-driven ones.

The application uses MySQL.
I Installed unixODBC (unixODBC-2.2.11-3.FC4.1) via yum and mySQL (
mysql-connector-odbc-3.51.14-0).

Every time I try to run the app, I get the following message:

Unhandled Exception: System.Data.Odbc.OdbcException : [unixODBC][Driver
Manager]Data source name not found, and no default driver specified
  at System.Data.Odbc.OdbcConnection.Open () [0x00000]

Here are the contents of my /etc/odbcinst.ini file:

[PostgreSQL]
Description             = ODBC for PostgreSQL
Driver          = /usr/lib/libodbcpsql.so
Setup           = /usr/lib/libodbcpsqlS.so
FileUsage               = 1

[MySQL ODBC 3.51 Driver]
DRIVER          = /usr/lib/libmyodbc3.so
SETUP           = /usr/lib/libmyodbc3S.so
UsageCount              = 1



_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to