The V6 Connection Matrix

Common connection parameters, by database type

The same convention applies when using the ADOConnectionDefinitions::dbParameters array, where the array elements are named in order

host, user, password, database
Parameter 1 Parameter 2 Parameter 3 Parameter 4 Verified
Legacy Name Host Name User ID Password Database Name
Firebird/Interbase protocol:/path/to/database User ID Password NULL Yes
IBM DB2 Service Name1) User Id Password Instance2) Yes
Microsoft SQL Server Service Name3) User Id Password Database Name Yes
MySQL Host Name4) User Id Password Database Name Yes
Oracle Host Name User Id Password Instance Yes
PDO (PHP Data Objects) DSN Connection String User Id 5) Password 6) Database Name 7) Yes 8)
PostgreSQL Host Name9) User Id Password Database Name
SQLite /path/to/database NULL NULL NULL Yes
SQLite In Memory Database ':memory:' NULL NULL NULL Yes
1) , 3)
Or DSN connection string
2)
Leave empty when using DSN
4)
optional port via ** :xxxx**, or DSN connection string
5) , 6)
Or may be NULL if set in the DSN string
7)
Or may be NULL if set in DSN string
8)
mysql & Sqlite only
9)
Leave as NULL to connect via a socket, or connection string - see driver