|
| |
|
|
crosscreek
Posts: 107 Joined: 2/5/2008 Status: offline
|
conecting to mysql - 2/27/2008 12:38:40
I am having problems connecting to mysql database properly & wanted some input if I'm doing this correctly. I am using frontpage 2003. OK in global.asa file I have the following. '--Project Data Connection Application("labdatas_ConnectionString") = "DRIVER={MYSQL};SERVER=labdatas@mysql106.mysite4now.com; DATABASE=labdatas; UID=labdatas; PWD=XXXX; Extended Properties='OPTION=16387'" Application("labdatas_ConnectionTimeout") = 0 Application("labdatas_CommandTimeout") = 0 Application("labdatas_CursorLocation") = 0 Application("labdatas_RuntimeUserName") = "" Application("labdatas_RuntimePassword") = "" '-- (Note: origonal password is correct, just took it out for the forum) I have an openconn.inc file with the following code <% Set myConn = server.createObject("ADODB.Connection") myConn.open(Application("labdatas_ConnectionString")) %> I also have a closeconn.inc file with the following code <% Set myConn.Close Set myConn = Nothing %> I have a "trial page" set up as to test the connection. open.asp with the following code <html> <head> <meta name="GENERATOR" content="Microsoft FrontPage 6.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>New Page 1</title> </head> <!-- #include file="openconn.inc" --> <body> <% Set MyResultSet = MyConn.Execute("Select * FROM tblClient") %> </body> <!-- #include file="closeconn.inc" --> </html> The error I get when I view it is the following Microsoft VBScript compilation error '800a03f3' Expected '=' /closeconn.inc, line 2 Set myConn.Close ----------------^ Now if I take out the <!-- #include file="closeconn.inc" --> line then I get the following message Microsoft OLE DB Provider for ODBC Drivers error '80004005' [TCX][MyODBC]Access denied for user: 'labdatas@cp252.mysite4now.com' (Using password: YES) /openconn.inc I know it's a connection issue, but do I have it set up properly in all aspects (except maybe the server connections is wrong, etc) I am unable to verify the connection in frontpage database site settings. I also don't have anything in the table yet. Just trying to get a connection first. Thanks for any help or input
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|