I am a newby to databases and am having a similar problem
with asp and my remote sql database. My hosting provider told me to
use this script:
<%
Dim DBName,DBUser,DBPass,objRS,objConn
DBName="cham_members"
DBUser="cham_member"
DBPass="mypassword"
Set objConn=Server.CreateObject("ADODB.Connection")
objConn.ConnectionString="DRIVER={MySQL ODBC 3.51
Driver};Server=localhost;Database="&DBName&";UID="&DBUser&";pwd="&DBPass&";"
objConn.Open
Set objRS=Server.CreateObject("ADODB.Recordset")
%>
Since that code doesn't work with DreamWeaver's Databases
panel Custom Connection String dialogue box I came up with this
one:
DRIVER={MySQL ODBC 3.51
Driver};Server=localhost;Database=cham_members;UID=cham_member;PWD=mypassword;objConn.Open
Set objRS=Server.CreateObject(ADODB.Recordset)
It connected but doesn't show my tables. I followed all the
advice I found in another subject:
1. Connect using the "Use passive FTP"
2. Corrected a few illegal hyphens in my database.
3. Tried MySQL 127.0.0.1:3306 which would not connect at all
4. Remove Connection Scripts. No change.
5. I have been running DreamWeaver 7.01 update.
I noticed the database connection names come up in the
"Connections" folder so I opened the file it had just created and
pasted in the script my hosting company gave me. Still no luck. I
am determined to learn to create dynamic websites so I really
appreciate your help.
Thanks, Ann Y.