Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Connecting to MySQL to retrive data !
#1
Not Solved Exclamation 
I am following the example in QTP unplugged chapter 22

trying to connect to the DB, our DB runs on MySqL

Here is my Script

Code:
Dim adocon
Set adoCon = CreateObject ("ADODB.Connection")
ConStr = " DSN = name ; UID= admin ; PWD= 4d645df259f5cb14d0b65f8395f21ac47746845ae08719122210aa77 ; DataBase = My_DB "
AdoCon.open ConStr


Run Error =

Code:
Run Error [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
Line (35): "AdoCon.open ConStr".

Does anyone tried this before?
Reply
#2
Not Solved
Are you able to create a dsn on your machine with those credentials? I guess there is a website called www. Connectionstrings.com which has the info you require. I may be wrong about the site. If you dont please google for connection string for mysql.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Connecting to oracle DB with QTP rajendra649 2 26,405 12-04-2020, 06:19 PM
Last Post: Anita2020
  Connecting to database Irishman 0 4,309 07-24-2012, 11:30 PM
Last Post: Irishman
  How to retrive data from xml using Qtp? chandu 1 2,940 03-25-2011, 08:32 PM
Last Post: basanth27
  MySql connection ressource need to be freed ? gerfred 6 4,079 08-13-2010, 07:02 AM
Last Post: basanth27
  Connecting to other system Rajashekar Gouda 2 2,605 07-16-2008, 05:12 PM
Last Post: Rajashekar Gouda

Forum Jump:


Users browsing this thread: 1 Guest(s)