ID: 9135
Updated by: sniper
Old-Status: Open
Status: Bogus
Bug Type: MySQL related
Assigned To: 

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!


Previous Comments:

[2001-02-06 16:54:54] [EMAIL PROTECTED]
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"; ?>



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to