MySQL Forums
Forum List  »  Backup

Re: How to get mysql installation path ?
Posted by: Jay Alverson
Date: February 04, 2009 07:54AM

Just an FYI, this works in VBScript...

dim adoConn
dim adoRS
dim MySQL_STRING
dim MyID

' "DRIVER={MySQL ODBC 5.1 Driver};SERVER=localhost;DATABASE=test;UID=Winbatch;PWD=WBTPassword;OPTION=35;"

set adoConn = CreateObject("ADODB.Connection")
set adoRS = CreateObject("ADODB.Recordset")
adoConn.open = "FileDSN=P:\MYSQL\Excel-Query\VBS-MySQL.dsn"
adoRS.ActiveConnection = adoConn

adoRS.Source = "select @@datadir"
adoRS.Open

msgbox adoRS.Fields("@@datadir"),,"Data directory"

Thanks, Jay

Options: ReplyQuote


Subject
Views
Written By
Posted
18617
February 02, 2009 12:03PM
4758
February 03, 2009 11:53PM
Re: How to get mysql installation path ?
4620
February 04, 2009 07:54AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.