note 59173 deleted from function.mysql-connect by bjori
| From: | bjori@php.net | Date: | Sat, 15 Apr 2006 18:40:37 +0000 |
| Subject: | note 59173 deleted from function.mysql-connect by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-108194@lists.php.net to get a copy of this message | ||
Note Submitter: webmaster [at] thedemosite.co.uk
----
Just spent ages trying to work this out....
If you install MySQL 5 and specify an alternative port number from the default (3306) then NOTE you
need to pass the port number to mysql_connect:
$link = mysql_connect("localhost:3308",$username,$password) or die ("Unable to
connect to MySQL server.");
Still no need to pass port number if you use the default port number (3306) when installing MySQL 5.
Hope it saves someone else time.