port

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Vietboy
Forum Commoner
Posts: 41
Joined: Mon Dec 01, 2003 10:59 pm

port

Post by Vietboy »

I have a mySQL database server running..

Some how I download the guestbook php script. I install it.. It said it can't connect to my server.

I set port to 6781

but when the errors said (79) as the port.
How do I specific which ports to use in PHP to login my database?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

http://php.net/mysql_connect
the server parameter can also include a port number. eg. "hostname:port"
the default port can be changed in php.ini
; Default port number for mysql_connect(). If unset, mysql_connect() will use
; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
; compile-time value defined MYSQL_PORT (in that order). Win32 will only look
; at MYSQL_PORT.
mysql.default_port =
Post Reply