2

I would like to install odbc in ubuntu server 10.10 with mysql:

I did

sudo apt-get install libmyodbc

edited odbcinst.ini

[MySQL]
Description = ODBC for MySQL
Driver = /usr/lib/odbc/libmyodbc.so
Setup = /usr/lib/odbc/libodbcmyS.so
FileUsage = 1

And odbc.ini

[asterisk]
Description           = MySQL connection to 'spb' database
Driver                = MySQL
Database              = myDatabase
Server                = localhost
UserName              = myUser
Password              = myPAss
Port                  = 3306
Socket                = /var/lib/mysql/mysql.sock

And try:

ubuntu@ubuntu:/etc$ isql asterisk
[ISQL]ERROR: Could not SQLConnect

Did I miss some step?

user1256477
  • 10,763
  • 7
  • 38
  • 62

3 Answers3

2

I got a same problem. Try:

$ SUDO isql asterisk

1

change section Server = localhost with Server = 127.0.0.1

piet.t
  • 11,718
  • 21
  • 43
  • 52
Bojan Dinev
  • 411
  • 4
  • 6
1

Did you check you have the drivers in this directory? ubuntu installed me on other directories:

/usr/lib/i386-linux-gnu/odbc/libmyodbc.so
/usr/lib/i386-linux-gnu/odbc/libodbcmyS.so

Or try a simbolic link

kleopatra
  • 51,061
  • 28
  • 99
  • 211
Sal00m
  • 2,938
  • 3
  • 22
  • 33