URL-like Syntax
Firebird 3.0 introduced a unified URL-like syntax for the remote server specification.In this syntax, the first part specifies the name of the protocol, then a host name or IP address, port number, and path of the primary database file, or an alias.
The following values can be specified as the protocol:
- inet
-
TCP/IP (first tries to connect using the IPv6 protocol, if it fails, then IPv4)
- inet4
-
TCP/IP v4
- inet6
-
TCP/IP v6
- wnet
-
NetBEUI or Named Pipes Protocol (removed in Firebird 5.0)
- xnet
-
local protocol (does not include a host, port and service name)
<protocol>://[host[:{port | service}]/]{filepath | db_alias}
The standard text form of an IPv6 address uses the colon character to separate groups of digits (upto 8 groups of digits).In the connection string, the IPv6 address must be enclosed in square brackets, to resolve the ambiguity with the use of the colon as the separator between the host IP address and database path.For example:
connect '[2014:1234::5]:test'; connect '[2014:1234::5]/3049:/srv/firebird/test.fdb';
Note
|
For consistency, square brackets can be optionally used around an IPv4 address or domain name. |