Connecting Tech Pros Worldwide Help | Site Map

ASP and MYSQL how to site? !!!!!!

Familiar Sight
 
Join Date: Oct 2006
Posts: 142
#1: Sep 5 '08
Hi,

I'm trying to figure out how to insert, delete and update Mysql with ASP.

But can't find one website.

Does anyone know of a website I can check it out or get examples?

Thanks
codegecko's Avatar
Moderator
 
Join Date: May 2007
Location: United Kingdom
Posts: 395
#2: Sep 5 '08

re: ASP and MYSQL how to site? !!!!!!


Hi there,

Before using MySQL with ASP, you need to install the MySQL ODBC driver on the machine that the ASP application is running, and ensure that port 3306 is open on the machine running MySQL.
The ODBC driver for MySQL can be found here (both x86 and x64 versions).

Then, read the documentation and there are examples of how to create a DSN, or DSN-less, connection string using the MySQL ODBC connector. Simply use this code in your ASP app and that's it!

Hope this helps.

Best regards,

medicineworker
jhardman's Avatar
Moderator
 
Join Date: Jan 2007
Location: logan, utah
Posts: 2,690
#3: Sep 7 '08

re: ASP and MYSQL how to site? !!!!!!


Ditto to what medicineworker said. Let me add that the best solution in my opinion, if you are trying to follow existing instructions, is set up a DSN. Once that is in place you can connect to it following any DSN connection instruction you can find.

Jared
codegecko's Avatar
Moderator
 
Join Date: May 2007
Location: United Kingdom
Posts: 395
#4: Sep 7 '08

re: ASP and MYSQL how to site? !!!!!!


I personally suggest against using DSN's as per this article for performance and management benefits, especially in a shared hosting environment.

Best regards,

med
jhardman's Avatar
Moderator
 
Join Date: Jan 2007
Location: logan, utah
Posts: 2,690
#5: Sep 8 '08

re: ASP and MYSQL how to site? !!!!!!


Quote:

Originally Posted by medicineworker

I personally suggest against using DSN's as per this article for performance and management benefits, especially in a shared hosting environment.

Best regards,

med

Bahhh !
Reply