Gentoo Archives: gentoo-user

From: "C. Beamer" <cbeamer@×××××××××.net>
To: gentoo-user@l.g.o
Subject: [gentoo-user] ODBC Connection to MySQL database
Date: Sun, 16 Oct 2005 01:34:40
Message-Id: 4351AD75.5070707@interlynx.net
1 Hello all,
2
3 I am trying to set up an ODBC connection to a MySQL database. I have
4 done this before when I used Fedora Core, but when I tried to do it
5 today on my Gentoo system, I got an error message when I tested the
6 connection.
7
8 I have both UnixODBC and myodbc installed.
9
10 The instructions that I previously followed to set this up in Fedora
11 were as follows:
12
13 create 2 files - odbcinst.ini and odbc.ini These files were supposed to
14 be in /etc. In Fedora Core, there were templates to use, but I had to
15 completely create the files in Gentoo.
16
17 In the odbcinst.ini file, the line for the driver when I did this in
18 Fedora Core was:
19 Driver = /usr/lib/libmyodbc.so
20
21 In Gentoo, there is no libmyodbc.so. There is, however, a libmyodbc3.so
22 which is a symlink to libmyodbc3-3.51.11.so
23
24 Therefore, I used /usr/lib/libmyodbc3.so as the driver.
25
26 In the odbc.ini file, the proper name of the database was listed.
27
28 After creating the odbcinst.ini and odbc.ini files,, I ran 'isql
29 MySQL-home home' which was supposed to test the connectivity to the
30 database and I got the error [ISQL]ERROR: Could not SQLConnect
31
32 When I did a google search for the error message, I came across a
33 post where it was asked what the output of isql -v was. I ran
34 this on my system and got the following message:
35
36 [IM010][unixODBC][Driver Manager]Data source name too long
37
38 I've posted to the UnixODBC support list, but my reason for posting here
39 is to ask if anyone knows whether the instructions that I used to set
40 this up should have been done differently in Gentoo. And for what it's
41 worth, although the database was created when I used Fedora Core and
42 then, copied into the appropriate place in Gentoo, the database works
43 fine when I use it from within MySQL.
44
45 Regards,
46
47 Colleen
48 --
49 gentoo-user@g.o mailing list

Replies

Subject Author
[gentoo-user] Re: ODBC Connection to MySQL and necessary packages "C. Beamer" <cbeamer@×××××××××.net>