Re: mySQL Connection String
From: Wayne... (wayne_at_secretwebdesign.com)
Date: 06/21/04
- Next message: John: "0x80004005 error"
- Previous message: Aaron [SQL Server MVP]: "Re: SQL Server Developer's Edition"
- In reply to: IPT: "mySQL Connection String"
- Next in thread: Jeff Cochran: "Re: mySQL Connection String"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 21 Jun 2004 21:27:03 +0100
"IPT" <chency@streamyx.com> wrote in message
news:efxTr%236VEHA.2972@TK2MSFTNGP11.phx.gbl...
> I use mySQL but can connect.
>
> Here is my code:
> Set myconn = Server.CreateObject("ADODB.Connection")
> myconn.Open "ODBC; Driver=Sybase SQL Anywhere 5.0;" & _
> "DefaultDir=c:\inetpub\dbase\;" & _
> "Dbf=c:\inetpub\dbase\mydb.db;" & _
> "Uid=dba;" & _
> "Pwd=sql;" & _
> "Dsn="""""
> Set rs = Server.CreateObject("ADODB.Recordset")
the connection string I use [somewhat flakey!] but you might have some luck
with it is:
<%
strConnection = "driver={MySQL};server=localhost;uid=username;"
strConnection = strConnection & "pwd=password;database=databasename"
Set conn = Server.CreateObject("ADODB.Connection")
conn.Open strConnection
%>
hope that helps
Wayne...
- Next message: John: "0x80004005 error"
- Previous message: Aaron [SQL Server MVP]: "Re: SQL Server Developer's Edition"
- In reply to: IPT: "mySQL Connection String"
- Next in thread: Jeff Cochran: "Re: mySQL Connection String"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|