ID: 9135 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Bogus Bug Type: MySQL related Assigned To: Comments: You're using the wrong port number. Please read the manual page for mysql_pconnect: http://www.php.net/mysql_pconnect ie. You should use the port on which the mysql server runs NOT the one Apache uses! --Jani 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!!!"; } ?> <html> <head> <title>Untitled</title> </head> <body> <? echo "$msg"; ?> </body> </html> --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9135&edit=2 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]