f2s_server_tcpip_port¶
Applies to: MySql/MariaDB, PostgreSQL Drivers
Syntax
set_attribute f2s_server_tcpip_port of {constant} to {variable}
get_attribute f2s_server_tcpip_port of {constant} to {variable}
Parameter |
Description |
---|---|
constant |
Either MYSQL or PGSQL |
variable |
Integer variable of the port number used to connect to the server. |
Description
Set this attribute to change the port used for all TCP/IP connections to the server. Get this attribute to determine which port is being used for all TCP/IP connections to the server.
Note: The port set using this attribute is for the current session only.
Examples
get_attribute
integer iPort
get_attribute f2s_server_tcpip_port of PGSQL to iPort
set_attribute
set_attribute f2s_server_tcpip_port of PGSQL to 5000
Replaces: Commands SET_DATABASE_PORT and GET_DATABASE_PORT