If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Urgent :why i cant see my asp file in localhost?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-29-06, 19:58
shinwai shinwai is offline
Registered User
 
Join Date: Mar 2006
Posts: 1
Urgent :why i cant see my asp file in localhost?

Quote:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[TCX][MyODBC]Can't connect to MySQL server on '219.93.218.177' (10060)
why this happen and how to solve the problem?thanks ..i need it urgent.
Reply With Quote
  #2 (permalink)  
Old 03-30-06, 06:33
oliflorence oliflorence is offline
Registered User
 
Join Date: Aug 2004
Posts: 96
This is a proiblem connecting to the database which could be coming from several things.
1. Check your user on MySQL, you should have a user created for the database you want to connect under the user administration.

2. Check your MyODBC connection, there is a test button on it, that should give you an idea of where the problem is.
3. Check your username and password on your connection settings on your ASP page.

The best is often to remove the user in the DB, remove the connection and start all over.

Hope this helps,
Oli
Reply With Quote
  #3 (permalink)  
Old 03-30-06, 06:57
YeahWhat YeahWhat is offline
Registered User
 
Join Date: May 2005
Posts: 39
Quote:
Originally Posted by shinwai
why this happen and how to solve the problem?thanks ..i need it urgent.
Most likely a problem with connection string. Try this:

Code:
Dim DSNName
DSNName = "PROVIDER=MSDASQL;driver={MySQL ODBC 3.51 Driver};server=localhost;option=" & 1 + 2 + 8 + 32 + 2048 + 16384  & ";uid=your_username;pwd=your_password;database=your_db_name;"

Dim Conn
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.open DSNName

'some code

Conn.Close
Set Conn = nothing
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On