Page 1 of 1

port

Posted: Thu Dec 11, 2003 11:28 pm
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?

Posted: Thu Dec 11, 2003 11:31 pm
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 =