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 July 7th, 2003, 08:05 PM
robync robync is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Australia
Posts: 3 robync User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
mySQL connection string for ASP

This is my first go at mySQL. I have converted my Access databases to mySQL and can access the database with ASP on my PC. I have now created the databases & loaded up the data on my client's host which requires the use of a socket path. They provide connection strings for PHP &Perl which I have tried to translate to ASP but I am getting

ADODB.Connection.1 error '80004005'

SQLState: S1000
Native Error Code: 80

no matter what. The sample PHP & perl strings are :

PHP CODE

<?php
$db = @mysql_connect("localhost:/home/*username*/*yourdomain.com*/.database/mysql/mysql.sock", "root", "*your password*");
?>

PERL CODE

my($db) = DBI->connect("DBI:mysql:*database_name*:localhost;

mysql_socket=/home/*username*/*yourdomain.com*/.database/mysql/mysql.sock",'root','*your password*');


My ASP:

conn.Open "Driver={MySQL}; SERVER=localhost; Port=0; Option=0; Socket=/home/*username*/*yourdomain.com*/.database/mysql/mysql.sock; DATABASE=*database_name*; UID=root; PWD=*your password*;"

I've tried a few variations but no use! ISP is as helpful as a hole in the head. Any help would be gratefully received!

Reply With Quote
  #2  
Old July 8th, 2003, 08:57 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 8 m 57 sec
Reputation Power: 9
Send a message via ICQ to stumpy Send a message via MSN to stumpy
There is an article on this site on this very topic: http://www.devarticles.com/art/1/50/4
__________________
DevArticles Moderator
BlueSix - Web Development and Consulting

Reply With Quote
  #3  
Old July 8th, 2003, 04:28 PM
robync robync is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Australia
Posts: 3 robync User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Yes that's where I started! As you would see from my ASP attempt I have used that construct. I can't get it to work - I figured there must be something I have wrong in the translation between the supplied PHP and the quoted article.

Reply With Quote
  #4  
Old July 15th, 2003, 02:09 PM
crazytrain81 crazytrain81 is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 232 crazytrain81 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7

Reply With Quote
  #5  
Old July 15th, 2003, 05:56 PM
robync robync is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Australia
Posts: 3 robync User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
The answer is that what I coded should have worked but the ISP only sort-of supports ASP - you can do various things but connecting to mySQL is not one of them!

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMySQL Development > mySQL connection string for 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 5 hosted by Hostway
Stay green...Green IT