MySQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMySQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old April 13th, 2005, 11:19 PM
theatretech theatretech is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 2 theatretech User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 47 m 30 sec
Reputation Power: 0
Unhappy Help with connecting to MySQL db via ASP

Hi there

I'm hoping someone can help me. I have recently joined with an ISP that assured me they supported ASP (which I'd like to use to create my new site). I have created a MySQL database on the ISP server as a test case to see how I can retrieve and display data using ASP, however I'm having issues trying to connect to the database at all.

The connection strings I am provided with by the ISP are for Perl and PHP, and no matter what I try with ASP, I can't seem to get it working. The ISP has advised me that they aren't able to help me.

Connection strings they've given me are:

Connection Strings

Perl$dbh = DBI->connect("DBI:mysql:theguide_TESTDB:localhost","theguide_SYSADM","<PASSWORD HERE>");

PHP$dbh=mysql_connect ("localhost", "theguide_SYSADM", "<PASSWORD HERE>") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("theguide_TESTDB");


I've tried various connection strings (DSNless as I don't believe I can create a DSN on their server), such as:

conn.open "PROVIDER=MSDASQL;driver={MySQL ODBC 3.51 Driver};server=localhost;uid=theguide_SYSADM;pwd=<password here>;database=theguide_TESTDB;OPTION=3"

strconn="PROVIDER=MSDASQL;DRIVER={SQL Server};"
strconn=strconn & "SERVER=localhost;DATABASE=theguide_TEST_DB;"
strconn=strconn & "UID=theguide_SYSADM;PWD=<password here>;"
conn.open strconn

but none of these seem to work.

I'm not getting any error message. Either the page displays as though it is a blank html page, or all of the server side code displays on the screen as if the file is pure text.

I would appreciate any ideas, as the ISPs suggestion of "using trial and error" is not helping me at all!

Thanks in advance.

Nikki

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMySQL Development > Help with connecting to MySQL db via ASP


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT