Home » IT Technology, Work

Connecting to MySQL through ASP(IIS)

Submitted by rayboy on May 23, 2007 – 2:32 pm2 Comments

You will need to download the MySQL ODBC driver and have it installed on the IIS first.

set cnn = Server.CreateObject(”ADODB.Connection”)
cnn.open = “DRIVER={MySQL ODBC 3.51 Driver};”_
& “SERVER=11.11.11.11;Port=3306;Option=4;”_
& “DATABASE=database_name;”_
& “UID=databaseuser;PWD=password;”

Ensure port 3306 , is open in the firewalls between the db server and IIS (its localhost if it is MySQL is installed on the same server. Not many people know that we can use MySQL for our ASP applications. MySQL is extremely strong and powerful as on the same levels as MS SQL . but those who need clustering and redundancy , then MySQL Entreprise Edition is the RDBMS which is needed.

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

2 Comments »

Leave a comment!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.