Configuring ODBC connection for MYSQL database

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
prashanto_dev
Participant
Posts: 27
Joined: Thu May 22, 2003 4:40 am
Location: California

Configuring ODBC connection for MYSQL database

Post by prashanto_dev »

I have configured the odbc.ini to connect to mysql database ,but when I am trying to import table definition it is not connecting and also breaking the datastage client connection.

I am using the following entry in the odbc.ini. Is it correct for MYSQL

[mysqldsn]
Driver=/d01/Ascential/DataStage/branded_odbc/lib/branded_odbc/lib/VMmysql23.so
Description=MySQL ODBC 3.51 Driver DSN
SERVER=65.91.255.2
Database=edw1kn
PORT=3306
USER=guest
Password=welcome1
OPTION=3
SOCKET=
prashanto_dev
Participant
Posts: 27
Joined: Thu May 22, 2003 4:40 am
Location: California

Post by prashanto_dev »

I am getting the error:

Error calling subroutine: DSR_IMPORT (Action=2); check DataStage is set up correctly in project BUIEDW01
(The connection is broken (81002))
srimitta
Premium Member
Premium Member
Posts: 187
Joined: Sun Apr 04, 2004 7:50 pm

Post by srimitta »

Did you create entry in uvodbc.config

<mysqldsn>
DBMSTYPE = ODBC
Quality is never an accident; it is always the result of high intention, sincere effort, intelligent direction and skillful execution; it represents the wise choice of many alternatives.
By William A.Foster
prashanto_dev
Participant
Posts: 27
Joined: Thu May 22, 2003 4:40 am
Location: California

Post by prashanto_dev »

yes I have created.
srimitta
Premium Member
Premium Member
Posts: 187
Joined: Sun Apr 04, 2004 7:50 pm

Post by srimitta »

Check VMmysql23.so odbc driver in
/d01/Ascential/DataStage/branded_odbc/lib/branded_odbc/lib
Quality is never an accident; it is always the result of high intention, sincere effort, intelligent direction and skillful execution; it represents the wise choice of many alternatives.
By William A.Foster
prashanto_dev
Participant
Posts: 27
Joined: Thu May 22, 2003 4:40 am
Location: California

Post by prashanto_dev »

I have tried other drive also but it is not working
srimitta
Premium Member
Premium Member
Posts: 187
Joined: Sun Apr 04, 2004 7:50 pm

Post by srimitta »

mysqldsn]
Driver=/d01/Ascential/DataStage/branded_odbc/lib/branded_odbc/lib/VMmysql23.so
Description=MySQL ODBC 3.51 Driver DSN
SERVER=65.91.255.2
Database=edw1kn
PORT=3306
USER=guest
Password=welcome1
OPTION=3
SOCKET=

check the odbc drivers library path it seems you have entered twice

It supposed to be d01/Ascential/DataStage/branded_odbc/lib/
Quality is never an accident; it is always the result of high intention, sincere effort, intelligent direction and skillful execution; it represents the wise choice of many alternatives.
By William A.Foster
prashanto_dev
Participant
Posts: 27
Joined: Thu May 22, 2003 4:40 am
Location: California

Post by prashanto_dev »

I am using this now:

[mysqldsn]
Driver = /usr/local/mysql/lib/libmyodbc5.so
Description = Connector/ODBC 3.51 Driver DSN
SERVER = 32.91.255.12
PORT = 3306
USER = myuser
Password =
Database = mysqldb1
OPTION = 3
SOCKET =

Still not working
Post Reply