Stephen Toney has asked for the wisdom of the Perl Monks concerning the following question:
This works with SQL Server and Foxpro db's using ODBC, but with MySQL there is no response until the server times out. When I run it from the command line the correct results are shown, but the cursor stays right after </html> and there is no command prompt until the server times out. Since the correct results are shown, I know it's not a connection problem. So what could it be?#! /usr/local/bin/perl -w use strict; use CGI qw(:standard escapeHTML); $::DSN = "MWEBMYSQL"; use DBI; $::dbh = DBI->connect ("dbi:ODBC:$::DSN", "ODBC") || die ("Ca +nnot connect to Data Source '$::DSN'"); my ($count) = $::dbh->selectrow_array ("select count(*) from logon"); print header ('text/html', '200 OK'); print "<html><body>Found $count records in LOGON</body></html>";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: MySQL ODBC hangs
by marto (Cardinal) on Nov 18, 2005 at 12:17 UTC | |
by Stephen Toney (Sexton) on Nov 18, 2005 at 14:47 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |