port functions

port functions — get or set the port number.

Syntax

mysql_port_get ()
mysql_port_set (value)
mysql_unix_port_get ()
mysql_unix_port_set (value)
    

Arguments

value

A number.

Returns

The _get function returns the current value, the _set function returns the newly-set value.

Description

These functions get or set the TCP/IP port number to use for the connection to the database. See 4.1.4 Running Multiple MySQL Servers on the Same Machine in the MySQL documentation for related information.