LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-11-2007, 11:43 PM   #1
ukjairaj
Member
 
Registered: Jun 2004
Location: Mumbai-India
Distribution: RHEL-4 Update 2 & Fedore Core 5
Posts: 40

Rep: Reputation: 15
Isql-odbc-mysql-help


Halo friends

I am trying to connect to MYSQL database from command prompt using the command "isql -v <database-name> <user-name> <password>"

It works perfectly fine if I log in as root or su, whereas the same does not work when I login as regular user. I give below the error message

[IM002][unixODBC][Driver Manager]Data Source name not found, and no default driver specified
[ISQL]ERROR: Could not SQLConnect


Following is the entry of my /etc/odbcinst.ini


MYSQL]
Description = MYSQL
Driver = /usr/lib/libmyodbc3.so
Setup = /usr/lib/libodbcmyS.so
Server = localhost
Database = <database-name>
Port =
Socket =
Option =
Stmt =
UsageCount = 2


I am using RHEL5

Can someone help me in resolving this problem
 
Old 11-12-2007, 11:58 PM   #2
ukjairaj
Member
 
Registered: Jun 2004
Location: Mumbai-India
Distribution: RHEL-4 Update 2 & Fedore Core 5
Posts: 40

Original Poster
Rep: Reputation: 15
Problem solved. I was using a wrong syntax.

It should be

isql -v <serve-name> <user-name> <password>

in place of servername I was earlier using database name. When I changed it everything works fine.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL connectivity thru Odbc melikai Programming 17 10-16-2006 07:38 PM
Error with Isql / unixODBC / MySQL freddylocks Red Hat 0 07-02-2006 11:06 AM
How to configure MySql ODBC julian.osorio Linux - Software 1 06-09-2006 03:02 AM
MySQL ODBC driver fails when trying to add a DSN to MySQL banjoman Linux - Software 0 01-24-2005 09:59 AM
ODBC connection to MySQL darius Linux - Software 2 09-29-2003 06:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration