How do I connect to MySQL from my ASP script?
Return to Introduction  Previous page  Next page
Using ODBC DSN:

1.Go to your control panel and click on ODBC  
2.Create the DSN. The DSN will be called "accountname-dsnname", with the account name being your control panel account name.  
3.In your ASP Script use this connection string: "DSN=accountname-dsnname"  
 
 
Using DSN-less Method:  
 
Use the following connect string to ADODB.Connection object:  
"Driver={MySQL ODBC 3.51 Driver}; Server=servername; Database=dbname; UID=username; PWD=password"  
 
Where servername is as indicated on your control panel.  


Last updated: 4/6/2003
© 2002 - 2003, Fluid Hosting Web Hosting service.