PageRenderTime 65ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/doc/config.rst

http://github.com/phpmyadmin/phpmyadmin
ReStructuredText | 3782 lines | 2536 code | 1246 blank | 0 comment | 0 complexity | 8dff8512fa1fe7ac79e1feafdd974cac MD5 | raw file
Possible License(s): GPL-2.0, MIT, LGPL-3.0

Large files files are truncated, but you can click here to view the full file

  1. .. index:: config.inc.php
  2. .. _config:
  3. Configuration
  4. =============
  5. All configurable data is placed in :file:`config.inc.php` in phpMyAdmin's
  6. toplevel directory. If this file does not exist, please refer to the
  7. :ref:`setup` section to create one. This file only needs to contain the
  8. parameters you want to change from their corresponding default value in
  9. :file:`libraries/config.default.php` (this file is not intended for changes).
  10. .. seealso::
  11. :ref:`config-examples` for examples of configurations
  12. If a directive is missing from your file, you can just add another line with
  13. the file. This file is for over-writing the defaults; if you wish to use the
  14. default value there's no need to add a line here.
  15. The parameters which relate to design (like colors) are placed in
  16. :file:`themes/themename/scss/_variables.scss`. You might also want to create
  17. :file:`config.footer.inc.php` and :file:`config.header.inc.php` files to add
  18. your site specific code to be included on start and end of each page.
  19. .. note::
  20. Some distributions (eg. Debian or Ubuntu) store :file:`config.inc.php` in
  21. ``/etc/phpmyadmin`` instead of within phpMyAdmin sources.
  22. Basic settings
  23. --------------
  24. .. config:option:: $cfg['PmaAbsoluteUri']
  25. :type: string
  26. :default: ``''``
  27. .. versionchanged:: 4.6.5
  28. This setting was not available in phpMyAdmin 4.6.0 - 4.6.4.
  29. Sets here the complete :term:`URL` (with full path) to your phpMyAdmin
  30. installation's directory. E.g.
  31. ``https://www.example.net/path_to_your_phpMyAdmin_directory/``. Note also
  32. that the :term:`URL` on most of web servers are case sensitive (even on
  33. Windows). Dont forget the trailing slash at the end.
  34. Starting with version 2.3.0, it is advisable to try leaving this blank. In
  35. most cases phpMyAdmin automatically detects the proper setting. Users of
  36. port forwarding or complex reverse proxy setup might need to set this.
  37. A good test is to browse a table, edit a row and save it. There should be
  38. an error message if phpMyAdmin is having trouble autodetecting the correct
  39. value. If you get an error that this must be set or if the autodetect code
  40. fails to detect your path, please post a bug report on our bug tracker so
  41. we can improve the code.
  42. .. seealso:: :ref:`faq1_40`, :ref:`faq2_5`, :ref:`faq4_7`, :ref:`faq5_16`
  43. .. config:option:: $cfg['PmaNoRelation_DisableWarning']
  44. :type: boolean
  45. :default: false
  46. Starting with version 2.3.0 phpMyAdmin offers a lot of features to
  47. work with master / foreign tables (see :config:option:`$cfg['Servers'][$i]['pmadb']`).
  48. If you tried to set this
  49. up and it does not work for you, have a look on the :guilabel:`Structure` page
  50. of one database where you would like to use it. You will find a link
  51. that will analyze why those features have been disabled.
  52. If you do not want to use those features set this variable to ``true`` to
  53. stop this message from appearing.
  54. .. config:option:: $cfg['AuthLog']
  55. :type: string
  56. :default: ``'auto'``
  57. .. versionadded:: 4.8.0
  58. This is supported since phpMyAdmin 4.8.0.
  59. Configure authentication logging destination. Failed (or all, depending on
  60. :config:option:`$cfg['AuthLogSuccess']`) authentication attempts will be
  61. logged according to this directive:
  62. ``auto``
  63. Let phpMyAdmin automatically choose between ``syslog`` and ``php``.
  64. ``syslog``
  65. Log using syslog, using AUTH facility, on most systems this ends up
  66. in :file:`/var/log/auth.log`.
  67. ``php``
  68. Log into PHP error log.
  69. ``sapi``
  70. Log into PHP SAPI logging.
  71. ``/path/to/file``
  72. Any other value is treated as a filename and log entries are written there.
  73. .. note::
  74. When logging to a file, make sure its permissions are correctly set
  75. for a web server user, the setup should closely match instructions
  76. described in :config:option:`$cfg['TempDir']`:
  77. .. config:option:: $cfg['AuthLogSuccess']
  78. :type: boolean
  79. :default: false
  80. .. versionadded:: 4.8.0
  81. This is supported since phpMyAdmin 4.8.0.
  82. Whether to log successful authentication attempts into
  83. :config:option:`$cfg['AuthLog']`.
  84. .. config:option:: $cfg['SuhosinDisableWarning']
  85. :type: boolean
  86. :default: false
  87. A warning is displayed on the main page if Suhosin is detected.
  88. You can set this parameter to ``true`` to stop this message from appearing.
  89. .. config:option:: $cfg['LoginCookieValidityDisableWarning']
  90. :type: boolean
  91. :default: false
  92. A warning is displayed on the main page if the PHP parameter
  93. session.gc_maxlifetime is lower than cookie validity configured in phpMyAdmin.
  94. You can set this parameter to ``true`` to stop this message from appearing.
  95. .. config:option:: $cfg['ServerLibraryDifference_DisableWarning']
  96. :type: boolean
  97. :default: false
  98. .. deprecated:: 4.7.0
  99. This setting was removed as the warning has been removed as well.
  100. A warning is displayed on the main page if there is a difference
  101. between the MySQL library and server version.
  102. You can set this parameter to ``true`` to stop this message from appearing.
  103. .. config:option:: $cfg['ReservedWordDisableWarning']
  104. :type: boolean
  105. :default: false
  106. This warning is displayed on the Structure page of a table if one or more
  107. column names match with words which are MySQL reserved.
  108. If you want to turn off this warning, you can set it to ``true`` and
  109. warning will no longer be displayed.
  110. .. config:option:: $cfg['TranslationWarningThreshold']
  111. :type: integer
  112. :default: 80
  113. Show warning about incomplete translations on certain threshold.
  114. .. config:option:: $cfg['SendErrorReports']
  115. :type: string
  116. :default: ``'ask'``
  117. Sets the default behavior for JavaScript error reporting.
  118. Whenever an error is detected in the JavaScript execution, an error report
  119. may be sent to the phpMyAdmin team if the user agrees.
  120. The default setting of ``'ask'`` will ask the user everytime there is a new
  121. error report. However you can set this parameter to ``'always'`` to send error
  122. reports without asking for confirmation or you can set it to ``'never'`` to
  123. never send error reports.
  124. This directive is available both in the configuration file and in users
  125. preferences. If the person in charge of a multi-user installation prefers
  126. to disable this feature for all users, a value of ``'never'`` should be
  127. set, and the :config:option:`$cfg['UserprefsDisallow']` directive should
  128. contain ``'SendErrorReports'`` in one of its array values.
  129. .. config:option:: $cfg['ConsoleEnterExecutes']
  130. :type: boolean
  131. :default: false
  132. Setting this to ``true`` allows the user to execute queries by pressing Enter
  133. instead of Ctrl+Enter. A new line can be inserted by pressing Shift+Enter.
  134. The behaviour of the console can be temporarily changed using console's
  135. settings interface.
  136. .. config:option:: $cfg['AllowThirdPartyFraming']
  137. :type: boolean|string
  138. :default: false
  139. Setting this to ``true`` allows phpMyAdmin to be included inside a frame,
  140. and is a potential security hole allowing cross-frame scripting attacks or
  141. clickjacking. Setting this to 'sameorigin' prevents phpMyAdmin to be
  142. included from another document in a frame, unless that document belongs
  143. to the same domain.
  144. Server connection settings
  145. --------------------------
  146. .. config:option:: $cfg['Servers']
  147. :type: array
  148. :default: one server array with settings listed below
  149. Since version 1.4.2, phpMyAdmin supports the administration of multiple
  150. MySQL servers. Therefore, a :config:option:`$cfg['Servers']`-array has been
  151. added which contains the login information for the different servers. The
  152. first :config:option:`$cfg['Servers'][$i]['host']` contains the hostname of
  153. the first server, the second :config:option:`$cfg['Servers'][$i]['host']`
  154. the hostname of the second server, etc. In
  155. :file:`libraries/config.default.php`, there is only one section for server
  156. definition, however you can put as many as you need in
  157. :file:`config.inc.php`, copy that block or needed parts (you don't have to
  158. define all settings, just those you need to change).
  159. .. note::
  160. The :config:option:`$cfg['Servers']` array starts with
  161. $cfg['Servers'][1]. Do not use $cfg['Servers'][0]. If you want more
  162. than one server, just copy following section (including $i
  163. increment) several times. There is no need to define full server
  164. array, just define values you need to change.
  165. .. config:option:: $cfg['Servers'][$i]['host']
  166. :type: string
  167. :default: ``'localhost'``
  168. The hostname or :term:`IP` address of your $i-th MySQL-server. E.g.
  169. ``localhost``.
  170. Possible values are:
  171. * hostname, e.g., ``'localhost'`` or ``'mydb.example.org'``
  172. * IP address, e.g., ``'127.0.0.1'`` or ``'192.168.10.1'``
  173. * IPv6 address, e.g. ``2001:cdba:0000:0000:0000:0000:3257:9652``
  174. * dot - ``'.'``, i.e., use named pipes on windows systems
  175. * empty - ``''``, disables this server
  176. .. note::
  177. The hostname ``localhost`` is handled specially by MySQL and it uses
  178. the socket based connection protocol. To use TCP/IP networking, use an
  179. IP address or hostname such as ``127.0.0.1`` or ``db.example.com``. You
  180. can configure the path to the socket with
  181. :config:option:`$cfg['Servers'][$i]['socket']`.
  182. .. seealso::
  183. :config:option:`$cfg['Servers'][$i]['port']`,
  184. <https://dev.mysql.com/doc/refman/5.7/en/connecting.html>
  185. .. config:option:: $cfg['Servers'][$i]['port']
  186. :type: string
  187. :default: ``''``
  188. The port-number of your $i-th MySQL-server. Default is 3306 (leave
  189. blank).
  190. .. note::
  191. If you use ``localhost`` as the hostname, MySQL ignores this port number
  192. and connects with the socket, so if you want to connect to a port
  193. different from the default port, use ``127.0.0.1`` or the real hostname
  194. in :config:option:`$cfg['Servers'][$i]['host']`.
  195. .. seealso::
  196. :config:option:`$cfg['Servers'][$i]['host']`,
  197. <https://dev.mysql.com/doc/refman/5.7/en/connecting.html>
  198. .. config:option:: $cfg['Servers'][$i]['socket']
  199. :type: string
  200. :default: ``''``
  201. The path to the socket to use. Leave blank for default. To determine
  202. the correct socket, check your MySQL configuration or, using the
  203. :command:`mysql` commandline client, issue the ``status`` command. Among the
  204. resulting information displayed will be the socket used.
  205. .. note::
  206. This takes effect only if :config:option:`$cfg['Servers'][$i]['host']` is set
  207. to ``localhost``.
  208. .. seealso::
  209. :config:option:`$cfg['Servers'][$i]['host']`,
  210. <https://dev.mysql.com/doc/refman/5.7/en/connecting.html>
  211. .. config:option:: $cfg['Servers'][$i]['ssl']
  212. :type: boolean
  213. :default: false
  214. Whether to enable SSL for the connection between phpMyAdmin and the MySQL
  215. server to secure the connection.
  216. When using the ``'mysql'`` extension,
  217. none of the remaining ``'ssl...'`` configuration options apply.
  218. We strongly recommend the ``'mysqli'`` extension when using this option.
  219. .. seealso::
  220. :ref:`ssl`,
  221. :ref:`example-google-ssl`,
  222. :config:option:`$cfg['Servers'][$i]['ssl_key']`,
  223. :config:option:`$cfg['Servers'][$i]['ssl_cert']`,
  224. :config:option:`$cfg['Servers'][$i]['ssl_ca']`,
  225. :config:option:`$cfg['Servers'][$i]['ssl_ca_path']`,
  226. :config:option:`$cfg['Servers'][$i]['ssl_ciphers']`,
  227. :config:option:`$cfg['Servers'][$i]['ssl_verify']`
  228. .. config:option:: $cfg['Servers'][$i]['ssl_key']
  229. :type: string
  230. :default: NULL
  231. Path to the client key file when using SSL for connecting to the MySQL
  232. server. This is used to authenticate the client to the server.
  233. For example:
  234. .. code-block:: php
  235. $cfg['Servers'][$i]['ssl_key'] = '/etc/mysql/server-key.pem';
  236. .. seealso::
  237. :ref:`ssl`,
  238. :ref:`example-google-ssl`,
  239. :config:option:`$cfg['Servers'][$i]['ssl']`,
  240. :config:option:`$cfg['Servers'][$i]['ssl_cert']`,
  241. :config:option:`$cfg['Servers'][$i]['ssl_ca']`,
  242. :config:option:`$cfg['Servers'][$i]['ssl_ca_path']`,
  243. :config:option:`$cfg['Servers'][$i]['ssl_ciphers']`,
  244. :config:option:`$cfg['Servers'][$i]['ssl_verify']`
  245. .. config:option:: $cfg['Servers'][$i]['ssl_cert']
  246. :type: string
  247. :default: NULL
  248. Path to the client certificate file when using SSL for connecting to the
  249. MySQL server. This is used to authenticate the client to the server.
  250. .. seealso::
  251. :ref:`ssl`,
  252. :ref:`example-google-ssl`,
  253. :config:option:`$cfg['Servers'][$i]['ssl']`,
  254. :config:option:`$cfg['Servers'][$i]['ssl_key']`,
  255. :config:option:`$cfg['Servers'][$i]['ssl_ca']`,
  256. :config:option:`$cfg['Servers'][$i]['ssl_ca_path']`,
  257. :config:option:`$cfg['Servers'][$i]['ssl_ciphers']`,
  258. :config:option:`$cfg['Servers'][$i]['ssl_verify']`
  259. .. config:option:: $cfg['Servers'][$i]['ssl_ca']
  260. :type: string
  261. :default: NULL
  262. Path to the CA file when using SSL for connecting to the MySQL server.
  263. .. seealso::
  264. :ref:`ssl`,
  265. :ref:`example-google-ssl`,
  266. :config:option:`$cfg['Servers'][$i]['ssl']`,
  267. :config:option:`$cfg['Servers'][$i]['ssl_key']`,
  268. :config:option:`$cfg['Servers'][$i]['ssl_cert']`,
  269. :config:option:`$cfg['Servers'][$i]['ssl_ca_path']`,
  270. :config:option:`$cfg['Servers'][$i]['ssl_ciphers']`,
  271. :config:option:`$cfg['Servers'][$i]['ssl_verify']`
  272. .. config:option:: $cfg['Servers'][$i]['ssl_ca_path']
  273. :type: string
  274. :default: NULL
  275. Directory containing trusted SSL CA certificates in PEM format.
  276. .. seealso::
  277. :ref:`ssl`,
  278. :ref:`example-google-ssl`,
  279. :config:option:`$cfg['Servers'][$i]['ssl']`,
  280. :config:option:`$cfg['Servers'][$i]['ssl_key']`,
  281. :config:option:`$cfg['Servers'][$i]['ssl_cert']`,
  282. :config:option:`$cfg['Servers'][$i]['ssl_ca']`,
  283. :config:option:`$cfg['Servers'][$i]['ssl_ciphers']`,
  284. :config:option:`$cfg['Servers'][$i]['ssl_verify']`
  285. .. config:option:: $cfg['Servers'][$i]['ssl_ciphers']
  286. :type: string
  287. :default: NULL
  288. List of allowable ciphers for SSL connections to the MySQL server.
  289. .. seealso::
  290. :ref:`ssl`,
  291. :ref:`example-google-ssl`,
  292. :config:option:`$cfg['Servers'][$i]['ssl']`,
  293. :config:option:`$cfg['Servers'][$i]['ssl_key']`,
  294. :config:option:`$cfg['Servers'][$i]['ssl_cert']`,
  295. :config:option:`$cfg['Servers'][$i]['ssl_ca']`,
  296. :config:option:`$cfg['Servers'][$i]['ssl_ca_path']`,
  297. :config:option:`$cfg['Servers'][$i]['ssl_verify']`
  298. .. config:option:: $cfg['Servers'][$i]['ssl_verify']
  299. :type: boolean
  300. :default: true
  301. .. versionadded:: 4.6.0
  302. This is supported since phpMyAdmin 4.6.0.
  303. If your PHP install uses the MySQL Native Driver (mysqlnd), your
  304. MySQL server is 5.6 or later, and your SSL certificate is self-signed,
  305. there is a chance your SSL connection will fail due to validation.
  306. Setting this to ``false`` will disable the validation check.
  307. Since PHP 5.6.0 it also verifies whether server name matches CN of its
  308. certificate. There is currently no way to disable just this check without
  309. disabling complete SSL verification.
  310. .. warning::
  311. Disabling the certificate verification defeats purpose of using SSL.
  312. This will make the connection vulnerable to man in the middle attacks.
  313. .. note::
  314. This flag only works with PHP 5.6.16 or later.
  315. .. seealso::
  316. :ref:`ssl`,
  317. :ref:`example-google-ssl`,
  318. :config:option:`$cfg['Servers'][$i]['ssl']`,
  319. :config:option:`$cfg['Servers'][$i]['ssl_key']`,
  320. :config:option:`$cfg['Servers'][$i]['ssl_cert']`,
  321. :config:option:`$cfg['Servers'][$i]['ssl_ca']`,
  322. :config:option:`$cfg['Servers'][$i]['ssl_ca_path']`,
  323. :config:option:`$cfg['Servers'][$i]['ssl_ciphers']`,
  324. :config:option:`$cfg['Servers'][$i]['ssl_verify']`
  325. .. config:option:: $cfg['Servers'][$i]['connect_type']
  326. :type: string
  327. :default: ``'tcp'``
  328. .. deprecated:: 4.7.0
  329. This setting is no longer used as of 4.7.0, since MySQL decides the
  330. connection type based on host, so it could lead to unexpected results.
  331. Please set :config:option:`$cfg['Servers'][$i]['host']` accordingly
  332. instead.
  333. What type connection to use with the MySQL server. Your options are
  334. ``'socket'`` and ``'tcp'``. It defaults to tcp as that is nearly guaranteed
  335. to be available on all MySQL servers, while sockets are not supported on
  336. some platforms. To use the socket mode, your MySQL server must be on the
  337. same machine as the Web server.
  338. .. config:option:: $cfg['Servers'][$i]['compress']
  339. :type: boolean
  340. :default: false
  341. Whether to use a compressed protocol for the MySQL server connection
  342. or not (experimental).
  343. .. _controlhost:
  344. .. config:option:: $cfg['Servers'][$i]['controlhost']
  345. :type: string
  346. :default: ``''``
  347. Permits to use an alternate host to hold the configuration storage
  348. data.
  349. .. seealso::
  350. :config:option:`$cfg['Servers'][$i]['control_*']`
  351. .. _controlport:
  352. .. config:option:: $cfg['Servers'][$i]['controlport']
  353. :type: string
  354. :default: ``''``
  355. Permits to use an alternate port to connect to the host that
  356. holds the configuration storage.
  357. .. seealso::
  358. :config:option:`$cfg['Servers'][$i]['control_*']`
  359. .. _controluser:
  360. .. config:option:: $cfg['Servers'][$i]['controluser']
  361. :type: string
  362. :default: ``''``
  363. .. config:option:: $cfg['Servers'][$i]['controlpass']
  364. :type: string
  365. :default: ``''``
  366. This special account is used to access :ref:`linked-tables`.
  367. You don't need it in single user case, but if phpMyAdmin is shared it
  368. is recommended to give access to :ref:`linked-tables` only to this user
  369. and configure phpMyAdmin to use it. All users will then be able to use
  370. the features without need to have direct access to :ref:`linked-tables`.
  371. .. versionchanged:: 2.2.5
  372. those were called ``stduser`` and ``stdpass``
  373. .. seealso::
  374. :ref:`setup`,
  375. :ref:`authentication_modes`,
  376. :ref:`linked-tables`,
  377. :config:option:`$cfg['Servers'][$i]['pmadb']`,
  378. :config:option:`$cfg['Servers'][$i]['controlhost']`,
  379. :config:option:`$cfg['Servers'][$i]['controlport']`,
  380. :config:option:`$cfg['Servers'][$i]['control_*']`
  381. .. config:option:: $cfg['Servers'][$i]['control_*']
  382. :type: mixed
  383. .. versionadded:: 4.7.0
  384. You can change any MySQL connection setting for control link (used to
  385. access :ref:`linked-tables`) using configuration prefixed with ``control_``.
  386. This can be used to change any aspect of the control connection, which by
  387. default uses same parameters as the user one.
  388. For example you can configure SSL for the control connection:
  389. .. code-block:: php
  390. // Enable SSL
  391. $cfg['Servers'][$i]['control_ssl'] = true;
  392. // Client secret key
  393. $cfg['Servers'][$i]['control_ssl_key'] = '../client-key.pem';
  394. // Client certificate
  395. $cfg['Servers'][$i]['control_ssl_cert'] = '../client-cert.pem';
  396. // Server certification authority
  397. $cfg['Servers'][$i]['control_ssl_ca'] = '../server-ca.pem';
  398. .. seealso::
  399. :config:option:`$cfg['Servers'][$i]['ssl']`,
  400. :config:option:`$cfg['Servers'][$i]['ssl_key']`,
  401. :config:option:`$cfg['Servers'][$i]['ssl_cert']`,
  402. :config:option:`$cfg['Servers'][$i]['ssl_ca']`,
  403. :config:option:`$cfg['Servers'][$i]['ssl_ca_path']`,
  404. :config:option:`$cfg['Servers'][$i]['ssl_ciphers']`,
  405. :config:option:`$cfg['Servers'][$i]['ssl_verify']`
  406. .. config:option:: $cfg['Servers'][$i]['auth_type']
  407. :type: string
  408. :default: ``'cookie'``
  409. Whether config or cookie or :term:`HTTP` or signon authentication should be
  410. used for this server.
  411. * 'config' authentication (``$auth_type = 'config'``) is the plain old
  412. way: username and password are stored in :file:`config.inc.php`.
  413. * 'cookie' authentication mode (``$auth_type = 'cookie'``) allows you to
  414. log in as any valid MySQL user with the help of cookies.
  415. * 'http' authentication allows you to log in as any
  416. valid MySQL user via HTTP-Auth.
  417. * 'signon' authentication mode (``$auth_type = 'signon'``) allows you to
  418. log in from prepared PHP session data or using supplied PHP script.
  419. .. seealso:: :ref:`authentication_modes`
  420. .. _servers_auth_http_realm:
  421. .. config:option:: $cfg['Servers'][$i]['auth_http_realm']
  422. :type: string
  423. :default: ``''``
  424. When using auth\_type = ``http``, this field allows to define a custom
  425. :term:`HTTP` Basic Auth Realm which will be displayed to the user. If not
  426. explicitly specified in your configuration, a string combined of
  427. "phpMyAdmin " and either :config:option:`$cfg['Servers'][$i]['verbose']` or
  428. :config:option:`$cfg['Servers'][$i]['host']` will be used.
  429. .. _servers_user:
  430. .. config:option:: $cfg['Servers'][$i]['user']
  431. :type: string
  432. :default: ``'root'``
  433. .. config:option:: $cfg['Servers'][$i]['password']
  434. :type: string
  435. :default: ``''``
  436. When using :config:option:`$cfg['Servers'][$i]['auth_type']` set to
  437. 'config', this is the user/password-pair which phpMyAdmin will use to
  438. connect to the MySQL server. This user/password pair is not needed when
  439. :term:`HTTP` or cookie authentication is used
  440. and should be empty.
  441. .. _servers_nopassword:
  442. .. config:option:: $cfg['Servers'][$i]['nopassword']
  443. :type: boolean
  444. :default: false
  445. .. deprecated:: 4.7.0
  446. This setting was removed as it can produce unexpected results.
  447. Allow attempt to log in without password when a login with password
  448. fails. This can be used together with http authentication, when
  449. authentication is done some other way and phpMyAdmin gets user name
  450. from auth and uses empty password for connecting to MySQL. Password
  451. login is still tried first, but as fallback, no password method is
  452. tried.
  453. .. _servers_only_db:
  454. .. config:option:: $cfg['Servers'][$i]['only_db']
  455. :type: string or array
  456. :default: ``''``
  457. If set to a (an array of) database name(s), only this (these)
  458. database(s) will be shown to the user. Since phpMyAdmin 2.2.1,
  459. this/these database(s) name(s) may contain MySQL wildcards characters
  460. ("\_" and "%"): if you want to use literal instances of these
  461. characters, escape them (I.E. use ``'my\_db'`` and not ``'my_db'``).
  462. This setting is an efficient way to lower the server load since the
  463. latter does not need to send MySQL requests to build the available
  464. database list. But **it does not replace the privileges rules of the
  465. MySQL database server**. If set, it just means only these databases
  466. will be displayed but **not that all other databases can't be used.**
  467. An example of using more that one database:
  468. .. code-block:: php
  469. $cfg['Servers'][$i]['only_db'] = ['db1', 'db2'];
  470. .. versionchanged:: 4.0.0
  471. Previous versions permitted to specify the display order of
  472. the database names via this directive.
  473. .. config:option:: $cfg['Servers'][$i]['hide_db']
  474. :type: string
  475. :default: ``''``
  476. Regular expression for hiding some databases from unprivileged users.
  477. This only hides them from listing, but a user is still able to access
  478. them (using, for example, the SQL query area). To limit access, use
  479. the MySQL privilege system. For example, to hide all databases
  480. starting with the letter "a", use
  481. .. code-block:: php
  482. $cfg['Servers'][$i]['hide_db'] = '^a';
  483. and to hide both "db1" and "db2" use
  484. .. code-block:: php
  485. $cfg['Servers'][$i]['hide_db'] = '^(db1|db2)$';
  486. More information on regular expressions can be found in the `PCRE
  487. pattern syntax
  488. <https://www.php.net/manual/en/reference.pcre.pattern.syntax.php>`_ portion
  489. of the PHP reference manual.
  490. .. config:option:: $cfg['Servers'][$i]['verbose']
  491. :type: string
  492. :default: ``''``
  493. Only useful when using phpMyAdmin with multiple server entries. If
  494. set, this string will be displayed instead of the hostname in the
  495. pull-down menu on the main page. This can be useful if you want to
  496. show only certain databases on your system, for example. For HTTP
  497. auth, all non-US-ASCII characters will be stripped.
  498. .. config:option:: $cfg['Servers'][$i]['extension']
  499. :type: string
  500. :default: ``'mysqli'``
  501. .. deprecated:: 4.2.0
  502. This setting was removed. The ``mysql`` extension will only be used when
  503. the ``mysqli`` extension is not available. As of 5.0.0, only the
  504. ``mysqli`` extension can be used.
  505. The PHP MySQL extension to use (``mysql`` or ``mysqli``).
  506. It is recommended to use ``mysqli`` in all installations.
  507. .. config:option:: $cfg['Servers'][$i]['pmadb']
  508. :type: string
  509. :default: ``''``
  510. The name of the database containing the phpMyAdmin configuration
  511. storage.
  512. See the :ref:`linked-tables` section in this document to see the benefits of
  513. this feature, and for a quick way of creating this database and the needed
  514. tables.
  515. If you are the only user of this phpMyAdmin installation, you can use your
  516. current database to store those special tables; in this case, just put your
  517. current database name in :config:option:`$cfg['Servers'][$i]['pmadb']`. For a
  518. multi-user installation, set this parameter to the name of your central
  519. database containing the phpMyAdmin configuration storage.
  520. .. _bookmark:
  521. .. config:option:: $cfg['Servers'][$i]['bookmarktable']
  522. :type: string or false
  523. :default: ``''``
  524. Since release 2.2.0 phpMyAdmin allows users to bookmark queries. This
  525. can be useful for queries you often run. To allow the usage of this
  526. functionality:
  527. * set up :config:option:`$cfg['Servers'][$i]['pmadb']` and the phpMyAdmin configuration storage
  528. * enter the table name in :config:option:`$cfg['Servers'][$i]['bookmarktable']`
  529. This feature can be disabled by setting the configuration to ``false``.
  530. .. _relation:
  531. .. config:option:: $cfg['Servers'][$i]['relation']
  532. :type: string or false
  533. :default: ``''``
  534. Since release 2.2.4 you can describe, in a special 'relation' table,
  535. which column is a key in another table (a foreign key). phpMyAdmin
  536. currently uses this to:
  537. * make clickable, when you browse the master table, the data values that
  538. point to the foreign table;
  539. * display in an optional tool-tip the "display column" when browsing the
  540. master table, if you move the mouse to a column containing a foreign
  541. key (use also the 'table\_info' table); (see :ref:`faqdisplay`)
  542. * in edit/insert mode, display a drop-down list of possible foreign keys
  543. (key value and "display column" are shown) (see :ref:`faq6_21`)
  544. * display links on the table properties page, to check referential
  545. integrity (display missing foreign keys) for each described key;
  546. * in query-by-example, create automatic joins (see :ref:`faq6_6`)
  547. * enable you to get a :term:`PDF` schema of
  548. your database (also uses the table\_coords table).
  549. The keys can be numeric or character.
  550. To allow the usage of this functionality:
  551. * set up :config:option:`$cfg['Servers'][$i]['pmadb']` and the phpMyAdmin configuration storage
  552. * put the relation table name in :config:option:`$cfg['Servers'][$i]['relation']`
  553. * now as normal user open phpMyAdmin and for each one of your tables
  554. where you want to use this feature, click :guilabel:`Structure/Relation view/`
  555. and choose foreign columns.
  556. This feature can be disabled by setting the configuration to ``false``.
  557. .. note::
  558. In the current version, ``master_db`` must be the same as ``foreign_db``.
  559. Those columns have been put in future development of the cross-db
  560. relations.
  561. .. _table_info:
  562. .. config:option:: $cfg['Servers'][$i]['table_info']
  563. :type: string or false
  564. :default: ``''``
  565. Since release 2.3.0 you can describe, in a special 'table\_info'
  566. table, which column is to be displayed as a tool-tip when moving the
  567. cursor over the corresponding key. This configuration variable will
  568. hold the name of this special table. To allow the usage of this
  569. functionality:
  570. * set up :config:option:`$cfg['Servers'][$i]['pmadb']` and the phpMyAdmin configuration storage
  571. * put the table name in :config:option:`$cfg['Servers'][$i]['table\_info']` (e.g.
  572. ``pma__table_info``)
  573. * then for each table where you want to use this feature, click
  574. "Structure/Relation view/Choose column to display" to choose the
  575. column.
  576. This feature can be disabled by setting the configuration to ``false``.
  577. .. seealso:: :ref:`faqdisplay`
  578. .. _table_coords:
  579. .. config:option:: $cfg['Servers'][$i]['table_coords']
  580. :type: string or false
  581. :default: ``''``
  582. The designer feature can save your page layout; by pressing the "Save page" or "Save page as"
  583. button in the expanding designer menu, you can customize the layout and have it loaded the next
  584. time you use the designer. That layout is stored in this table. Furthermore, this table is also
  585. required for using the PDF relation export feature, see
  586. :config:option:`$cfg['Servers'][$i]['pdf\_pages']` for additional details.
  587. .. config:option:: $cfg['Servers'][$i]['pdf_pages']
  588. :type: string or false
  589. :default: ``''``
  590. Since release 2.3.0 you can have phpMyAdmin create :term:`PDF` pages
  591. showing the relations between your tables. Further, the designer interface
  592. permits visually managing the relations. To do this it needs two tables
  593. "pdf\_pages" (storing information about the available :term:`PDF` pages)
  594. and "table\_coords" (storing coordinates where each table will be placed on
  595. a :term:`PDF` schema output). You must be using the "relation" feature.
  596. To allow the usage of this functionality:
  597. * set up :config:option:`$cfg['Servers'][$i]['pmadb']` and the phpMyAdmin configuration storage
  598. * put the correct table names in
  599. :config:option:`$cfg['Servers'][$i]['table\_coords']` and
  600. :config:option:`$cfg['Servers'][$i]['pdf\_pages']`
  601. This feature can be disabled by setting either of the configurations to ``false``.
  602. .. seealso:: :ref:`faqpdf`.
  603. .. _designer_coords:
  604. .. config:option:: $cfg['Servers'][$i]['designer_coords']
  605. :type: string
  606. :default: ``''``
  607. .. versionadded:: 2.10.0
  608. Since release 2.10.0 a Designer interface is available; it permits to
  609. visually manage the relations.
  610. .. deprecated:: 4.3.0
  611. This setting was removed and the Designer table positioning data is now stored into :config:option:`$cfg['Servers'][$i]['table\_coords']`.
  612. .. note::
  613. You can now delete the table `pma__designer_coords` from your phpMyAdmin configuration storage database and remove :config:option:`$cfg['Servers'][$i]['designer\_coords']` from your configuration file.
  614. .. _col_com:
  615. .. config:option:: $cfg['Servers'][$i]['column_info']
  616. :type: string or false
  617. :default: ``''``
  618. This part requires a content update! Since release 2.3.0 you can
  619. store comments to describe each column for each table. These will then
  620. be shown on the "printview".
  621. Starting with release 2.5.0, comments are consequently used on the table
  622. property pages and table browse view, showing up as tool-tips above the
  623. column name (properties page) or embedded within the header of table in
  624. browse view. They can also be shown in a table dump. Please see the
  625. relevant configuration directives later on.
  626. Also new in release 2.5.0 is a MIME- transformation system which is also
  627. based on the following table structure. See :ref:`transformations` for
  628. further information. To use the MIME- transformation system, your
  629. column\_info table has to have the three new columns 'mimetype',
  630. 'transformation', 'transformation\_options'.
  631. Starting with release 4.3.0, a new input-oriented transformation system
  632. has been introduced. Also, backward compatibility code used in the old
  633. transformations system was removed. As a result, an update to column\_info
  634. table is necessary for previous transformations and the new input-oriented
  635. transformation system to work. phpMyAdmin will upgrade it automatically
  636. for you by analyzing your current column\_info table structure.
  637. However, if something goes wrong with the auto-upgrade then you can
  638. use the SQL script found in ``./sql/upgrade_column_info_4_3_0+.sql``
  639. to upgrade it manually.
  640. To allow the usage of this functionality:
  641. * set up :config:option:`$cfg['Servers'][$i]['pmadb']` and the phpMyAdmin configuration storage
  642. * put the table name in :config:option:`$cfg['Servers'][$i]['column\_info']` (e.g.
  643. ``pma__column_info``)
  644. * to update your PRE-2.5.0 Column\_comments table use this: and
  645. remember that the Variable in :file:`config.inc.php` has been renamed from
  646. :samp:`$cfg['Servers'][$i]['column\_comments']` to
  647. :config:option:`$cfg['Servers'][$i]['column\_info']`
  648. .. code-block:: mysql
  649. ALTER TABLE `pma__column_comments`
  650. ADD `mimetype` VARCHAR( 255 ) NOT NULL,
  651. ADD `transformation` VARCHAR( 255 ) NOT NULL,
  652. ADD `transformation_options` VARCHAR( 255 ) NOT NULL;
  653. * to update your PRE-4.3.0 Column\_info table manually use this
  654. ``./sql/upgrade_column_info_4_3_0+.sql`` SQL script.
  655. This feature can be disabled by setting the configuration to ``false``.
  656. .. note::
  657. For auto-upgrade functionality to work, your
  658. :config:option:`$cfg['Servers'][$i]['controluser']` must have ALTER privilege on
  659. ``phpmyadmin`` database. See the `MySQL documentation for GRANT
  660. <https://dev.mysql.com/doc/refman/5.7/en/grant.html>`_ on how to
  661. ``GRANT`` privileges to a user.
  662. .. _history:
  663. .. config:option:: $cfg['Servers'][$i]['history']
  664. :type: string or false
  665. :default: ``''``
  666. Since release 2.5.0 you can store your :term:`SQL` history, which means all
  667. queries you entered manually into the phpMyAdmin interface. If you don't
  668. want to use a table-based history, you can use the JavaScript-based
  669. history.
  670. Using that, all your history items are deleted when closing the window.
  671. Using :config:option:`$cfg['QueryHistoryMax']` you can specify an amount of
  672. history items you want to have on hold. On every login, this list gets cut
  673. to the maximum amount.
  674. The query history is only available if JavaScript is enabled in
  675. your browser.
  676. To allow the usage of this functionality:
  677. * set up :config:option:`$cfg['Servers'][$i]['pmadb']` and the phpMyAdmin configuration storage
  678. * put the table name in :config:option:`$cfg['Servers'][$i]['history']` (e.g.
  679. ``pma__history``)
  680. This feature can be disabled by setting the configuration to ``false``.
  681. .. _recent:
  682. .. config:option:: $cfg['Servers'][$i]['recent']
  683. :type: string or false
  684. :default: ``''``
  685. Since release 3.5.0 you can show recently used tables in the
  686. navigation panel. It helps you to jump across table directly, without
  687. the need to select the database, and then select the table. Using
  688. :config:option:`$cfg['NumRecentTables']` you can configure the maximum number
  689. of recent tables shown. When you select a table from the list, it will jump to
  690. the page specified in :config:option:`$cfg['NavigationTreeDefaultTabTable']`.
  691. Without configuring the storage, you can still access the recently used tables,
  692. but it will disappear after you logout.
  693. To allow the usage of this functionality persistently:
  694. * set up :config:option:`$cfg['Servers'][$i]['pmadb']` and the phpMyAdmin configuration storage
  695. * put the table name in :config:option:`$cfg['Servers'][$i]['recent']` (e.g.
  696. ``pma__recent``)
  697. This feature can be disabled by setting the configuration to ``false``.
  698. .. _favorite:
  699. .. config:option:: $cfg['Servers'][$i]['favorite']
  700. :type: string or false
  701. :default: ``''``
  702. Since release 4.2.0 you can show a list of selected tables in the
  703. navigation panel. It helps you to jump to the table directly, without
  704. the need to select the database, and then select the table. When you
  705. select a table from the list, it will jump to the page specified in
  706. :config:option:`$cfg['NavigationTreeDefaultTabTable']`.
  707. You can add tables to this list or remove tables from it in database
  708. structure page by clicking on the star icons next to table names. Using
  709. :config:option:`$cfg['NumFavoriteTables']` you can configure the maximum
  710. number of favorite tables shown.
  711. Without configuring the storage, you can still access the favorite tables,
  712. but it will disappear after you logout.
  713. To allow the usage of this functionality persistently:
  714. * set up :config:option:`$cfg['Servers'][$i]['pmadb']` and the phpMyAdmin configuration storage
  715. * put the table name in :config:option:`$cfg['Servers'][$i]['favorite']` (e.g.
  716. ``pma__favorite``)
  717. This feature can be disabled by setting the configuration to ``false``.
  718. .. _table_uiprefs:
  719. .. config:option:: $cfg['Servers'][$i]['table_uiprefs']
  720. :type: string or false
  721. :default: ``''``
  722. Since release 3.5.0 phpMyAdmin can be configured to remember several
  723. things (sorted column :config:option:`$cfg['RememberSorting']`, column order,
  724. and column visibility from a database table) for browsing tables. Without
  725. configuring the storage, these features still can be used, but the values will
  726. disappear after you logout.
  727. To allow the usage of these functionality persistently:
  728. * set up :config:option:`$cfg['Servers'][$i]['pmadb']` and the phpMyAdmin configuration storage
  729. * put the table name in :config:option:`$cfg['Servers'][$i]['table\_uiprefs']` (e.g.
  730. ``pma__table_uiprefs``)
  731. This feature can be disabled by setting the configuration to ``false``.
  732. .. config:option:: $cfg['Servers'][$i]['users']
  733. :type: string or false
  734. :default: ``''``
  735. The table used by phpMyAdmin to store user name information for associating with user groups.
  736. See the next entry on :config:option:`$cfg['Servers'][$i]['usergroups']` for more details
  737. and the suggested settings.
  738. .. config:option:: $cfg['Servers'][$i]['usergroups']
  739. :type: string or false
  740. :default: ``''``
  741. Since release 4.1.0 you can create different user groups with menu items
  742. attached to them. Users can be assigned to these groups and the logged in
  743. user would only see menu items configured to the usergroup they are assigned to.
  744. To do this it needs two tables "usergroups" (storing allowed menu items for each
  745. user group) and "users" (storing users and their assignments to user groups).
  746. To allow the usage of this functionality:
  747. * set up :config:option:`$cfg['Servers'][$i]['pmadb']` and the phpMyAdmin configuration storage
  748. * put the correct table names in
  749. :config:option:`$cfg['Servers'][$i]['users']` (e.g. ``pma__users``) and
  750. :config:option:`$cfg['Servers'][$i]['usergroups']` (e.g. ``pma__usergroups``)
  751. This feature can be disabled by setting either of the configurations to ``false``.
  752. .. seealso:: :ref:`configurablemenus`
  753. .. _navigationhiding:
  754. .. config:option:: $cfg['Servers'][$i]['navigationhiding']
  755. :type: string or false
  756. :default: ``''``
  757. Since release 4.1.0 you can hide/show items in the navigation tree.
  758. To allow the usage of this functionality:
  759. * set up :config:option:`$cfg['Servers'][$i]['pmadb']` and the phpMyAdmin configuration storage
  760. * put the table name in :config:option:`$cfg['Servers'][$i]['navigationhiding']` (e.g.
  761. ``pma__navigationhiding``)
  762. This feature can be disabled by setting the configuration to ``false``.
  763. .. _central_columns:
  764. .. config:option:: $cfg['Servers'][$i]['central_columns']
  765. :type: string or false
  766. :default: ``''``
  767. Since release 4.3.0 you can have a central list of columns per database.
  768. You can add/remove columns to the list as per your requirement. These columns
  769. in the central list will be available to use while you create a new column for
  770. a table or create a table itself. You can select a column from central list
  771. while creating a new column, it will save you from writing the same column definition
  772. over again or from writing different names for similar column.
  773. To allow the usage of this functionality:
  774. * set up :config:option:`$cfg['Servers'][$i]['pmadb']` and the phpMyAdmin configuration storage
  775. * put the table name in :config:option:`$cfg['Servers'][$i]['central_columns']` (e.g.
  776. ``pma__central_columns``)
  777. This feature can be disabled by setting the configuration to ``false``.
  778. .. _designer_settings:
  779. .. config:option:: $cfg['Servers'][$i]['designer_settings']
  780. :type: string or false
  781. :default: ``''``
  782. Since release 4.5.0 your designer settings can be remembered.
  783. Your choice regarding 'Angular/Direct Links', 'Snap to Grid', 'Toggle Relation Lines',
  784. 'Small/Big All', 'Move Menu' and 'Pin Text' can be remembered persistently.
  785. To allow the usage of this functionality:
  786. * set up :config:option:`$cfg['Servers'][$i]['pmadb']` and the phpMyAdmin configuration storage
  787. * put the table name in :config:option:`$cfg['Servers'][$i]['designer_settings']` (e.g.
  788. ``pma__designer_settings``)
  789. This feature can be disabled by setting the configuration to ``false``.
  790. .. _savedsearches:
  791. .. config:option:: $cfg['Servers'][$i]['savedsearches']
  792. :type: string or false
  793. :default: ``''``
  794. Since release 4.2.0 you can save and load query-by-example searches from the Database > Query panel.
  795. To allow the usage of this functionality:
  796. * set up :config:option:`$cfg['Servers'][$i]['pmadb']` and the phpMyAdmin configuration storage
  797. * put the table name in :config:option:`$cfg['Servers'][$i]['savedsearches']` (e.g.
  798. ``pma__savedsearches``)
  799. This feature can be disabled by setting the configuration to ``false``.
  800. .. _export_templates:
  801. .. config:option:: $cfg['Servers'][$i]['export_templates']
  802. :type: string or false
  803. :default: ``''``
  804. Since release 4.5.0 you can save and load export templates.
  805. To allow the usage of this functionality:
  806. * set up :config:option:`$cfg['Servers'][$i]['pmadb']` and the phpMyAdmin configuration storage
  807. * put the table name in :config:option:`$cfg['Servers'][$i]['export_templates']` (e.g.
  808. ``pma__export_templates``)
  809. This feature can be disabled by setting the configuration to ``false``.
  810. .. _tracking:
  811. .. config:option:: $cfg['Servers'][$i]['tracking']
  812. :type: string or false
  813. :default: ``''``
  814. Since release 3.3.x a tracking mechanism is available. It helps you to
  815. track every :term:`SQL` command which is
  816. executed by phpMyAdmin. The mechanism supports logging of data
  817. manipulation and data definition statements. After enabling it you can
  818. create versions of tables.
  819. The creation of a version has two effects:
  820. * phpMyAdmin saves a snapshot of the table, including structure and
  821. indexes.
  822. * phpMyAdmin logs all commands which change the structure and/or data of
  823. the table and links these commands with the version number.
  824. Of course you can view the tracked changes. On the :guilabel:`Tracking`
  825. page a complete report is available for every version. For the report you
  826. can use filters, for example you can get a list of statements within a date
  827. range. When you want to filter usernames you can enter \* for all names or
  828. you enter a list of names separated by ','. In addition you can export the
  829. (filtered) report to a file or to a temporary database.
  830. To allow the usage of this functionality:
  831. * set up :config:option:`$cfg['Servers'][$i]['pmadb']` and the phpMyAdmin configuration storage
  832. * put the table name in :config:option:`$cfg['Servers'][$i]['tracking']` (e.g.
  833. ``pma__tracking``)
  834. This feature can be disabled by setting the configuration to ``false``.
  835. .. _tracking2:
  836. .. config:option:: $cfg['Servers'][$i]['tracking_version_auto_create']
  837. :type: boolean
  838. :default: false
  839. Whether the tracking mechanism creates versions for tables and views
  840. automatically.
  841. If this is set to true and you create a table or view with
  842. * CREATE TABLE ...
  843. * CREATE VIEW ...
  844. and no version exists for it, the mechanism will create a version for
  845. you automatically.
  846. .. _tracking3:
  847. .. config:option:: $cfg['Servers'][$i]['tracking_default_statements']
  848. :type: string
  849. :default: ``'CREATE TABLE,ALTER TABLE,DROP TABLE,RENAME TABLE,CREATE INDEX,DROP INDEX,INSERT,UPDATE,DELETE,TRUNCATE,REPLACE,CREATE VIEW,ALTER VIEW,DROP VIEW,CREATE DATABASE,ALTER DATABASE,DROP DATABASE'``
  850. Defines the list of statements the auto-creation uses for new
  851. versions.
  852. .. _tracking4:
  853. .. config:option:: $cfg['Servers'][$i]['tracking_add_drop_view']
  854. :type: boolean
  855. :default: true
  856. Whether a DROP VIEW IF EXISTS statement will be added as first line to
  857. the log when creating a view.
  858. .. _tracking5:
  859. .. config:option:: $cfg['Servers'][$i]['tracking_add_drop_table']
  860. :type: boolean
  861. :default: true
  862. Whether a DROP TABLE IF EXISTS statement will be added as first line
  863. to the log when creating a table.
  864. .. _tracking6:
  865. .. config:option:: $cfg['Servers'][$i]['tracking_add_drop_database']
  866. :type: boolean
  867. :default: true
  868. Whether a DROP DATABASE IF EXISTS statement will be added as first
  869. line to the log when creating a database.
  870. .. _userconfig:
  871. .. config:option:: $cfg['Servers'][$i]['userconfig']
  872. :type: string or false
  873. :default: ``''``
  874. Since release 3.4.x phpMyAdmin allows users to set most preferences by
  875. themselves and store them in the database.
  876. If you don't allow for storing preferences in
  877. :config:option:`$cfg['Servers'][$i]['pmadb']`, users can still personalize
  878. phpMyAdmin, but settings will be saved in browser's local storage, or, it
  879. is is unavailable, until the end of session.
  880. To allow the usage of this functionality:
  881. * set up :config:option:`$cfg['Servers'][$i]['pmadb']` and the phpMyAdmin configuration storage
  882. * put the table name in :config:option:`$cfg['Servers'][$i]['userconfig']`
  883. This feature can be disabled by setting the configuration to ``false``.
  884. .. config:option:: $cfg['Servers'][$i]['MaxTableUiprefs']
  885. :type: integer
  886. :default: 100
  887. Maximum number of rows saved in
  888. :config:option:`$cfg['Servers'][$i]['table_uiprefs']` table.
  889. When tables are dropped or renamed,
  890. :config:option:`$cfg['Servers'][$i]['table_uiprefs']` may contain invalid data
  891. (referring to tables which no longer exist). We only keep this number of newest
  892. rows in :config:option:`$cfg['Servers'][$i]['table_uiprefs']` and automatically
  893. delete older rows.
  894. .. config:option:: $cfg['Servers'][$i]['SessionTimeZone']
  895. :type: string
  896. :default: ``''``
  897. Sets the time zone used by phpMyAdmin. Leave blank to use the time zone of your
  898. database server. Possible values are explained at
  899. https://dev.mysql.com/doc/refman/5.7/en/time-zone-support.html
  900. This is useful when your database server uses a time zone which is different from the
  901. time zone you want to use in phpMyAdmin.
  902. .. config:option:: $cfg['Servers'][$i]['AllowRoot']
  903. :type: boolean
  904. :default: true
  905. Whether to allow root access. This is just a shortcut for the
  906. :config:option:`$cfg['Servers'][$i]['AllowDeny']['rules']` below.
  907. .. config:option:: $cfg['Servers'][$i]['AllowNoPassword']
  908. :type: boolean
  909. :default: false
  910. Whether to allow logins without a password. The default value of
  911. ``false`` for this parameter prevents unintended access to a MySQL
  912. server with was left with an empty password for root or on which an
  913. anonymous (blank) user is defined.
  914. .. _servers_allowdeny_order:
  915. .. config:option:: $cfg['Servers'][$i]['AllowDeny']['order']
  916. :type: string
  917. :default: ``''``
  918. If your rule order is empty, then :term:`IP`
  919. authorization is disabled.
  920. If your rule order is set to
  921. ``'deny,allow'`` then the system applies all deny rules followed by
  922. allow rules. Access is allowed by default. Any client which does not
  923. match a Deny command or does match an Allow command will be allowed
  924. access to the server.
  925. If your rule order is set to ``'allow,deny'``
  926. then the system applies all allow rules followed by deny rules. Access
  927. is denied by default. Any client which does not match an Allow
  928. directive or does match a Deny directive will be denied access to the
  929. server.
  930. If your rule order is set to ``'explicit'``, authorization is
  931. performed in a similar fashion to rule order 'deny,allow', with the
  932. added restriction that your host/username combination **must** be
  933. listed in the *allow* rules, and not listed in the *deny* rules. This
  934. is the **most** secure means of using Allow/Deny rules, and was
  935. available in Apache by specifying allow and deny rules without setting
  936. any order.
  937. Please also see :config:option:`$cfg['TrustedProxies']` for
  938. detecting IP address behind proxies.
  939. .. _servers_allowdeny_rules:
  940. .. config:option:: $cfg['Servers'][$i]['AllowDeny']['rules']
  941. :type: array of strings
  942. :default: array()
  943. The general format fo

Large files files are truncated, but you can click here to view the full file