php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6403 remote mysql connection not stable under sol7
Submitted: 2000-08-28 12:03 UTC Modified: 2000-11-14 04:29 UTC
From: chris dot benndorf at ron dot de Assigned:
Status: Closed Package: MySQL related
PHP Version: 4.0.1pl2 OS: Solaris 7
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: chris dot benndorf at ron dot de
New email:
PHP Version: OS:

 

 [2000-08-28 12:03 UTC] chris dot benndorf at ron dot de
php 4.x.x compiled under solaris 7 looses connection to a remote mysql server. If I do this:

$link = mysql_connect ("warnix", "chrisb", "xxx");
mysql_select_db("track",$link);
$query_string = "select * from picfile";
mysql_db_query("track",$query_string,$link);
echo mysql_errno().": ".mysql_error()."\n";
mysql_close ($link);

I get the following error

2013: Lost connection to MySQL server during query

and the servers logfile looks like:

000823 12:17:16      65 Connect    chrisb@picsrv1 on
                     65 Init DB    track
                     65 Quit
                     66 Connect    chrisb@picsrv1 on
                     66 Init DB    track
                     66 Quit

if I use php compiled under solaris 2.6 (same configure settings) everything works fine and the servers logfile looks like this:

000828 15:25:39      75 Connect    chrisb@picsrv1 on
                     75 Init DB    track
                     75 Init DB    track
                     75 Query      select * from picfile
                     75 Quit

I have tried this with 4.0.0, 4.0.1 and 4.0.1pl2...

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-13 10:15 UTC] kir@php.net
Please check if you still get the error with the latest version of PHP.
 [2000-11-14 04:29 UTC] kir@php.net
Works for php-4.0.3pl1.
Closed on user's behalf.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 15:00:01 2026 UTC