Online Support from Domainscape

 

Support Database
How do I connect to MySQL with ASP?

You will need to use a DSNless connection which can be achieved by using code with the following VBscript:

set rsEvents = Server.CreateObject("ADODB.Recordset")
rsEvents.ActiveConnection = "Driver={MySQL}; DATABASE=databasename;USER=username; PASSWORD=password; Server=127.0.0.1"

...or the following JScript:

var rsEvents = Server.CreateObject("ADODB.Recordset");
rsEvents.ActiveConnection = "Driver={MySQL}; DATABASE=databasename;USER=username; PASSWORD=password; Server=127.0.0.1";

Return to category list

 

 

 

Every attempt has been made to ensure that all information, opinions and guidance notes are accurate, comprehensive, verified and complete.

We accept no liability whatsoever for any perceived inaccuracy or incompleteness of the information contained in the Web Site or for any reliance placed by any person on the information.

 

Copyright ©2008
Domainscape Internet
All rights reserved