Book a Demo

Author Topic: OBDC setup using command line  (Read 4583 times)

Karan Mundhra

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
OBDC setup using command line
« on: August 28, 2020, 01:14:00 am »
Hi,

I am trying to setup an OBDC Data source using a command line interface.
The command goes like
>odbcconf.exe /A {CONFIGDSN "MySQL ODBC 5.1 Driver" "DSN=test|Servername=sv1|Port=3306|user=abcd|pwd=xyz"}

I am using the MySQL ODBC 5.1 Driver.

The error pops up as :
CONFIGDSN: Unable to create a data source for the  "MySQL ODBC 5.1 Driver" driver:
Component not found in the registry with error code -2147467259

Any clues what is wrong? or any other way to set this up using a command line?

Thanks
Karan


qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: OBDC setup using command line
« Reply #1 on: August 28, 2020, 01:30:01 am »
I guess you're better off asking that on StackOverflow.

q.

Karan Mundhra

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Re: OBDC setup using command line
« Reply #2 on: August 28, 2020, 01:31:23 am »
Found my answer:

C:\Windows\SysWOW64>odbcconf.exe /A {CONFIGDSN "MySQL ODBC 5.1 Driver" "DSN=a2g_master|user=abcd|pwd=mnop|server=SV1|Port=3306|database=xyzl|BIG_PACKETS=8|FOUND_ROWS=2"}