site.ini [ODBCSettings]
The block [ODBCSettings] of settings/site.ini, with 5 setting(s).
Any database through ODBC (DatabaseImplementation=odbc, expODBCDB): Server, Port, User, Password and Database come
from [DatabaseSettings]; the SQL the driver writes itself follows the dialect. Meant for data table connections
and engines without a driver of their own; a site runs on the native drivers.
Never edit settings/site.ini itself: an update replaces it. Put the settings you change in an override, which wins over the shipped file:
settings/override/site.ini.append.phpfor every siteaccess,settings/siteaccess/<siteaccess>/site.ini.append.phpfor one siteaccess,extension/<extension>/settings/site.ini.append.phpin an extension (read when the extension is active).
Dialect
sqlserver, postgresql, mysql (MySQL and MariaDB), sqlite, oracle, msaccess or generic
Default: generic.
# settings/override/site.ini.append.php
[ODBCSettings]
Dialect=generic
*/ ?>Driver
The ODBC driver's name (odbcinst.ini on Linux, the ODBC administrator on Windows); empty: the dialect's usual one
(ODBC Driver 18 for SQL Server, PostgreSQL Unicode, MariaDB Unicode, SQLite3 ...)
Default: empty.
# settings/override/site.ini.append.php
[ODBCSettings]
Driver=
*/ ?>DataSourceName
A data source name of odbc.ini instead of Driver and the server settings
Default: empty.
# settings/override/site.ini.append.php
[ODBCSettings]
DataSourceName=
*/ ?>ConnectionString
More keyword=value pairs, ; separated, e.g. Encrypt=yes;TrustServerCertificate=yes
Default: empty.
# settings/override/site.ini.append.php
[ODBCSettings]
ConnectionString=
*/ ?>Layer
auto (PDO_ODBC first), pdo_odbc, or odbc (PHP's odbc extension)
Default: auto.
# settings/override/site.ini.append.php
[ODBCSettings]
Layer=auto
*/ ?>Related
Generated by ./console exp:help:examples from settings/site.ini. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.