note 59173 added to function.mysql-connect
| From: | webmaster | Date: | Mon, 28 Nov 2005 15:58:01 +0000 |
| Subject: | note 59173 added to function.mysql-connect | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-99245@lists.php.net to get a copy of this message | ||
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.
----
Manual Page -- http://www.php.net/manual/en/function.mysql-connect.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+59173
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+59173&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+59173&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+59173&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+59173&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+59173&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+59173&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+59173&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+59173&report=yes
Search -- http://master.php.net/manage/user-notes.php