Configuring MySQL
The following configuration directives can be used to control the behavior of the MySQL functions.
Directive Name | Value Type | Description |
---|---|---|
mysql.allow_persistent | bool (on/off) | Enable or disable persistent MySQL connections (see mysql_pconnect()). |
mysql.default_host | string | The default host for calls to mysql_connect() and mysql_pconnect(). |
mysql.default_password | string | The default password for calls to mysql_connect() and mysql_pconnect(). |
mysql.default_port | integer | The default port for calls to mysql_connect() and mysql_pconnect(). |
mysql.default_user | string | The default user for calls to mysql_connect() and mysql_pconnect(). |
mysql.default_socket | string | The default socket for calls to mysql_connect() and mysql_pconnect(). (Added ... |
Get PHP Functions Essential Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.