Data Source Name or a DSN is an application's data source identifier. It provides all parameters for the connection to a database.
In its simplest form, it has the format of
protocol:
subprotocol:
host:
port:
database
It's also possible to explicitly name the parameters, like this:
protocol:
subprotocol:
database=DBNAME;port=PORT