Plesk

dsn.exe: ODBC DSN Connections

The dsn.exe utility serves to manage ODBC data sources. The utility
allows performing the following operations:

Location

%plesk_cli%

Usage

dsn.exe <command> [<dsn name>] [
<option 1> <param> [<option 2> <param>] ... [<option N> <param>]
]

Example

The following command creates ODBC DSN connection called MSQL365 to
the MS SQL Server database located on the master-sql.sample.net
server, for the example.com domain:

plesk bin dsn.exe --create MSQL365 -type "SQL Server" -description "another test connection" -connection-string "DRIVER={SQL Server};SERVER={master-sql.sample.net};UID={db-admin};PWD={Pa$$w0rd};" -domain example.com

Commands

Command Parameter Description Example
--create or -c <name> Creates DSN connection.

To create the tst-mysql2 connection to MySQL DSN located on
the mysql.sample.net server and listening on the port 3307,
under credentials admin and Pa$$w0rd:

plesk bin dsn.exe --create tst_mysql2 -type "MySQL ODBC 3.51 Driver" -description "test mysql" -connection-string "DRIVER={MySQL ODBC 3.51 Driver};Server={mysql3.sample.net};User={admin};Password={Pa$$w0rd};Port={3307};"

Exit mobile version