MySQL Forums
Forum List  »  Connector/ODBC

Re: Database Connection to mysql from asp
Posted by: Barry Galbraith
Date: October 16, 2010 01:37AM

You need to download and install MySQL ODBC connector.

Then your code is something like this.

MySQL_STRING = "Driver={MySQL ODBC 5.1 Driver}; Server=localhost; Port=3306; Option=2; Socket=; Stmt=; Database=dbname; Uid=user; Pwd=password;"

dim adoConn
dim adoRS

set adoConn = Server.CreateObject("ADODB.Connection")
set adoRS = Server.CreateObject("ADODB.Recordset")
adoConn.Open MySQL_STRING
adoRS.ActiveConnection = adoConn



Good luck,

Options: ReplyQuote

Written By
Re: Database Connection to mysql from asp
October 16, 2010 01:37AM

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.