MySQLTalk.org Forum Index MySQLTalk.org
MYSQL discussions groups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Re: ODBC access to MySQL on Linux

 
Post new topic   Reply to topic    MySQLTalk.org Forum Index -> MySQL ODBC
View previous topic :: View next topic  
Author Message
Dr A V Le Blanc
Guest





PostPosted: Fri Jul 16, 1999 8:25 am    Post subject: Re: ODBC access to MySQL on Linux Reply with quote



At 17:31 12/07/99 +0100, I wrote:
Quote:
Description:
I have an urgent need to provide ODBC access to a database
running on a Unix system...
I am using Linux with glibc, mysql
version 3.22.24. I am trying to use myodbc-2.50.24 with
libiodbc-2.50.2.

On Tue, 13 Jul 1999 17:22:43 Colin McKinnon <colin (AT) wew (DOT) co.uk> wrote:
Quote:
In most cases (including MySQL) you do not need to
add anything to a server correctly configured to run the DBMS (an exception
is Oracle which requires SQL*NET) in order to provide ODBC access - all you
need to do is install the ODBC driver on the client.
....
You're not wasting your time with MySQL - it does ODBC
You are wasting your time installing myodbc-2.50.24 & libiodbc-2.50.2. on
the server.

The whole mess is now working. Thanks to Colin's explanation, I installed
myodbc on the client machine, the one which is running Cold Fusion.
Having understood this, I found that:

(1) The permissions in the MySQL data base were not quite right, despite
having given a GRANT statement. I changed the required 'N' to 'Y'
by hand.
(2) I then got the client mysql to work on the machine on which Cold
Fusion is running.
(3) I next got a dumb ODBC client program to work (odbctest in the
libiodbc distribution). This required fixing some problems in
the odbc.ini file.
(4) I put links to the required shared libraries from the lib
directory /opt/coldfusion/lib, for the sake of simplicity.
(5) Finally, a note on someone's web site states that ColdFusion
will not connect to MySQL even if the odbc.ini file is correct,
unless the user name and password are set explicitly in the
ColdFusion administration tool.

It's now all working. For the curious, my entry in the odbc.ini file
on the Solaris system reads:

[birds]
Driver=/opt/coldfusion/lib/libmyodbc.so
Description=Museum Birds Data
DSN = birds
SERVER = <fully qualified domain name here>
DATABASE = birds
USER = <user name here>
PASSWORD = <password here>
PORT = 3306

I must say the people on various lists have been most helpful in
sorting this out, as were the participants in forums.allaire.com,
so thanks to you all.

-- Owen
[email]LeBlanc (AT) mcc (DOT) ac.uk[/email]

Back to top
Display posts from previous:   
Post new topic   Reply to topic    MySQLTalk.org Forum Index -> MySQL ODBC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.