MySQL Configuration Options
MySQL Configuration OptionsNameDefaultChangeableChangelogmysql.allow_local_infile"1"INI_SYSTEMmysql.allow_persistent"1"INI_SYSTEMmysql.max_persistent"-1"INI_SYSTEMmysql.max_links"-1"INI_SYSTEMmysql.trace_mode"0"INI_ALLmysql.default_portNULLINI_ALLmysql.default_socketNULLINI_ALLmysql.default_hostNULLINI_ALLmysql.default_userNULLINI_ALLmysql.default_passwordNULLINI_ALLmysql.connect_timeout"60"INI_ALL Constants
Runtime Runtime
| Name | Default | Changeable | Changelog |
|---|---|---|---|
| mysql.allow_local_infile | "1" | INI_SYSTEM | |
| mysql.allow_persistent | "1" | INI_SYSTEM | |
| mysql.max_persistent | "-1" | INI_SYSTEM | |
| mysql.max_links | "-1" | INI_SYSTEM | |
| mysql.trace_mode | "0" | INI_ALL | |
| mysql.default_port | NULL | INI_ALL | |
| mysql.default_socket | NULL | INI_ALL | |
| mysql.default_host | NULL | INI_ALL | |
| mysql.default_user | NULL | INI_ALL | |
| mysql.default_password | NULL | INI_ALL | |
| mysql.connect_timeout | "60" | INI_ALL |
Constants
Title
mysql.allow_local_infileintAllow accessing, from PHP's perspective, local files with LOAD DATA statements
mysql.allow_persistentboolWhether to allow persistent connections to MySQL.
mysql.max_persistentintThe maximum number of persistent MySQL connections per process.
mysql.max_linksintThe maximum number of MySQL connections per process, including persistent connections.
mysql.trace_modeboolTrace mode. When
mysql.trace_modeis enabled, warnings for table/index scans, non free result sets, and SQL-Errors will be displayed. (Introduced in PHP 4.3.0)mysql.default_portstringThe default TCP port number to use when connecting to the database server if no other port is specified. If no default is specified, the port will be obtained from the
MYSQL_TCP_PORTenvironment variable, themysql-tcpentry in/etc/servicesor the compile-timeMYSQL_PORTconstant, in that order. Win32 will only use theMYSQL_PORTconstant.mysql.default_socketstringThe default socket name to use when connecting to a local database server if no other socket name is specified.
mysql.default_hoststringThe default server host to use when connecting to the database server if no other host is specified. Doesn't apply in Sqlsafemode.
mysql.default_userstringThe default user name to use when connecting to the database server if no other name is specified. Doesn't apply in Sqlsafemode.
mysql.default_passwordstringThe default password to use when connecting to the database server if no other password is specified. Doesn't apply in Sqlsafemode.
mysql.connect_timeoutintConnect timeout in seconds. On Linux this timeout is also used for waiting for the first answer from the server.