|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9135 Could not establish connection
Submitted: 2001-02-06 16:54 UTC Modified: 2001-03-01 22:01 UTC
From: mita at zelcom dot com Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 4.0.4pl1 OS: windows nt
Private report: No CVE-ID: None
 [2001-02-06 16:54 UTC] mita at zelcom dot com
I inserted a row in mysql database - user table with host = localhost:8080. I am running my apache server on port 8080.
The insertion was successful.

If I try to connect mysql using php script, I am getting a message -
connection to mysql server is lost.

Below is my php script:

	$connection = mysql_pconnect("localhost:8080") or die("Could not connect");
	if ($connection)
		$msg = "Success!!!";


	<? echo "$msg"; ?>



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-01 22:01 UTC]
You're using the wrong port number. Please read the manual page for

ie. You should use the port on which the mysql server runs NOT 
the one Apache uses!


PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Jul 17 19:01:29 2024 UTC