Sample Code : Connecting to a MySQL database with ASP using a DSN-less connection
Here is the connection string, you can use to connect to a MySQL database with ASP :
<%
Set Conn=Server.CreateObject("ADODB.Connection")
Conn.open("DRIVER={MySQL ODBC 3.51 Driver};SERVER=sql.yourdomain.com;DATABASE=dbname;UID=dbuser;PWD=dbpassword; OPTION=3")
%>
Replace yourdomain.com with the name of your domain, dbname with your database name, dbuser with your database username and dbpassword with your database password.