Ask a Question related to ASP Database, Design and Development.
-
Dwalker #1
Problem with ASP connection to MySQL
I'm using the following code to try to connect to an existing MySQL database
that I can connect to with MySQL-Front. But I'm getting a 500 error.
<%
Set oConn = Server.CreateObject("ADODB.Connection")
oConn.open "Driver={mySQL};" & _
"Server=00.00.00.00;" & _
"Port=3306;" & _
"Option=131072;" & _
"Stmt=;" & _
"Database=dbName;" & _
"Uid=UserName;" & _
"Pwd=Password"
oConn.close
%>
Is the problem with the IP address? Do I need to supply the Server reference
in some other format? The Database name, userid and password although not
correct in this example are the same ones used in MySQL-front.
What is the Option= statement
Dwalker Guest
-
#40207 [NEW]: Warning: mysql_connect() [function.mysql-connect]: Lost connection to MySQL ser
From: arif at peshawaronline dot com Operating system: PHP version: 4.4.4 PHP Bug Type: Compile Warning Bug description: ... -
Error 2013 problem, Lost connection to MySQL during query. (InnoDB)
Hello, I get an error: "Error 2013 problem, Lost connection to MySQL during query" and the MySQL service stops when I run an SQL statement:... -
connection problem MySQL - php from dreamweaver
Can anybody please help me ? I have set up a remote MySQL database ( on windows system), and have defined the remote testing server and filled... -
MySQL CF7 connection problem
I recently installed MySQL 4.1 and CF7, but I'm having trouble with the driver connection. I'm trying to use MySQL's connector J v. 3.0.17 but I... -
MySql database connection problem
Hi Everyone, I've just installed ColdFusion MX 6.1 on Red Hat (it's also runing Plesk to manage all my domains. I don't konw if that throws a... -
Ray at home #2
Re: Problem with ASP connection to MySQL
"Dwalker" <dl_walker@hotmail.com> wrote in message
news:uNN9b.1826$sO4.1508@bignews1.bellsouth.net...database> I'm using the following code to try to connect to an existing MySQLFirst thing to do is find out what the error really is. See here.> that I can connect to with MySQL-Front. But I'm getting a 500 error.
[url]http://www.aspfaq.com/2109[/url]
That's probably a good guess. Take a look at the sample connection strings> <%
> Set oConn = Server.CreateObject("ADODB.Connection")
> oConn.open "Driver={mySQL};" & _
> "Server=00.00.00.00;" & _
> "Port=3306;" & _
> "Option=131072;" & _
> "Stmt=;" & _
> "Database=dbName;" & _
> "Uid=UserName;" & _
> "Pwd=Password"
> oConn.close
> %>
> Is the problem with the IP address?
for MySQL here. [url]http://www.connectionstrings.com/[/url] The one you'd want to
try first is the OLE DB one.
Ray at home
Ray at home Guest
-
Dwalker #3
Re: Problem with ASP connection to MySQL
Thanks. Here's the error:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Driver Manager] Data source name not found and no default
driver specified
/testmysql.asp, line 4
Line 4 is: oConn.open "Driver={mySQL};" & _
"Ray at home" <myfirstname at lane 34 . komm> wrote in message
news:%23%23EiNQMfDHA.128@tk2msftngp13.phx.gbl...strings>
> "Dwalker" <dl_walker@hotmail.com> wrote in message
> news:uNN9b.1826$sO4.1508@bignews1.bellsouth.net...> database> > I'm using the following code to try to connect to an existing MySQL>> > that I can connect to with MySQL-Front. But I'm getting a 500 error.
> First thing to do is find out what the error really is. See here.
> [url]http://www.aspfaq.com/2109[/url]
>
>
>>> > <%
> > Set oConn = Server.CreateObject("ADODB.Connection")
> > oConn.open "Driver={mySQL};" & _
> > "Server=00.00.00.00;" & _
> > "Port=3306;" & _
> > "Option=131072;" & _
> > "Stmt=;" & _
> > "Database=dbName;" & _
> > "Uid=UserName;" & _
> > "Pwd=Password"
> > oConn.close
> > %>
> > Is the problem with the IP address?
> That's probably a good guess. Take a look at the sample connection> for MySQL here. [url]http://www.connectionstrings.com/[/url] The one you'd want to
> try first is the OLE DB one.
>
> Ray at home
>
>
>
Dwalker Guest
-
Ray at #4
Re: Problem with ASP connection to MySQL
Did you install MySQL drivers?
Ray at work
"Dwalker" <dl_walker@hotmail.com> wrote in message
news:o%3ab.6086$1u6.3101@bignews4.bellsouth.net...> Thanks. Here's the error:
>
> Microsoft OLE DB Provider for ODBC Drivers error '80004005'
>
> [Microsoft][ODBC Driver Manager] Data source name not found and no default
> driver specified
>
> /testmysql.asp, line 4
>
> Line 4 is: oConn.open "Driver={mySQL};" & _
Ray at Guest
-
Dwalker #5
Re: Problem with ASP connection to MySQL
I thought this might be the problem. The MySQL database is on the hosting
company's server. I'll have to contact them and ask them if they'll install
it. Any other considerations?
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:O6TfQDWfDHA.560@tk2msftngp13.phx.gbl...default> Did you install MySQL drivers?
>
> Ray at work
>
> "Dwalker" <dl_walker@hotmail.com> wrote in message
> news:o%3ab.6086$1u6.3101@bignews4.bellsouth.net...> > Thanks. Here's the error:
> >
> > Microsoft OLE DB Provider for ODBC Drivers error '80004005'
> >
> > [Microsoft][ODBC Driver Manager] Data source name not found and no>> > driver specified
> >
> > /testmysql.asp, line 4
> >
> > Line 4 is: oConn.open "Driver={mySQL};" & _
>
Dwalker Guest



Reply With Quote

