|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-03-01 22:01 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 13:00:01 2025 UTC |
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>