config.txt 111 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568
  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 inteded 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/layout.inc.php`. 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. .. warning::
  23. :term:`Mac` users should note that if you are on a version before
  24. :term:`Mac OS X`, PHP does not seem to
  25. like :term:`Mac` end of lines character (``\r``). So
  26. ensure you choose the option that allows to use the \*nix end of line
  27. character (``\n``) in your text editor before saving a script you have
  28. modified.
  29. Basic settings
  30. --------------
  31. .. config:option:: $cfg['PmaAbsoluteUri']
  32. :type: string
  33. :default: ``''``
  34. .. versionchanged:: 4.6.5
  35. This setting was not available in phpMyAdmin 4.6.0 - 4.6.4.
  36. Sets here the complete :term:`URL` (with full path) to your phpMyAdmin
  37. installation's directory. E.g.
  38. ``https://www.example.net/path_to_your_phpMyAdmin_directory/``. Note also
  39. that the :term:`URL` on most of web servers are case sensitive (even on
  40. Windows). Don’t forget the trailing slash at the end.
  41. Starting with version 2.3.0, it is advisable to try leaving this blank. In
  42. most cases phpMyAdmin automatically detects the proper setting. Users of
  43. port forwarding or complex reverse proxy setup might need to set this.
  44. A good test is to browse a table, edit a row and save it. There should be
  45. an error message if phpMyAdmin is having trouble auto–detecting the correct
  46. value. If you get an error that this must be set or if the autodetect code
  47. fails to detect your path, please post a bug report on our bug tracker so
  48. we can improve the code.
  49. .. seealso:: :ref:`faq1_40`, :ref:`faq2_5`, :ref:`faq4_7`, :ref:`faq5_16`
  50. .. config:option:: $cfg['PmaNoRelation_DisableWarning']
  51. :type: boolean
  52. :default: false
  53. Starting with version 2.3.0 phpMyAdmin offers a lot of features to
  54. work with master / foreign – tables (see :config:option:`$cfg['Servers'][$i]['pmadb']`).
  55. If you tried to set this
  56. up and it does not work for you, have a look on the :guilabel:`Structure` page
  57. of one database where you would like to use it. You will find a link
  58. that will analyze why those features have been disabled.
  59. If you do not want to use those features set this variable to ``true`` to
  60. stop this message from appearing.
  61. .. config:option:: $cfg['AuthLog']
  62. :type: string
  63. :default: ``'auto'``
  64. .. versionadded:: 4.8.0
  65. This is supported since phpMyAdmin 4.8.0.
  66. Configure authentication logging destination. Failed (or all, depending on
  67. :config:option:`$cfg['AuthLogSuccess']`) authentication attempts will be
  68. logged according to this directive:
  69. ``auto``
  70. Let phpMyAdmin automatically choose between ``syslog`` and ``php``.
  71. ``syslog``
  72. Log using syslog, using AUTH facility, on most systems this ends up
  73. in :file:`/var/log/auth.log`.
  74. ``php``
  75. Log into PHP error log.
  76. ``sapi``
  77. Log into PHP SAPI logging.
  78. ``/path/to/file``
  79. Any other value is treated as a filename and log entries are written there.
  80. .. note::
  81. When logging to a file, make sure its permissions are correctly set
  82. for a web server user, the setup should closely match instructions
  83. described in :config:option:`$cfg['TempDir']`:
  84. .. config:option:: $cfg['AuthLogSuccess']
  85. :type: boolean
  86. :default: false
  87. .. versionadded:: 4.8.0
  88. This is supported since phpMyAdmin 4.8.0.
  89. Whether to log successful authentication attempts into
  90. :config:option:`$cfg['AuthLog']`.
  91. .. config:option:: $cfg['SuhosinDisableWarning']
  92. :type: boolean
  93. :default: false
  94. A warning is displayed on the main page if Suhosin is detected.
  95. You can set this parameter to ``true`` to stop this message from appearing.
  96. .. config:option:: $cfg['LoginCookieValidityDisableWarning']
  97. :type: boolean
  98. :default: false
  99. A warning is displayed on the main page if the PHP parameter
  100. session.gc_maxlifetime is lower than cookie validity configured in phpMyAdmin.
  101. You can set this parameter to ``true`` to stop this message from appearing.
  102. .. config:option:: $cfg['ServerLibraryDifference_DisableWarning']
  103. :type: boolean
  104. :default: false
  105. .. deprecated:: 4.7.0
  106. This setting was removed as the warning has been removed as well.
  107. A warning is displayed on the main page if there is a difference
  108. between the MySQL library and server version.
  109. You can set this parameter to ``true`` to stop this message from appearing.
  110. .. config:option:: $cfg['ReservedWordDisableWarning']
  111. :type: boolean
  112. :default: false
  113. This warning is displayed on the Structure page of a table if one or more
  114. column names match with words which are MySQL reserved.
  115. If you want to turn off this warning, you can set it to ``true`` and
  116. warning will no longer be displayed.
  117. .. config:option:: $cfg['TranslationWarningThreshold']
  118. :type: integer
  119. :default: 80
  120. Show warning about incomplete translations on certain threshold.
  121. .. config:option:: $cfg['SendErrorReports']
  122. :type: string
  123. :default: ``'ask'``
  124. Sets the default behavior for JavaScript error reporting.
  125. Whenever an error is detected in the JavaScript execution, an error report
  126. may be sent to the phpMyAdmin team if the user agrees.
  127. The default setting of ``'ask'`` will ask the user everytime there is a new
  128. error report. However you can set this parameter to ``'always'`` to send error
  129. reports without asking for confirmation or you can set it to ``'never'`` to
  130. never send error reports.
  131. This directive is available both in the configuration file and in users
  132. preferences. If the person in charge of a multi-user installation prefers
  133. to disable this feature for all users, a value of ``'never'`` should be
  134. set, and the :config:option:`$cfg['UserprefsDisallow']` directive should
  135. contain ``'SendErrorReports'`` in one of its array values.
  136. .. config:option:: $cfg['ConsoleEnterExecutes']
  137. :type: boolean
  138. :default: false
  139. Setting this to ``true`` allows the user to execute queries by pressing Enter
  140. instead of Ctrl+Enter. A new line can be inserted by pressing Shift + Enter.
  141. The behaviour of the console can be temporarily changed using console's
  142. settings interface.
  143. .. config:option:: $cfg['AllowThirdPartyFraming']
  144. :type: boolean
  145. :default: false
  146. Setting this to ``true`` allows phpMyAdmin to be included inside a frame,
  147. and is a potential security hole allowing cross-frame scripting attacks or
  148. clickjacking.
  149. Server connection settings
  150. --------------------------
  151. .. config:option:: $cfg['Servers']
  152. :type: array
  153. :default: one server array with settings listed below
  154. Since version 1.4.2, phpMyAdmin supports the administration of multiple
  155. MySQL servers. Therefore, a :config:option:`$cfg['Servers']`-array has been
  156. added which contains the login information for the different servers. The
  157. first :config:option:`$cfg['Servers'][$i]['host']` contains the hostname of
  158. the first server, the second :config:option:`$cfg['Servers'][$i]['host']`
  159. the hostname of the second server, etc. In
  160. :file:`libraries/config.default.php`, there is only one section for server
  161. definition, however you can put as many as you need in
  162. :file:`config.inc.php`, copy that block or needed parts (you don't have to
  163. define all settings, just those you need to change).
  164. .. note::
  165. The :config:option:`$cfg['Servers']` array starts with
  166. $cfg['Servers'][1]. Do not use $cfg['Servers'][0]. If you want more
  167. than one server, just copy following section (including $i
  168. incrementation) serveral times. There is no need to define full server
  169. array, just define values you need to change.
  170. .. config:option:: $cfg['Servers'][$i]['host']
  171. :type: string
  172. :default: ``'localhost'``
  173. The hostname or :term:`IP` address of your $i-th MySQL-server. E.g.
  174. ``localhost``.
  175. Possible values are:
  176. * hostname, e.g., ``'localhost'`` or ``'mydb.example.org'``
  177. * IP address, e.g., ``'127.0.0.1'`` or ``'192.168.10.1'``
  178. * IPv6 address, e.g. ``2001:cdba:0000:0000:0000:0000:3257:9652``
  179. * dot - ``'.'``, i.e., use named pipes on windows systems
  180. * empty - ``''``, disables this server
  181. .. note::
  182. The hostname ``localhost`` is handled specially by MySQL and it uses
  183. the socket based connection protocol. To use TCP/IP networking, use an
  184. IP address or hostname such as ``127.0.0.1`` or ``db.example.com``. You
  185. can configure the path to the socket with
  186. :config:option:`$cfg['Servers'][$i]['socket']`.
  187. .. seealso::
  188. :config:option:`$cfg['Servers'][$i]['port']`,
  189. <https://dev.mysql.com/doc/refman/5.7/en/connecting.html>
  190. .. config:option:: $cfg['Servers'][$i]['port']
  191. :type: string
  192. :default: ``''``
  193. The port-number of your $i-th MySQL-server. Default is 3306 (leave
  194. blank).
  195. .. note::
  196. If you use ``localhost`` as the hostname, MySQL ignores this port number
  197. and connects with the socket, so if you want to connect to a port
  198. different from the default port, use ``127.0.0.1`` or the real hostname
  199. in :config:option:`$cfg['Servers'][$i]['host']`.
  200. .. seealso::
  201. :config:option:`$cfg['Servers'][$i]['host']`,
  202. <https://dev.mysql.com/doc/refman/5.7/en/connecting.html>
  203. .. config:option:: $cfg['Servers'][$i]['socket']
  204. :type: string
  205. :default: ``''``
  206. The path to the socket to use. Leave blank for default. To determine
  207. the correct socket, check your MySQL configuration or, using the
  208. :command:`mysql` command–line client, issue the ``status`` command. Among the
  209. resulting information displayed will be the socket used.
  210. .. note::
  211. This takes effect only if :config:option:`$cfg['Servers'][$i]['host']` is set
  212. to ``localhost``.
  213. .. seealso::
  214. :config:option:`$cfg['Servers'][$i]['host']`,
  215. <https://dev.mysql.com/doc/refman/5.7/en/connecting.html>
  216. .. config:option:: $cfg['Servers'][$i]['ssl']
  217. :type: boolean
  218. :default: false
  219. Whether to enable SSL for the connection between phpMyAdmin and the MySQL
  220. server to secure the connection.
  221. When using the ``'mysql'`` extension,
  222. none of the remaining ``'ssl...'`` configuration options apply.
  223. We strongly recommend the ``'mysqli'`` extension when using this option.
  224. .. seealso::
  225. :ref:`ssl`,
  226. :ref:`example-google-ssl`,
  227. :config:option:`$cfg['Servers'][$i]['ssl_key']`,
  228. :config:option:`$cfg['Servers'][$i]['ssl_cert']`,
  229. :config:option:`$cfg['Servers'][$i]['ssl_ca']`,
  230. :config:option:`$cfg['Servers'][$i]['ssl_ca_path']`,
  231. :config:option:`$cfg['Servers'][$i]['ssl_ciphers']`,
  232. :config:option:`$cfg['Servers'][$i]['ssl_verify']`
  233. .. config:option:: $cfg['Servers'][$i]['ssl_key']
  234. :type: string
  235. :default: NULL
  236. Path to the client key file when using SSL for connecting to the MySQL
  237. server. This is used to authenticate the client to the server.
  238. For example:
  239. .. code-block:: php
  240. $cfg['Servers'][$i]['ssl_key'] = '/etc/mysql/server-key.pem';
  241. .. seealso::
  242. :ref:`ssl`,
  243. :ref:`example-google-ssl`,
  244. :config:option:`$cfg['Servers'][$i]['ssl']`,
  245. :config:option:`$cfg['Servers'][$i]['ssl_cert']`,
  246. :config:option:`$cfg['Servers'][$i]['ssl_ca']`,
  247. :config:option:`$cfg['Servers'][$i]['ssl_ca_path']`,
  248. :config:option:`$cfg['Servers'][$i]['ssl_ciphers']`,
  249. :config:option:`$cfg['Servers'][$i]['ssl_verify']`
  250. .. config:option:: $cfg['Servers'][$i]['ssl_cert']
  251. :type: string
  252. :default: NULL
  253. Path to the client certificate file when using SSL for connecting to the
  254. MySQL server. This is used to authenticate the client to the server.
  255. .. seealso::
  256. :ref:`ssl`,
  257. :ref:`example-google-ssl`,
  258. :config:option:`$cfg['Servers'][$i]['ssl']`,
  259. :config:option:`$cfg['Servers'][$i]['ssl_key']`,
  260. :config:option:`$cfg['Servers'][$i]['ssl_ca']`,
  261. :config:option:`$cfg['Servers'][$i]['ssl_ca_path']`,
  262. :config:option:`$cfg['Servers'][$i]['ssl_ciphers']`,
  263. :config:option:`$cfg['Servers'][$i]['ssl_verify']`
  264. .. config:option:: $cfg['Servers'][$i]['ssl_ca']
  265. :type: string
  266. :default: NULL
  267. Path to the CA file when using SSL for connecting to the MySQL server.
  268. .. seealso::
  269. :ref:`ssl`,
  270. :ref:`example-google-ssl`,
  271. :config:option:`$cfg['Servers'][$i]['ssl']`,
  272. :config:option:`$cfg['Servers'][$i]['ssl_key']`,
  273. :config:option:`$cfg['Servers'][$i]['ssl_cert']`,
  274. :config:option:`$cfg['Servers'][$i]['ssl_ca_path']`,
  275. :config:option:`$cfg['Servers'][$i]['ssl_ciphers']`,
  276. :config:option:`$cfg['Servers'][$i]['ssl_verify']`
  277. .. config:option:: $cfg['Servers'][$i]['ssl_ca_path']
  278. :type: string
  279. :default: NULL
  280. Directory containing trusted SSL CA certificates in PEM format.
  281. .. seealso::
  282. :ref:`ssl`,
  283. :ref:`example-google-ssl`,
  284. :config:option:`$cfg['Servers'][$i]['ssl']`,
  285. :config:option:`$cfg['Servers'][$i]['ssl_key']`,
  286. :config:option:`$cfg['Servers'][$i]['ssl_cert']`,
  287. :config:option:`$cfg['Servers'][$i]['ssl_ca']`,
  288. :config:option:`$cfg['Servers'][$i]['ssl_ciphers']`,
  289. :config:option:`$cfg['Servers'][$i]['ssl_verify']`
  290. .. config:option:: $cfg['Servers'][$i]['ssl_ciphers']
  291. :type: string
  292. :default: NULL
  293. List of allowable ciphers for SSL connections to the MySQL server.
  294. .. seealso::
  295. :ref:`ssl`,
  296. :ref:`example-google-ssl`,
  297. :config:option:`$cfg['Servers'][$i]['ssl']`,
  298. :config:option:`$cfg['Servers'][$i]['ssl_key']`,
  299. :config:option:`$cfg['Servers'][$i]['ssl_cert']`,
  300. :config:option:`$cfg['Servers'][$i]['ssl_ca']`,
  301. :config:option:`$cfg['Servers'][$i]['ssl_ca_path']`,
  302. :config:option:`$cfg['Servers'][$i]['ssl_verify']`
  303. .. config:option:: $cfg['Servers'][$i]['ssl_verify']
  304. :type: boolean
  305. :default: true
  306. .. versionadded:: 4.6.0
  307. This is supported since phpMyAdmin 4.6.0.
  308. If your PHP install uses the MySQL Native Driver (mysqlnd), your
  309. MySQL server is 5.6 or later, and your SSL certificate is self-signed,
  310. there is a chance your SSL connection will fail due to validation.
  311. Setting this to ``false`` will disable the validation check.
  312. Since PHP 5.6.0 it also verifies whether server name matches CN of its
  313. certificate. There is currently no way to disable just this check without
  314. disabling complete SSL verification.
  315. .. warning::
  316. Disabling the certificate verification defeats purpose of using SSL.
  317. This will make the connection vulnerable to man in the middle attacks.
  318. .. note::
  319. This flag only works with PHP 5.6.16 or later.
  320. .. seealso::
  321. :ref:`ssl`,
  322. :ref:`example-google-ssl`,
  323. :config:option:`$cfg['Servers'][$i]['ssl']`,
  324. :config:option:`$cfg['Servers'][$i]['ssl_key']`,
  325. :config:option:`$cfg['Servers'][$i]['ssl_cert']`,
  326. :config:option:`$cfg['Servers'][$i]['ssl_ca']`,
  327. :config:option:`$cfg['Servers'][$i]['ssl_ca_path']`,
  328. :config:option:`$cfg['Servers'][$i]['ssl_ciphers']`,
  329. :config:option:`$cfg['Servers'][$i]['ssl_verify']`
  330. .. config:option:: $cfg['Servers'][$i]['connect_type']
  331. :type: string
  332. :default: ``'tcp'``
  333. .. deprecated:: 4.7.0
  334. This setting is no longer used as of 4.7.0, since MySQL decides the
  335. connection type based on host, so it could lead to unexpected results.
  336. Please set :config:option:`$cfg['Servers'][$i]['host']` accordingly
  337. instead.
  338. What type connection to use with the MySQL server. Your options are
  339. ``'socket'`` and ``'tcp'``. It defaults to tcp as that is nearly guaranteed
  340. to be available on all MySQL servers, while sockets are not supported on
  341. some platforms. To use the socket mode, your MySQL server must be on the
  342. same machine as the Web server.
  343. .. config:option:: $cfg['Servers'][$i]['compress']
  344. :type: boolean
  345. :default: false
  346. Whether to use a compressed protocol for the MySQL server connection
  347. or not (experimental).
  348. .. _controlhost:
  349. .. config:option:: $cfg['Servers'][$i]['controlhost']
  350. :type: string
  351. :default: ``''``
  352. Permits to use an alternate host to hold the configuration storage
  353. data.
  354. .. seealso::
  355. :config:option:`$cfg['Servers'][$i]['control_*']`
  356. .. _controlport:
  357. .. config:option:: $cfg['Servers'][$i]['controlport']
  358. :type: string
  359. :default: ``''``
  360. Permits to use an alternate port to connect to the host that
  361. holds the configuration storage.
  362. .. seealso::
  363. :config:option:`$cfg['Servers'][$i]['control_*']`
  364. .. _controluser:
  365. .. config:option:: $cfg['Servers'][$i]['controluser']
  366. :type: string
  367. :default: ``''``
  368. .. config:option:: $cfg['Servers'][$i]['controlpass']
  369. :type: string
  370. :default: ``''``
  371. This special account is used to access :ref:`linked-tables`.
  372. You don't need it in single user case, but if phpMyAdmin is shared it
  373. is recommended to give access to :ref:`linked-tables` only to this user
  374. and configure phpMyAdmin to use it. All users will then be able to use
  375. the features without need to have direct access to :ref:`linked-tables`.
  376. .. versionchanged:: 2.2.5
  377. those were called ``stduser`` and ``stdpass``
  378. .. seealso::
  379. :ref:`setup`,
  380. :ref:`authentication_modes`,
  381. :ref:`linked-tables`,
  382. :config:option:`$cfg['Servers'][$i]['pmadb']`,
  383. :config:option:`$cfg['Servers'][$i]['controlhost']`,
  384. :config:option:`$cfg['Servers'][$i]['controlport']`,
  385. :config:option:`$cfg['Servers'][$i]['control_*']`
  386. .. config:option:: $cfg['Servers'][$i]['control_*']
  387. :type: mixed
  388. .. versionadded:: 4.7.0
  389. You can change any MySQL connection setting for control link (used to
  390. access :ref:`linked-tables`) using configuration prefixed with ``control_``.
  391. This can be used to change any aspect of the control connection, which by
  392. default uses same parameters as the user one.
  393. For example you can configure SSL for the control connection:
  394. .. code-block:: php
  395. // Enable SSL
  396. $cfg['Servers'][$i]['control_ssl'] = true;
  397. // Client secret key
  398. $cfg['Servers'][$i]['control_ssl_key'] = '../client-key.pem';
  399. // Client certificate
  400. $cfg['Servers'][$i]['control_ssl_cert'] = '../client-cert.pem';
  401. // Server certification authority
  402. $cfg['Servers'][$i]['control_ssl_ca'] = '../server-ca.pem';
  403. .. seealso::
  404. :config:option:`$cfg['Servers'][$i]['ssl']`,
  405. :config:option:`$cfg['Servers'][$i]['ssl_key']`,
  406. :config:option:`$cfg['Servers'][$i]['ssl_cert']`,
  407. :config:option:`$cfg['Servers'][$i]['ssl_ca']`,
  408. :config:option:`$cfg['Servers'][$i]['ssl_ca_path']`,
  409. :config:option:`$cfg['Servers'][$i]['ssl_ciphers']`,
  410. :config:option:`$cfg['Servers'][$i]['ssl_verify']`
  411. .. config:option:: $cfg['Servers'][$i]['auth_type']
  412. :type: string
  413. :default: ``'cookie'``
  414. Whether config or cookie or :term:`HTTP` or signon authentication should be
  415. used for this server.
  416. * 'config' authentication (``$auth_type = 'config'``) is the plain old
  417. way: username and password are stored in :file:`config.inc.php`.
  418. * 'cookie' authentication mode (``$auth_type = 'cookie'``) allows you to
  419. log in as any valid MySQL user with the help of cookies.
  420. * 'http' authentication allows you to log in as any
  421. valid MySQL user via HTTP-Auth.
  422. * 'signon' authentication mode (``$auth_type = 'signon'``) allows you to
  423. log in from prepared PHP session data or using supplied PHP script.
  424. .. seealso:: :ref:`authentication_modes`
  425. .. _servers_auth_http_realm:
  426. .. config:option:: $cfg['Servers'][$i]['auth_http_realm']
  427. :type: string
  428. :default: ``''``
  429. When using auth\_type = ``http``, this field allows to define a custom
  430. :term:`HTTP` Basic Auth Realm which will be displayed to the user. If not
  431. explicitly specified in your configuration, a string combined of
  432. "phpMyAdmin " and either :config:option:`$cfg['Servers'][$i]['verbose']` or
  433. :config:option:`$cfg['Servers'][$i]['host']` will be used.
  434. .. _servers_user:
  435. .. config:option:: $cfg['Servers'][$i]['user']
  436. :type: string
  437. :default: ``'root'``
  438. .. config:option:: $cfg['Servers'][$i]['password']
  439. :type: string
  440. :default: ``''``
  441. When using :config:option:`$cfg['Servers'][$i]['auth_type']` set to
  442. 'config', this is the user/password-pair which phpMyAdmin will use to
  443. connect to the MySQL server. This user/password pair is not needed when
  444. :term:`HTTP` or cookie authentication is used
  445. and should be empty.
  446. .. _servers_nopassword:
  447. .. config:option:: $cfg['Servers'][$i]['nopassword']
  448. :type: boolean
  449. :default: false
  450. .. deprecated:: 4.7.0
  451. This setting was removed as it can produce unexpected results.
  452. Allow attempt to log in without password when a login with password
  453. fails. This can be used together with http authentication, when
  454. authentication is done some other way and phpMyAdmin gets user name
  455. from auth and uses empty password for connecting to MySQL. Password
  456. login is still tried first, but as fallback, no password method is
  457. tried.
  458. .. _servers_only_db:
  459. .. config:option:: $cfg['Servers'][$i]['only_db']
  460. :type: string or array
  461. :default: ``''``
  462. If set to a (an array of) database name(s), only this (these)
  463. database(s) will be shown to the user. Since phpMyAdmin 2.2.1,
  464. this/these database(s) name(s) may contain MySQL wildcards characters
  465. ("\_" and "%"): if you want to use literal instances of these
  466. characters, escape them (I.E. use ``'my\_db'`` and not ``'my_db'``).
  467. This setting is an efficient way to lower the server load since the
  468. latter does not need to send MySQL requests to build the available
  469. database list. But **it does not replace the privileges rules of the
  470. MySQL database server**. If set, it just means only these databases
  471. will be displayed but **not that all other databases can't be used.**
  472. An example of using more that one database:
  473. .. code-block:: php
  474. $cfg['Servers'][$i]['only_db'] = array('db1', 'db2');
  475. .. versionchanged:: 4.0.0
  476. Previous versions permitted to specify the display order of
  477. the database names via this directive.
  478. .. config:option:: $cfg['Servers'][$i]['hide_db']
  479. :type: string
  480. :default: ``''``
  481. Regular expression for hiding some databases from unprivileged users.
  482. This only hides them from listing, but a user is still able to access
  483. them (using, for example, the SQL query area). To limit access, use
  484. the MySQL privilege system. For example, to hide all databases
  485. starting with the letter "a", use
  486. .. code-block:: php
  487. $cfg['Servers'][$i]['hide_db'] = '^a';
  488. and to hide both "db1" and "db2" use
  489. .. code-block:: php
  490. $cfg['Servers'][$i]['hide_db'] = '^(db1|db2)$';
  491. More information on regular expressions can be found in the `PCRE
  492. pattern syntax
  493. <https://secure.php.net/manual/en/reference.pcre.pattern.syntax.php>`_ portion
  494. of the PHP reference manual.
  495. .. config:option:: $cfg['Servers'][$i]['verbose']
  496. :type: string
  497. :default: ``''``
  498. Only useful when using phpMyAdmin with multiple server entries. If
  499. set, this string will be displayed instead of the hostname in the
  500. pull-down menu on the main page. This can be useful if you want to
  501. show only certain databases on your system, for example. For HTTP
  502. auth, all non-US-ASCII characters will be stripped.
  503. .. config:option:: $cfg['Servers'][$i]['extension']
  504. :type: string
  505. :default: ``'mysqli'``
  506. The PHP MySQL extension to use (``mysql`` or ``mysqli``).
  507. It is recommended to use ``mysqli`` in all installations.
  508. .. config:option:: $cfg['Servers'][$i]['pmadb']
  509. :type: string
  510. :default: ``''``
  511. The name of the database containing the phpMyAdmin configuration
  512. storage.
  513. See the :ref:`linked-tables` section in this document to see the benefits of
  514. this feature, and for a quick way of creating this database and the needed
  515. tables.
  516. If you are the only user of this phpMyAdmin installation, you can use your
  517. current database to store those special tables; in this case, just put your
  518. current database name in :config:option:`$cfg['Servers'][$i]['pmadb']`. For a
  519. multi-user installation, set this parameter to the name of your central
  520. database containing the phpMyAdmin configuration storage.
  521. .. _bookmark:
  522. .. config:option:: $cfg['Servers'][$i]['bookmarktable']
  523. :type: string or false
  524. :default: ``''``
  525. Since release 2.2.0 phpMyAdmin allows users to bookmark queries. This
  526. can be useful for queries you often run. To allow the usage of this
  527. functionality:
  528. * set up :config:option:`$cfg['Servers'][$i]['pmadb']` and the phpMyAdmin configuration storage
  529. * enter the table name in :config:option:`$cfg['Servers'][$i]['bookmarktable']`
  530. This feature can be disabled by setting the configuration to ``false``.
  531. .. _relation:
  532. .. config:option:: $cfg['Servers'][$i]['relation']
  533. :type: string or false
  534. :default: ``''``
  535. Since release 2.2.4 you can describe, in a special 'relation' table,
  536. which column is a key in another table (a foreign key). phpMyAdmin
  537. currently uses this to:
  538. * make clickable, when you browse the master table, the data values that
  539. point to the foreign table;
  540. * display in an optional tool-tip the "display column" when browsing the
  541. master table, if you move the mouse to a column containing a foreign
  542. key (use also the 'table\_info' table); (see :ref:`faqdisplay`)
  543. * in edit/insert mode, display a drop-down list of possible foreign keys
  544. (key value and "display column" are shown) (see :ref:`faq6_21`)
  545. * display links on the table properties page, to check referential
  546. integrity (display missing foreign keys) for each described key;
  547. * in query-by-example, create automatic joins (see :ref:`faq6_6`)
  548. * enable you to get a :term:`PDF` schema of
  549. your database (also uses the table\_coords table).
  550. The keys can be numeric or character.
  551. To allow the usage of this functionality:
  552. * set up :config:option:`$cfg['Servers'][$i]['pmadb']` and the phpMyAdmin configuration storage
  553. * put the relation table name in :config:option:`$cfg['Servers'][$i]['relation']`
  554. * now as normal user open phpMyAdmin and for each one of your tables
  555. where you want to use this feature, click :guilabel:`Structure/Relation view/`
  556. and choose foreign columns.
  557. This feature can be disabled by setting the configuration to ``false``.
  558. .. note::
  559. In the current version, ``master_db`` must be the same as ``foreign_db``.
  560. Those columns have been put in future development of the cross-db
  561. relations.
  562. .. _table_info:
  563. .. config:option:: $cfg['Servers'][$i]['table_info']
  564. :type: string or false
  565. :default: ``''``
  566. Since release 2.3.0 you can describe, in a special 'table\_info'
  567. table, which column is to be displayed as a tool-tip when moving the
  568. cursor over the corresponding key. This configuration variable will
  569. hold the name of this special table. To allow the usage of this
  570. functionality:
  571. * set up :config:option:`$cfg['Servers'][$i]['pmadb']` and the phpMyAdmin configuration storage
  572. * put the table name in :config:option:`$cfg['Servers'][$i]['table\_info']` (e.g.
  573. ``pma__table_info``)
  574. * then for each table where you want to use this feature, click
  575. "Structure/Relation view/Choose column to display" to choose the
  576. column.
  577. This feature can be disabled by setting the configuration to ``false``.
  578. .. seealso:: :ref:`faqdisplay`
  579. .. _table_coords:
  580. .. config:option:: $cfg['Servers'][$i]['table_coords']
  581. :type: string or false
  582. :default: ``''``
  583. The designer feature can save your page layout; by pressing the "Save page" or "Save page as"
  584. button in the expanding designer menu, you can customize the layout and have it loaded the next
  585. time you use the designer. That layout is stored in this table. Furthermore, this table is also
  586. required for using the PDF relation export feature, see
  587. :config:option:`$cfg['Servers'][$i]['pdf\_pages']` for additional details.
  588. .. config:option:: $cfg['Servers'][$i]['pdf_pages']
  589. :type: string or false
  590. :default: ``''``
  591. Since release 2.3.0 you can have phpMyAdmin create :term:`PDF` pages
  592. showing the relations between your tables. Further, the designer interface
  593. permits visually managing the relations. To do this it needs two tables
  594. "pdf\_pages" (storing information about the available :term:`PDF` pages)
  595. and "table\_coords" (storing coordinates where each table will be placed on
  596. a :term:`PDF` schema output). You must be using the "relation" feature.
  597. To allow the usage of this functionality:
  598. * set up :config:option:`$cfg['Servers'][$i]['pmadb']` and the phpMyAdmin configuration storage
  599. * put the correct table names in
  600. :config:option:`$cfg['Servers'][$i]['table\_coords']` and
  601. :config:option:`$cfg['Servers'][$i]['pdf\_pages']`
  602. This feature can be disabled by setting either of the configurations to ``false``.
  603. .. seealso:: :ref:`faqpdf`.
  604. .. _col_com:
  605. .. config:option:: $cfg['Servers'][$i]['column_info']
  606. :type: string or false
  607. :default: ``''``
  608. This part requires a content update! Since release 2.3.0 you can
  609. store comments to describe each column for each table. These will then
  610. be shown on the "printview".
  611. Starting with release 2.5.0, comments are consequently used on the table
  612. property pages and table browse view, showing up as tool-tips above the
  613. column name (properties page) or embedded within the header of table in
  614. browse view. They can also be shown in a table dump. Please see the
  615. relevant configuration directives later on.
  616. Also new in release 2.5.0 is a MIME- transformation system which is also
  617. based on the following table structure. See :ref:`transformations` for
  618. further information. To use the MIME- transformation system, your
  619. column\_info table has to have the three new columns 'mimetype',
  620. 'transformation', 'transformation\_options'.
  621. Starting with release 4.3.0, a new input-oriented transformation system
  622. has been introduced. Also, backward compatibility code used in the old
  623. transformations system was removed. As a result, an update to column\_info
  624. table is necessary for previous transformations and the new input-oriented
  625. transformation system to work. phpMyAdmin will upgrade it automatically
  626. for you by analyzing your current column\_info table structure.
  627. However, if something goes wrong with the auto-upgrade then you can
  628. use the SQL script found in ``./sql/upgrade_column_info_4_3_0+.sql``
  629. to upgrade it manually.
  630. To allow the usage of this functionality:
  631. * set up :config:option:`$cfg['Servers'][$i]['pmadb']` and the phpMyAdmin configuration storage
  632. * put the table name in :config:option:`$cfg['Servers'][$i]['column\_info']` (e.g.
  633. ``pma__column_info``)
  634. * to update your PRE-2.5.0 Column\_comments table use this: and
  635. remember that the Variable in :file:`config.inc.php` has been renamed from
  636. :samp:`$cfg['Servers'][$i]['column\_comments']` to
  637. :config:option:`$cfg['Servers'][$i]['column\_info']`
  638. .. code-block:: mysql
  639. ALTER TABLE `pma__column_comments`
  640. ADD `mimetype` VARCHAR( 255 ) NOT NULL,
  641. ADD `transformation` VARCHAR( 255 ) NOT NULL,
  642. ADD `transformation_options` VARCHAR( 255 ) NOT NULL;
  643. * to update your PRE-4.3.0 Column\_info table manually use this
  644. ``./sql/upgrade_column_info_4_3_0+.sql`` SQL script.
  645. This feature can be disabled by setting the configuration to ``false``.
  646. .. note::
  647. For auto-upgrade functionality to work, your
  648. :config:option:`$cfg['Servers'][$i]['controluser']` must have ALTER privilege on
  649. ``phpmyadmin`` database. See the `MySQL documentation for GRANT
  650. <https://dev.mysql.com/doc/refman/5.7/en/grant.html>`_ on how to
  651. ``GRANT`` privileges to a user.
  652. .. _history:
  653. .. config:option:: $cfg['Servers'][$i]['history']
  654. :type: string or false
  655. :default: ``''``
  656. Since release 2.5.0 you can store your :term:`SQL` history, which means all
  657. queries you entered manually into the phpMyAdmin interface. If you don't
  658. want to use a table-based history, you can use the JavaScript-based
  659. history.
  660. Using that, all your history items are deleted when closing the window.
  661. Using :config:option:`$cfg['QueryHistoryMax']` you can specify an amount of
  662. history items you want to have on hold. On every login, this list gets cut
  663. to the maximum amount.
  664. The query history is only available if JavaScript is enabled in
  665. your browser.
  666. To allow the usage of this functionality:
  667. * set up :config:option:`$cfg['Servers'][$i]['pmadb']` and the phpMyAdmin configuration storage
  668. * put the table name in :config:option:`$cfg['Servers'][$i]['history']` (e.g.
  669. ``pma__history``)
  670. This feature can be disabled by setting the configuration to ``false``.
  671. .. _recent:
  672. .. config:option:: $cfg['Servers'][$i]['recent']
  673. :type: string or false
  674. :default: ``''``
  675. Since release 3.5.0 you can show recently used tables in the
  676. navigation panel. It helps you to jump across table directly, without
  677. the need to select the database, and then select the table. Using
  678. :config:option:`$cfg['NumRecentTables']` you can configure the maximum number
  679. of recent tables shown. When you select a table from the list, it will jump to
  680. the page specified in :config:option:`$cfg['NavigationTreeDefaultTabTable']`.
  681. Without configuring the storage, you can still access the recently used tables,
  682. but it will disappear after you logout.
  683. To allow the usage of this functionality persistently:
  684. * set up :config:option:`$cfg['Servers'][$i]['pmadb']` and the phpMyAdmin configuration storage
  685. * put the table name in :config:option:`$cfg['Servers'][$i]['recent']` (e.g.
  686. ``pma__recent``)
  687. This feature can be disabled by setting the configuration to ``false``.
  688. .. _favorite:
  689. .. config:option:: $cfg['Servers'][$i]['favorite']
  690. :type: string or false
  691. :default: ``''``
  692. Since release 4.2.0 you can show a list of selected tables in the
  693. navigation panel. It helps you to jump to the table directly, without
  694. the need to select the database, and then select the table. When you
  695. select a table from the list, it will jump to the page specified in
  696. :config:option:`$cfg['NavigationTreeDefaultTabTable']`.
  697. You can add tables to this list or remove tables from it in database
  698. structure page by clicking on the star icons next to table names. Using
  699. :config:option:`$cfg['NumFavoriteTables']` you can configure the maximum
  700. number of favorite tables shown.
  701. Without configuring the storage, you can still access the favorite tables,
  702. but it will disappear after you logout.
  703. To allow the usage of this functionality persistently:
  704. * set up :config:option:`$cfg['Servers'][$i]['pmadb']` and the phpMyAdmin configuration storage
  705. * put the table name in :config:option:`$cfg['Servers'][$i]['favorite']` (e.g.
  706. ``pma__favorite``)
  707. This feature can be disabled by setting the configuration to ``false``.
  708. .. _table_uiprefs:
  709. .. config:option:: $cfg['Servers'][$i]['table_uiprefs']
  710. :type: string or false
  711. :default: ``''``
  712. Since release 3.5.0 phpMyAdmin can be configured to remember several
  713. things (sorted column :config:option:`$cfg['RememberSorting']`, column order,
  714. and column visibility from a database table) for browsing tables. Without
  715. configuring the storage, these features still can be used, but the values will
  716. disappear after you logout.
  717. To allow the usage of these functionality persistently:
  718. * set up :config:option:`$cfg['Servers'][$i]['pmadb']` and the phpMyAdmin configuration storage
  719. * put the table name in :config:option:`$cfg['Servers'][$i]['table\_uiprefs']` (e.g.
  720. ``pma__table_uiprefs``)
  721. This feature can be disabled by setting the configuration to ``false``.
  722. .. config:option:: $cfg['Servers'][$i]['users']
  723. :type: string or false
  724. :default: ``''``
  725. .. config:option:: $cfg['Servers'][$i]['usergroups']
  726. :type: string or false
  727. :default: ``''``
  728. Since release 4.1.0 you can create different user groups with menu items
  729. attached to them. Users can be assigned to these groups and the logged in
  730. user would only see menu items configured to the usergroup he is assigned to.
  731. To do this it needs two tables "usergroups" (storing allowed menu items for each
  732. user group) and "users" (storing users and their assignments to user groups).
  733. To allow the usage of this functionality:
  734. * set up :config:option:`$cfg['Servers'][$i]['pmadb']` and the phpMyAdmin configuration storage
  735. * put the correct table names in
  736. :config:option:`$cfg['Servers'][$i]['users']` (e.g. ``pma__users``) and
  737. :config:option:`$cfg['Servers'][$i]['usergroups']` (e.g. ``pma__usergroups``)
  738. This feature can be disabled by setting either of the configurations to ``false``.
  739. .. seealso:: :ref:`configurablemenus`
  740. .. _navigationhiding:
  741. .. config:option:: $cfg['Servers'][$i]['navigationhiding']
  742. :type: string or false
  743. :default: ``''``
  744. Since release 4.1.0 you can hide/show items in the navigation tree.
  745. To allow the usage of this functionality:
  746. * set up :config:option:`$cfg['Servers'][$i]['pmadb']` and the phpMyAdmin configuration storage
  747. * put the table name in :config:option:`$cfg['Servers'][$i]['navigationhiding']` (e.g.
  748. ``pma__navigationhiding``)
  749. This feature can be disabled by setting the configuration to ``false``.
  750. .. _central_columns:
  751. .. config:option:: $cfg['Servers'][$i]['central_columns']
  752. :type: string or false
  753. :default: ``''``
  754. Since release 4.3.0 you can have a central list of columns per database.
  755. You can add/remove columns to the list as per your requirement. These columns
  756. in the central list will be available to use while you create a new column for
  757. a table or create a table itself. You can select a column from central list
  758. while creating a new column, it will save you from writing the same column definition
  759. over again or from writing different names for similar column.
  760. To allow the usage of this functionality:
  761. * set up :config:option:`$cfg['Servers'][$i]['pmadb']` and the phpMyAdmin configuration storage
  762. * put the table name in :config:option:`$cfg['Servers'][$i]['central_columns']` (e.g.
  763. ``pma__central_columns``)
  764. This feature can be disabled by setting the configuration to ``false``.
  765. .. _designer_settings:
  766. .. config:option:: $cfg['Servers'][$i]['designer_settings']
  767. :type: string or false
  768. :default: ``''``
  769. Since release 4.5.0 your designer settings can be remembered.
  770. Your choice regarding 'Angular/Direct Links', 'Snap to Grid', 'Toggle Relation Lines',
  771. 'Small/Big All', 'Move Menu' and 'Pin Text' can be remembered persistently.
  772. To allow the usage of this functionality:
  773. * set up :config:option:`$cfg['Servers'][$i]['pmadb']` and the phpMyAdmin configuration storage
  774. * put the table name in :config:option:`$cfg['Servers'][$i]['designer_settings']` (e.g.
  775. ``pma__designer_settings``)
  776. This feature can be disabled by setting the configuration to ``false``.
  777. .. _savedsearches:
  778. .. config:option:: $cfg['Servers'][$i]['savedsearches']
  779. :type: string or false
  780. :default: ``''``
  781. Since release 4.2.0 you can save and load query-by-example searches from the Database > Query panel.
  782. To allow the usage of this functionality:
  783. * set up :config:option:`$cfg['Servers'][$i]['pmadb']` and the phpMyAdmin configuration storage
  784. * put the table name in :config:option:`$cfg['Servers'][$i]['savedsearches']` (e.g.
  785. ``pma__savedsearches``)
  786. This feature can be disabled by setting the configuration to ``false``.
  787. .. _export_templates:
  788. .. config:option:: $cfg['Servers'][$i]['export_templates']
  789. :type: string or false
  790. :default: ``''``
  791. Since release 4.5.0 you can save and load export templates.
  792. To allow the usage of this functionality:
  793. * set up :config:option:`$cfg['Servers'][$i]['pmadb']` and the phpMyAdmin configuration storage
  794. * put the table name in :config:option:`$cfg['Servers'][$i]['export_templates']` (e.g.
  795. ``pma__export_templates``)
  796. This feature can be disabled by setting the configuration to ``false``.
  797. .. _tracking:
  798. .. config:option:: $cfg['Servers'][$i]['tracking']
  799. :type: string or false
  800. :default: ``''``
  801. Since release 3.3.x a tracking mechanism is available. It helps you to
  802. track every :term:`SQL` command which is
  803. executed by phpMyAdmin. The mechanism supports logging of data
  804. manipulation and data definition statements. After enabling it you can
  805. create versions of tables.
  806. The creation of a version has two effects:
  807. * phpMyAdmin saves a snapshot of the table, including structure and
  808. indexes.
  809. * phpMyAdmin logs all commands which change the structure and/or data of
  810. the table and links these commands with the version number.
  811. Of course you can view the tracked changes. On the :guilabel:`Tracking`
  812. page a complete report is available for every version. For the report you
  813. can use filters, for example you can get a list of statements within a date
  814. range. When you want to filter usernames you can enter \* for all names or
  815. you enter a list of names separated by ','. In addition you can export the
  816. (filtered) report to a file or to a temporary database.
  817. To allow the usage of this functionality:
  818. * set up :config:option:`$cfg['Servers'][$i]['pmadb']` and the phpMyAdmin configuration storage
  819. * put the table name in :config:option:`$cfg['Servers'][$i]['tracking']` (e.g.
  820. ``pma__tracking``)
  821. This feature can be disabled by setting the configuration to ``false``.
  822. .. _tracking2:
  823. .. config:option:: $cfg['Servers'][$i]['tracking_version_auto_create']
  824. :type: boolean
  825. :default: false
  826. Whether the tracking mechanism creates versions for tables and views
  827. automatically.
  828. If this is set to true and you create a table or view with
  829. * CREATE TABLE ...
  830. * CREATE VIEW ...
  831. and no version exists for it, the mechanism will create a version for
  832. you automatically.
  833. .. _tracking3:
  834. .. config:option:: $cfg['Servers'][$i]['tracking_default_statements']
  835. :type: string
  836. :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'``
  837. Defines the list of statements the auto-creation uses for new
  838. versions.
  839. .. _tracking4:
  840. .. config:option:: $cfg['Servers'][$i]['tracking_add_drop_view']
  841. :type: boolean
  842. :default: true
  843. Whether a DROP VIEW IF EXISTS statement will be added as first line to
  844. the log when creating a view.
  845. .. _tracking5:
  846. .. config:option:: $cfg['Servers'][$i]['tracking_add_drop_table']
  847. :type: boolean
  848. :default: true
  849. Whether a DROP TABLE IF EXISTS statement will be added as first line
  850. to the log when creating a table.
  851. .. _tracking6:
  852. .. config:option:: $cfg['Servers'][$i]['tracking_add_drop_database']
  853. :type: boolean
  854. :default: true
  855. Whether a DROP DATABASE IF EXISTS statement will be added as first
  856. line to the log when creating a database.
  857. .. _userconfig:
  858. .. config:option:: $cfg['Servers'][$i]['userconfig']
  859. :type: string or false
  860. :default: ``''``
  861. Since release 3.4.x phpMyAdmin allows users to set most preferences by
  862. themselves and store them in the database.
  863. If you don't allow for storing preferences in
  864. :config:option:`$cfg['Servers'][$i]['pmadb']`, users can still personalize
  865. phpMyAdmin, but settings will be saved in browser's local storage, or, it
  866. is is unavailable, until the end of session.
  867. To allow the usage of this functionality:
  868. * set up :config:option:`$cfg['Servers'][$i]['pmadb']` and the phpMyAdmin configuration storage
  869. * put the table name in :config:option:`$cfg['Servers'][$i]['userconfig']`
  870. This feature can be disabled by setting the configuration to ``false``.
  871. .. config:option:: $cfg['Servers'][$i]['MaxTableUiprefs']
  872. :type: integer
  873. :default: 100
  874. Maximum number of rows saved in
  875. :config:option:`$cfg['Servers'][$i]['table_uiprefs']` table.
  876. When tables are dropped or renamed,
  877. :config:option:`$cfg['Servers'][$i]['table_uiprefs']` may contain invalid data
  878. (referring to tables which no longer exist). We only keep this number of newest
  879. rows in :config:option:`$cfg['Servers'][$i]['table_uiprefs']` and automatically
  880. delete older rows.
  881. .. config:option:: $cfg['Servers'][$i]['SessionTimeZone']
  882. :type: string
  883. :default: ``''``
  884. Sets the time zone used by phpMyAdmin. Leave blank to use the time zone of your
  885. database server. Possible values are explained at
  886. https://dev.mysql.com/doc/refman/5.7/en/time-zone-support.html
  887. This is useful when your database server uses a time zone which is different from the
  888. time zone you want to use in phpMyAdmin.
  889. .. config:option:: $cfg['Servers'][$i]['AllowRoot']
  890. :type: boolean
  891. :default: true
  892. Whether to allow root access. This is just a shortcut for the
  893. :config:option:`$cfg['Servers'][$i]['AllowDeny']['rules']` below.
  894. .. config:option:: $cfg['Servers'][$i]['AllowNoPassword']
  895. :type: boolean
  896. :default: false
  897. Whether to allow logins without a password. The default value of
  898. ``false`` for this parameter prevents unintended access to a MySQL
  899. server with was left with an empty password for root or on which an
  900. anonymous (blank) user is defined.
  901. .. _servers_allowdeny_order:
  902. .. config:option:: $cfg['Servers'][$i]['AllowDeny']['order']
  903. :type: string
  904. :default: ``''``
  905. If your rule order is empty, then :term:`IP`
  906. authorization is disabled.
  907. If your rule order is set to
  908. ``'deny,allow'`` then the system applies all deny rules followed by
  909. allow rules. Access is allowed by default. Any client which does not
  910. match a Deny command or does match an Allow command will be allowed
  911. access to the server.
  912. If your rule order is set to ``'allow,deny'``
  913. then the system applies all allow rules followed by deny rules. Access
  914. is denied by default. Any client which does not match an Allow
  915. directive or does match a Deny directive will be denied access to the
  916. server.
  917. If your rule order is set to ``'explicit'``, authorization is
  918. performed in a similar fashion to rule order 'deny,allow', with the
  919. added restriction that your host/username combination **must** be
  920. listed in the *allow* rules, and not listed in the *deny* rules. This
  921. is the **most** secure means of using Allow/Deny rules, and was
  922. available in Apache by specifying allow and deny rules without setting
  923. any order.
  924. Please also see :config:option:`$cfg['TrustedProxies']` for
  925. detecting IP address behind proxies.
  926. .. _servers_allowdeny_rules:
  927. .. config:option:: $cfg['Servers'][$i]['AllowDeny']['rules']
  928. :type: array of strings
  929. :default: array()
  930. The general format for the rules is as such:
  931. .. code-block:: none
  932. <'allow' | 'deny'> <username> [from] <ipmask>
  933. If you wish to match all users, it is possible to use a ``'%'`` as a
  934. wildcard in the *username* field.
  935. There are a few shortcuts you can
  936. use in the *ipmask* field as well (please note that those containing
  937. SERVER\_ADDRESS might not be available on all webservers):
  938. .. code-block:: none
  939. 'all' -> 0.0.0.0/0
  940. 'localhost' -> 127.0.0.1/8
  941. 'localnetA' -> SERVER_ADDRESS/8
  942. 'localnetB' -> SERVER_ADDRESS/16
  943. 'localnetC' -> SERVER_ADDRESS/24
  944. Having an empty rule list is equivalent to either using ``'allow %
  945. from all'`` if your rule order is set to ``'deny,allow'`` or ``'deny %
  946. from all'`` if your rule order is set to ``'allow,deny'`` or
  947. ``'explicit'``.
  948. For the :term:`IP address` matching
  949. system, the following work:
  950. * ``xxx.xxx.xxx.xxx`` (an exact :term:`IP address`)
  951. * ``xxx.xxx.xxx.[yyy-zzz]`` (an :term:`IP address` range)
  952. * ``xxx.xxx.xxx.xxx/nn`` (CIDR, Classless Inter-Domain Routing type :term:`IP` addresses)
  953. But the following does not work:
  954. * ``xxx.xxx.xxx.xx[yyy-zzz]`` (partial :term:`IP` address range)
  955. For :term:`IPv6` addresses, the following work:
  956. * ``xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx`` (an exact :term:`IPv6` address)
  957. * ``xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:[yyyy-zzzz]`` (an :term:`IPv6` address range)
  958. * ``xxxx:xxxx:xxxx:xxxx/nn`` (CIDR, Classless Inter-Domain Routing type :term:`IPv6` addresses)
  959. But the following does not work:
  960. * ``xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xx[yyy-zzz]`` (partial :term:`IPv6` address range)
  961. .. config:option:: $cfg['Servers'][$i]['DisableIS']
  962. :type: boolean
  963. :default: false
  964. Disable using ``INFORMATION_SCHEMA`` to retrieve information (use
  965. ``SHOW`` commands instead), because of speed issues when many
  966. databases are present.
  967. .. note::
  968. Enabling this option might give you a big performance boost on older
  969. MySQL servers.
  970. .. config:option:: $cfg['Servers'][$i]['SignonScript']
  971. :type: string
  972. :default: ``''``
  973. .. versionadded:: 3.5.0
  974. Name of PHP script to be sourced and executed to obtain login
  975. credentials. This is alternative approach to session based single
  976. signon. The script has to provide a function called
  977. ``get_login_credentials`` which returns list of username and
  978. password, accepting single parameter of existing username (can be
  979. empty). See :file:`examples/signon-script.php` for an example:
  980. .. literalinclude:: ../examples/signon-script.php
  981. :language: php
  982. .. seealso:: :ref:`auth_signon`
  983. .. config:option:: $cfg['Servers'][$i]['SignonSession']
  984. :type: string
  985. :default: ``''``
  986. Name of session which will be used for signon authentication method.
  987. You should use something different than ``phpMyAdmin``, because this
  988. is session which phpMyAdmin uses internally. Takes effect only if
  989. :config:option:`$cfg['Servers'][$i]['SignonScript']` is not configured.
  990. .. seealso:: :ref:`auth_signon`
  991. .. config:option:: $cfg['Servers'][$i]['SignonCookieParams']
  992. :type: array
  993. :default: ``array()``
  994. .. versionadded:: 4.7.0
  995. An associative array of session cookie parameters of other authentication system.
  996. It is not needed if the other system doesn't use session_set_cookie_params().
  997. Keys should include 'lifetime', 'path', 'domain', 'secure' or 'httponly'.
  998. Valid values are mentioned in `session_get_cookie_params <https://secure.php.net/manual/en/
  999. function.session-get-cookie-params.php>`_, they should be set to same values as the
  1000. other application uses. Takes effect only if
  1001. :config:option:`$cfg['Servers'][$i]['SignonScript']` is not configured.
  1002. .. seealso:: :ref:`auth_signon`
  1003. .. config:option:: $cfg['Servers'][$i]['SignonURL']
  1004. :type: string
  1005. :default: ``''``
  1006. :term:`URL` where user will be redirected
  1007. to log in for signon authentication method. Should be absolute
  1008. including protocol.
  1009. .. seealso:: :ref:`auth_signon`
  1010. .. config:option:: $cfg['Servers'][$i]['LogoutURL']
  1011. :type: string
  1012. :default: ``''``
  1013. :term:`URL` where user will be redirected
  1014. after logout (doesn't affect config authentication method). Should be
  1015. absolute including protocol.
  1016. Generic settings
  1017. ----------------
  1018. .. config:option:: $cfg['DisableShortcutKeys']
  1019. :type: boolean
  1020. :default: false
  1021. You can disable phpMyAdmin shortcut keys by setting :config:option:`$cfg['DisableShortcutKeys']` to false.
  1022. .. config:option:: $cfg['ServerDefault']
  1023. :type: integer
  1024. :default: 1
  1025. If you have more than one server configured, you can set
  1026. :config:option:`$cfg['ServerDefault']` to any one of them to autoconnect to that
  1027. server when phpMyAdmin is started, or set it to 0 to be given a list
  1028. of servers without logging in.
  1029. If you have only one server configured,
  1030. :config:option:`$cfg['ServerDefault']` MUST be set to that server.
  1031. .. config:option:: $cfg['VersionCheck']
  1032. :type: boolean
  1033. :default: true
  1034. Enables check for latest versions using JavaScript on the main phpMyAdmin
  1035. page or by directly accessing :file:`version_check.php`.
  1036. .. note::
  1037. This setting can be adjusted by your vendor.
  1038. .. config:option:: $cfg['ProxyUrl']
  1039. :type: string
  1040. :default: ""
  1041. The url of the proxy to be used when phpmyadmin needs to access the outside
  1042. internet such as when retrieving the latest version info or submitting error
  1043. reports. You need this if the server where phpMyAdmin is installed does not
  1044. have direct access to the internet.
  1045. The format is: "hostname:portnumber"
  1046. .. config:option:: $cfg['ProxyUser']
  1047. :type: string
  1048. :default: ""
  1049. The username for authenticating with the proxy. By default, no
  1050. authentication is performed. If a username is supplied, Basic
  1051. Authentication will be performed. No other types of authentication
  1052. are currently supported.
  1053. .. config:option:: $cfg['ProxyPass']
  1054. :type: string
  1055. :default: ""
  1056. The password for authenticating with the proxy.
  1057. .. config:option:: $cfg['MaxDbList']
  1058. :type: integer
  1059. :default: 100
  1060. The maximum number of database names to be displayed in the main panel's
  1061. database list.
  1062. .. config:option:: $cfg['MaxTableList']
  1063. :type: integer
  1064. :default: 250
  1065. The maximum number of table names to be displayed in the main panel's
  1066. list (except on the Export page).
  1067. .. config:option:: $cfg['ShowHint']
  1068. :type: boolean
  1069. :default: true
  1070. Whether or not to show hints (for example, hints when hovering over
  1071. table headers).
  1072. .. config:option:: $cfg['MaxCharactersInDisplayedSQL']
  1073. :type: integer
  1074. :default: 1000
  1075. The maximum number of characters when a :term:`SQL` query is displayed. The
  1076. default limit of 1000 should be correct to avoid the display of tons of
  1077. hexadecimal codes that represent BLOBs, but some users have real
  1078. :term:`SQL` queries that are longer than 1000 characters. Also, if a
  1079. query's length exceeds this limit, this query is not saved in the history.
  1080. .. config:option:: $cfg['PersistentConnections']
  1081. :type: boolean
  1082. :default: false
  1083. Whether `persistent connections <https://secure.php.net/manual/en/features
  1084. .persistent-connections.php>`_ should be used or not. Works with
  1085. following extensions:
  1086. * mysql (`mysql\_pconnect <https://secure.php.net/manual/en/function.mysql-
  1087. pconnect.php>`_),
  1088. * mysqli (requires PHP 5.3.0 or newer, `more information
  1089. <https://secure.php.net/manual/en/mysqli.persistconns.php>`_).
  1090. .. config:option:: $cfg['ForceSSL']
  1091. :type: boolean
  1092. :default: false
  1093. .. deprecated:: 4.6.0
  1094. This setting is no longer available since phpMyAdmin 4.6.0. Please
  1095. adjust your webserver instead.
  1096. Whether to force using https while accessing phpMyAdmin. In a reverse
  1097. proxy setup, setting this to ``true`` is not supported.
  1098. .. note::
  1099. In some setups (like separate SSL proxy or load balancer) you might
  1100. have to set :config:option:`$cfg['PmaAbsoluteUri']` for correct
  1101. redirection.
  1102. .. config:option:: $cfg['ExecTimeLimit']
  1103. :type: integer [number of seconds]
  1104. :default: 300
  1105. Set the number of seconds a script is allowed to run. If seconds is
  1106. set to zero, no time limit is imposed. This setting is used while
  1107. importing/exporting dump files but has
  1108. no effect when PHP is running in safe mode.
  1109. .. config:option:: $cfg['SessionSavePath']
  1110. :type: string
  1111. :default: ``''``
  1112. Path for storing session data (`session\_save\_path PHP parameter
  1113. <https://secure.php.net/session_save_path>`_).
  1114. .. warning::
  1115. This folder should not be publicly accessible through the webserver,
  1116. otherwise you risk leaking private data from your session.
  1117. .. config:option:: $cfg['MemoryLimit']
  1118. :type: string [number of bytes]
  1119. :default: ``'-1'``
  1120. Set the number of bytes a script is allowed to allocate. If set to
  1121. ``'-1'``, no limit is imposed. If set to ``'0'``, no change of the
  1122. memory limit is attempted and the :file:`php.ini` ``memory_limit`` is
  1123. used.
  1124. This setting is used while importing/exporting dump files
  1125. so you definitely don't want to put here a too low
  1126. value. It has no effect when PHP is running in safe mode.
  1127. You can also use any string as in :file:`php.ini`, eg. '16M'. Ensure you
  1128. don't omit the suffix (16 means 16 bytes!)
  1129. .. config:option:: $cfg['SkipLockedTables']
  1130. :type: boolean
  1131. :default: false
  1132. Mark used tables and make it possible to show databases with locked
  1133. tables (since MySQL 3.23.30).
  1134. .. config:option:: $cfg['ShowSQL']
  1135. :type: boolean
  1136. :default: true
  1137. Defines whether :term:`SQL` queries
  1138. generated by phpMyAdmin should be displayed or not.
  1139. .. config:option:: $cfg['RetainQueryBox']
  1140. :type: boolean
  1141. :default: false
  1142. Defines whether the :term:`SQL` query box
  1143. should be kept displayed after its submission.
  1144. .. config:option:: $cfg['CodemirrorEnable']
  1145. :type: boolean
  1146. :default: true
  1147. Defines whether to use a Javascript code editor for SQL query boxes.
  1148. CodeMirror provides syntax highlighting and line numbers. However,
  1149. middle-clicking for pasting the clipboard contents in some Linux
  1150. distributions (such as Ubuntu) is not supported by all browsers.
  1151. .. config:option:: $cfg['DefaultForeignKeyChecks']
  1152. :type: string
  1153. :default: ``'default'``
  1154. Default value of the checkbox for foreign key checks, to disable/enable
  1155. foreign key checks for certain queries. The possible values are ``'default'``,
  1156. ``'enable'`` or ``'disable'``. If set to ``'default'``, the value of the
  1157. MySQL variable ``FOREIGN_KEY_CHECKS`` is used.
  1158. .. config:option:: $cfg['AllowUserDropDatabase']
  1159. :type: boolean
  1160. :default: false
  1161. .. warning::
  1162. This is not a security measure as there will be always ways to
  1163. circumvent this. If you want to prohibit users from dropping databases,
  1164. revoke their corresponding DROP privilege.
  1165. Defines whether normal users (non-administrator) are allowed to delete
  1166. their own database or not. If set as false, the link :guilabel:`Drop
  1167. Database` will not be shown, and even a ``DROP DATABASE mydatabase`` will
  1168. be rejected. Quite practical for :term:`ISP` 's with many customers.
  1169. This limitation of :term:`SQL` queries is not as strict as when using MySQL
  1170. privileges. This is due to nature of :term:`SQL` queries which might be
  1171. quite complicated. So this choice should be viewed as help to avoid
  1172. accidental dropping rather than strict privilege limitation.
  1173. .. config:option:: $cfg['Confirm']
  1174. :type: boolean
  1175. :default: true
  1176. Whether a warning ("Are your really sure...") should be displayed when
  1177. you're about to lose data.
  1178. .. config:option:: $cfg['UseDbSearch']
  1179. :type: boolean
  1180. :default: true
  1181. Define whether the "search string inside database" is enabled or not.
  1182. .. config:option:: $cfg['IgnoreMultiSubmitErrors']
  1183. :type: boolean
  1184. :default: false
  1185. Define whether phpMyAdmin will continue executing a multi-query
  1186. statement if one of the queries fails. Default is to abort execution.
  1187. Cookie authentication options
  1188. -----------------------------
  1189. .. config:option:: $cfg['blowfish_secret']
  1190. :type: string
  1191. :default: ``''``
  1192. The "cookie" auth\_type uses AES algorithm to encrypt the password. If you
  1193. are using the "cookie" auth\_type, enter here a random passphrase of your
  1194. choice. It will be used internally by the AES algorithm: you won’t be
  1195. prompted for this passphrase.
  1196. The secret should be 32 characters long. Using shorter will lead to weaker security
  1197. of encrypted cookies, using longer will cause no harm.
  1198. .. note::
  1199. The configuration is called blowfish_secret for historical reasons as
  1200. Blowfish algorithm was originally used to do the encryption.
  1201. .. versionchanged:: 3.1.0
  1202. Since version 3.1.0 phpMyAdmin can generate this on the fly, but it
  1203. makes a bit weaker security as this generated secret is stored in
  1204. session and furthermore it makes impossible to recall user name from
  1205. cookie.
  1206. .. config:option:: $cfg['LoginCookieRecall']
  1207. :type: boolean
  1208. :default: true
  1209. Define whether the previous login should be recalled or not in cookie
  1210. authentication mode.
  1211. This is automatically disabled if you do not have
  1212. configured :config:option:`$cfg['blowfish_secret']`.
  1213. .. config:option:: $cfg['LoginCookieValidity']
  1214. :type: integer [number of seconds]
  1215. :default: 1440
  1216. Define how long a login cookie is valid. Please note that php
  1217. configuration option `session.gc\_maxlifetime
  1218. <https://secure.php.net/manual/en/session.configuration.php#ini.session.gc-
  1219. maxlifetime>`_ might limit session validity and if the session is lost,
  1220. the login cookie is also invalidated. So it is a good idea to set
  1221. ``session.gc_maxlifetime`` at least to the same value of
  1222. :config:option:`$cfg['LoginCookieValidity']`.
  1223. .. config:option:: $cfg['LoginCookieStore']
  1224. :type: integer [number of seconds]
  1225. :default: 0
  1226. Define how long login cookie should be stored in browser. Default 0
  1227. means that it will be kept for existing session. This is recommended
  1228. for not trusted environments.
  1229. .. config:option:: $cfg['LoginCookieDeleteAll']
  1230. :type: boolean
  1231. :default: true
  1232. If enabled (default), logout deletes cookies for all servers,
  1233. otherwise only for current one. Setting this to false makes it easy to
  1234. forget to log out from other server, when you are using more of them.
  1235. .. _AllowArbitraryServer:
  1236. .. config:option:: $cfg['AllowArbitraryServer']
  1237. :type: boolean
  1238. :default: false
  1239. If enabled, allows you to log in to arbitrary servers using cookie
  1240. authentication.
  1241. .. note::
  1242. Please use this carefully, as this may allow users access to MySQL servers
  1243. behind the firewall where your :term:`HTTP` server is placed.
  1244. See also :config:option:`$cfg['ArbitraryServerRegexp']`.
  1245. .. config:option:: $cfg['ArbitraryServerRegexp']
  1246. :type: string
  1247. :default: ``''``
  1248. Restricts the MySQL servers to which the user can log in when
  1249. :config:option:`$cfg['AllowArbitraryServer']` is enabled by
  1250. matching the :term:`IP` or the hostname of the MySQL server
  1251. to the given regular expression. The regular expression must be enclosed
  1252. with a delimiter character.
  1253. It is recommended to include start and end symbols in the regullar
  1254. expression, so that you can avoid partial matches on the string.
  1255. **Examples:**
  1256. .. code-block:: php
  1257. // Allow connection to three listed servers:
  1258. $cfg['ArbitraryServerRegexp'] = '/^(server|another|yetdifferent)$/';
  1259. // Allow connection to range of IP addresses:
  1260. $cfg['ArbitraryServerRegexp'] = '@^192\.168\.0\.[0-9]{1,}$@';
  1261. // Allow connection to server name ending with -mysql:
  1262. $cfg['ArbitraryServerRegexp'] = '@^[^:]\-mysql$@';
  1263. .. note::
  1264. The whole server name is matched, it can include port as well. Due to
  1265. way MySQL is permissive in connection parameters, it is possible to use
  1266. connection strings as ```server:3306-mysql```. This can be used to
  1267. bypass regullar expression by the suffix, while connecting to another
  1268. server.
  1269. .. config:option:: $cfg['CaptchaLoginPublicKey']
  1270. :type: string
  1271. :default: ``''``
  1272. The public key for the reCaptcha service that can be obtained from
  1273. https://www.google.com/recaptcha/intro/.
  1274. reCaptcha will be then used in :ref:`cookie`.
  1275. .. config:option:: $cfg['CaptchaLoginPrivateKey']
  1276. :type: string
  1277. :default: ``''``
  1278. The private key for the reCaptcha service that can be obtain from
  1279. https://www.google.com/recaptcha/intro/.
  1280. reCaptcha will be then used in :ref:`cookie`.
  1281. Navigation panel setup
  1282. ----------------------
  1283. .. config:option:: $cfg['ShowDatabasesNavigationAsTree']
  1284. :type: boolean
  1285. :default: true
  1286. In the navigation panel, replaces the database tree with a selector
  1287. .. config:option:: $cfg['FirstLevelNavigationItems']
  1288. :type: integer
  1289. :default: 100
  1290. The number of first level databases that can be displayed on each page
  1291. of navigation tree.
  1292. .. config:option:: $cfg['MaxNavigationItems']
  1293. :type: integer
  1294. :default: 50
  1295. The number of items (tables, columns, indexes) that can be displayed on each
  1296. page of the navigation tree.
  1297. .. config:option:: $cfg['NavigationTreeEnableGrouping']
  1298. :type: boolean
  1299. :default: true
  1300. Defines whether to group the databases based on a common prefix
  1301. in their name :config:option:`$cfg['NavigationTreeDbSeparator']`.
  1302. .. config:option:: $cfg['NavigationTreeDbSeparator']
  1303. :type: string
  1304. :default: ``'_'``
  1305. The string used to separate the parts of the database name when
  1306. showing them in a tree.
  1307. .. config:option:: $cfg['NavigationTreeTableSeparator']
  1308. :type: string or array
  1309. :default: ``'__'``
  1310. Defines a string to be used to nest table spaces. This means if you have
  1311. tables like ``first__second__third`` this will be shown as a three-level
  1312. hierarchy like: first > second > third. If set to false or empty, the
  1313. feature is disabled. NOTE: You should not use this separator at the
  1314. beginning or end of a table name or multiple times after another without
  1315. any other characters in between.
  1316. .. config:option:: $cfg['NavigationTreeTableLevel']
  1317. :type: integer
  1318. :default: 1
  1319. Defines how many sublevels should be displayed when splitting up
  1320. tables by the above separator.
  1321. .. config:option:: $cfg['NumRecentTables']
  1322. :type: integer
  1323. :default: 10
  1324. The maximum number of recently used tables shown in the navigation
  1325. panel. Set this to 0 (zero) to disable the listing of recent tables.
  1326. .. config:option:: $cfg['NumFavoriteTables']
  1327. :type: integer
  1328. :default: 10
  1329. The maximum number of favorite tables shown in the navigation
  1330. panel. Set this to 0 (zero) to disable the listing of favorite tables.
  1331. .. config:option:: $cfg['ZeroConf']
  1332. :type: boolean
  1333. :default: true
  1334. Enables Zero Configuration mode in which the user will be offered a choice to
  1335. create phpMyAdmin configuration storage in the current database
  1336. or use the existing one, if already present.
  1337. This setting has no effect if the phpMyAdmin configuration storage database
  1338. is properly created and the related configuration directives (such as
  1339. :config:option:`$cfg['Servers'][$i]['pmadb']` and so on) are configured.
  1340. .. config:option:: $cfg['NavigationLinkWithMainPanel']
  1341. :type: boolean
  1342. :default: true
  1343. Defines whether or not to link with main panel by highlighting
  1344. the current database or table.
  1345. .. config:option:: $cfg['NavigationDisplayLogo']
  1346. :type: boolean
  1347. :default: true
  1348. Defines whether or not to display the phpMyAdmin logo at the top of
  1349. the navigation panel.
  1350. .. config:option:: $cfg['NavigationLogoLink']
  1351. :type: string
  1352. :default: ``'index.php'``
  1353. Enter :term:`URL` where logo in the navigation panel will point to.
  1354. For use especially with self made theme which changes this.
  1355. For external URLs, you should include URL scheme as well.
  1356. .. config:option:: $cfg['NavigationLogoLinkWindow']
  1357. :type: string
  1358. :default: ``'main'``
  1359. Whether to open the linked page in the main window (``main``) or in a
  1360. new one (``new``). Note: use ``new`` if you are linking to
  1361. ``phpmyadmin.net``.
  1362. .. config:option:: $cfg['NavigationTreeDisplayItemFilterMinimum']
  1363. :type: integer
  1364. :default: 30
  1365. Defines the minimum number of items (tables, views, routines and
  1366. events) to display a JavaScript filter box above the list of items in
  1367. the navigation tree.
  1368. To disable the filter completely some high number can be used (e.g. 9999)
  1369. .. config:option:: $cfg['NavigationTreeDisplayDbFilterMinimum']
  1370. :type: integer
  1371. :default: 30
  1372. Defines the minimum number of databases to display a JavaScript filter
  1373. box above the list of databases in the navigation tree.
  1374. To disable the filter completely some high number can be used
  1375. (e.g. 9999)
  1376. .. config:option:: $cfg['NavigationDisplayServers']
  1377. :type: boolean
  1378. :default: true
  1379. Defines whether or not to display a server choice at the top of the
  1380. navigation panel.
  1381. .. config:option:: $cfg['DisplayServersList']
  1382. :type: boolean
  1383. :default: false
  1384. Defines whether to display this server choice as links instead of in a
  1385. drop-down.
  1386. .. config:option:: $cfg['NavigationTreeDefaultTabTable']
  1387. :type: string
  1388. :default: ``'structure'``
  1389. Defines the tab displayed by default when clicking the small icon next
  1390. to each table name in the navigation panel. The possible values are the
  1391. localized equivalent of:
  1392. * ``structure``
  1393. * ``sql``
  1394. * ``search``
  1395. * ``insert``
  1396. * ``browse``
  1397. .. config:option:: $cfg['NavigationTreeDefaultTabTable2']
  1398. :type: string
  1399. :default: null
  1400. Defines the tab displayed by default when clicking the second small icon next
  1401. to each table name in the navigation panel. The possible values are the
  1402. localized equivalent of:
  1403. * ``(empty)``
  1404. * ``structure``
  1405. * ``sql``
  1406. * ``search``
  1407. * ``insert``
  1408. * ``browse``
  1409. .. config:option:: $cfg['NavigationTreeEnableExpansion']
  1410. :type: boolean
  1411. :default: true
  1412. Whether to offer the possibility of tree expansion in the navigation panel.
  1413. .. config:option:: $cfg['NavigationTreeShowTables']
  1414. :type: boolean
  1415. :default: true
  1416. Whether to show tables under database in the navigation panel.
  1417. .. config:option:: $cfg['NavigationTreeShowViews']
  1418. :type: boolean
  1419. :default: true
  1420. Whether to show views under database in the navigation panel.
  1421. .. config:option:: $cfg['NavigationTreeShowFunctions']
  1422. :type: boolean
  1423. :default: true
  1424. Whether to show functions under database in the navigation panel.
  1425. .. config:option:: $cfg['NavigationTreeShowProcedures']
  1426. :type: boolean
  1427. :default: true
  1428. Whether to show procedures under database in the navigation panel.
  1429. .. config:option:: $cfg['NavigationTreeShowEvents']
  1430. :type: boolean
  1431. :default: true
  1432. Whether to show events under database in the navigation panel.
  1433. .. config:option:: $cfg['NavigationWidth']
  1434. :type: integer
  1435. :default: 240
  1436. Navigation panel width, set to 0 to collapse it by default.
  1437. Main panel
  1438. ----------
  1439. .. config:option:: $cfg['ShowStats']
  1440. :type: boolean
  1441. :default: true
  1442. Defines whether or not to display space usage and statistics about
  1443. databases and tables. Note that statistics requires at least MySQL
  1444. 3.23.3 and that, at this date, MySQL doesn't return such information
  1445. for Berkeley DB tables.
  1446. .. config:option:: $cfg['ShowServerInfo']
  1447. :type: boolean
  1448. :default: true
  1449. Defines whether to display detailed server information on main page.
  1450. You can additionally hide more information by using
  1451. :config:option:`$cfg['Servers'][$i]['verbose']`.
  1452. .. config:option:: $cfg['ShowPhpInfo']
  1453. :type: boolean
  1454. :default: false
  1455. Defines whether to display the :guilabel:`PHP information` or not at
  1456. the starting main (right) frame.
  1457. Please note that to block the usage of ``phpinfo()`` in scripts, you have to
  1458. put this in your :file:`php.ini`:
  1459. .. code-block:: ini
  1460. disable_functions = phpinfo()
  1461. .. warning::
  1462. Enabling phpinfo page will leak quite a lot of information about server
  1463. setup. Is it not recommended to enable this on shared installations.
  1464. This might also make easier some remote attacks on your installations,
  1465. so enable this only when needed.
  1466. .. config:option:: $cfg['ShowChgPassword']
  1467. :type: boolean
  1468. :default: true
  1469. Defines whether to display the :guilabel:`Change password` link or not at
  1470. the starting main (right) frame. This setting does not check MySQL commands
  1471. entered directly.
  1472. Please note that enabling the :guilabel:`Change password` link has no effect
  1473. with config authentication mode: because of the hard coded password value
  1474. in the configuration file, end users can't be allowed to change their
  1475. passwords.
  1476. .. config:option:: $cfg['ShowCreateDb']
  1477. :type: boolean
  1478. :default: true
  1479. Defines whether to display the form for creating database or not at the
  1480. starting main (right) frame. This setting does not check MySQL commands
  1481. entered directly.
  1482. .. config:option:: $cfg['ShowGitRevision']
  1483. :type: boolean
  1484. :default: true
  1485. Defines whether to display informations about the current Git revision (if
  1486. applicable) on the main panel.
  1487. .. config:option:: $cfg['MysqlMinVersion']
  1488. :type: array
  1489. Defines the minimum supported MySQL version. The default is chosen
  1490. by the phpMyAdmin team; however this directive was asked by a developer
  1491. of the Plesk control panel to ease integration with older MySQL servers
  1492. (where most of the phpMyAdmin features work).
  1493. Database structure
  1494. ------------------
  1495. .. config:option:: $cfg['ShowDbStructureCreation']
  1496. :type: boolean
  1497. :default: false
  1498. Defines whether the database structure page (tables list) has a
  1499. "Creation" column that displays when each table was created.
  1500. .. config:option:: $cfg['ShowDbStructureLastUpdate']
  1501. :type: boolean
  1502. :default: false
  1503. Defines whether the database structure page (tables list) has a "Last
  1504. update" column that displays when each table was last updated.
  1505. .. config:option:: $cfg['ShowDbStructureLastCheck']
  1506. :type: boolean
  1507. :default: false
  1508. Defines whether the database structure page (tables list) has a "Last
  1509. check" column that displays when each table was last checked.
  1510. .. config:option:: $cfg['HideStructureActions']
  1511. :type: boolean
  1512. :default: true
  1513. Defines whether the table structure actions are hidden under a "More"
  1514. drop-down.
  1515. .. config:option:: $cfg['ShowColumnComments']
  1516. :type: boolean
  1517. :default: true
  1518. Defines whether to show column comments as a column in the table structure view.
  1519. Browse mode
  1520. -----------
  1521. .. config:option:: $cfg['TableNavigationLinksMode']
  1522. :type: string
  1523. :default: ``'icons'``
  1524. Defines whether the table navigation links contain ``'icons'``, ``'text'``
  1525. or ``'both'``.
  1526. .. config:option:: $cfg['ActionLinksMode']
  1527. :type: string
  1528. :default: ``'both'``
  1529. If set to ``icons``, will display icons instead of text for db and table
  1530. properties links (like :guilabel:`Browse`, :guilabel:`Select`,
  1531. :guilabel:`Insert`, ...). Can be set to ``'both'``
  1532. if you want icons AND text. When set to ``text``, will only show text.
  1533. .. config:option:: $cfg['RowActionType']
  1534. :type: string
  1535. :default: ``'both'``
  1536. Whether to display icons or text or both icons and text in table row action
  1537. segment. Value can be either of ``'icons'``, ``'text'`` or ``'both'``.
  1538. .. config:option:: $cfg['ShowAll']
  1539. :type: boolean
  1540. :default: false
  1541. Defines whether a user should be displayed a "Show all" button in browse
  1542. mode or not in all cases. By default it is shown only on small tables (less
  1543. than 500 rows) to avoid performance issues while getting too many rows.
  1544. .. config:option:: $cfg['MaxRows']
  1545. :type: integer
  1546. :default: 25
  1547. Number of rows displayed when browsing a result set and no LIMIT
  1548. clause is used. If the result set contains more rows, "Previous" and
  1549. "Next" links will be shown. Possible values: 25,50,100,250,500.
  1550. .. config:option:: $cfg['Order']
  1551. :type: string
  1552. :default: ``'SMART'``
  1553. Defines whether columns are displayed in ascending (``ASC``) order, in
  1554. descending (``DESC``) order or in a "smart" (``SMART``) order - I.E.
  1555. descending order for columns of type TIME, DATE, DATETIME and
  1556. TIMESTAMP, ascending order else- by default.
  1557. .. versionchanged:: 3.4.0
  1558. Since phpMyAdmin 3.4.0 the default value is ``'SMART'``.
  1559. .. config:option:: $cfg['GridEditing']
  1560. :type: string
  1561. :default: ``'double-click'``
  1562. Defines which action (``double-click`` or ``click``) triggers grid
  1563. editing. Can be deactivated with the ``disabled`` value.
  1564. .. config:option:: $cfg['RelationalDisplay']
  1565. :type: string
  1566. :default: ``'K'``
  1567. Defines the initial behavior for Options > Relational. ``K``, which
  1568. is the default, displays the key while ``D`` shows the display column.
  1569. .. config:option:: $cfg['SaveCellsAtOnce']
  1570. :type: boolean
  1571. :default: false
  1572. Defines whether or not to save all edited cells at once for grid
  1573. editing.
  1574. Editing mode
  1575. ------------
  1576. .. config:option:: $cfg['ProtectBinary']
  1577. :type: boolean or string
  1578. :default: ``'blob'``
  1579. Defines whether ``BLOB`` or ``BINARY`` columns are protected from
  1580. editing when browsing a table's content. Valid values are:
  1581. * ``false`` to allow editing of all columns;
  1582. * ``'blob'`` to allow editing of all columns except ``BLOBS``;
  1583. * ``'noblob'`` to disallow editing of all columns except ``BLOBS`` (the
  1584. opposite of ``'blob'``);
  1585. * ``'all'`` to disallow editing of all ``BINARY`` or ``BLOB`` columns.
  1586. .. config:option:: $cfg['ShowFunctionFields']
  1587. :type: boolean
  1588. :default: true
  1589. Defines whether or not MySQL functions fields should be initially
  1590. displayed in edit/insert mode. Since version 2.10, the user can toggle
  1591. this setting from the interface.
  1592. .. config:option:: $cfg['ShowFieldTypesInDataEditView']
  1593. :type: boolean
  1594. :default: true
  1595. Defines whether or not type fields should be initially displayed in
  1596. edit/insert mode. The user can toggle this setting from the interface.
  1597. .. config:option:: $cfg['InsertRows']
  1598. :type: integer
  1599. :default: 2
  1600. Defines the default number of rows to be entered from the Insert page.
  1601. Users can manually change this from the bottom of that page to add or remove
  1602. blank rows.
  1603. .. config:option:: $cfg['ForeignKeyMaxLimit']
  1604. :type: integer
  1605. :default: 100
  1606. If there are fewer items than this in the set of foreign keys, then a
  1607. drop-down box of foreign keys is presented, in the style described by
  1608. the :config:option:`$cfg['ForeignKeyDropdownOrder']` setting.
  1609. .. config:option:: $cfg['ForeignKeyDropdownOrder']
  1610. :type: array
  1611. :default: array('content-id', 'id-content')
  1612. For the foreign key drop-down fields, there are several methods of
  1613. display, offering both the key and value data. The contents of the
  1614. array should be one or both of the following strings: ``content-id``,
  1615. ``id-content``.
  1616. Export and import settings
  1617. --------------------------
  1618. .. config:option:: $cfg['ZipDump']
  1619. :type: boolean
  1620. :default: true
  1621. .. config:option:: $cfg['GZipDump']
  1622. :type: boolean
  1623. :default: true
  1624. .. config:option:: $cfg['BZipDump']
  1625. :type: boolean
  1626. :default: true
  1627. Defines whether to allow the use of zip/GZip/BZip2 compression when
  1628. creating a dump file
  1629. .. config:option:: $cfg['CompressOnFly']
  1630. :type: boolean
  1631. :default: true
  1632. Defines whether to allow on the fly compression for GZip/BZip2
  1633. compressed exports. This doesn't affect smaller dumps and allows users
  1634. to create larger dumps that won't otherwise fit in memory due to php
  1635. memory limit. Produced files contain more GZip/BZip2 headers, but all
  1636. normal programs handle this correctly.
  1637. .. config:option:: $cfg['Export']
  1638. :type: array
  1639. :default: array(...)
  1640. In this array are defined default parameters for export, names of
  1641. items are similar to texts seen on export page, so you can easily
  1642. identify what they mean.
  1643. .. config:option:: $cfg['Export']['format']
  1644. :type: string
  1645. :default: ``'sql'``
  1646. Default export format.
  1647. .. config:option:: $cfg['Export']['method']
  1648. :type: string
  1649. :default: ``'quick'``
  1650. Defines how the export form is displayed when it loads. Valid values
  1651. are:
  1652. * ``quick`` to display the minimum number of options to configure
  1653. * ``custom`` to display every available option to configure
  1654. * ``custom-no-form`` same as ``custom`` but does not display the option
  1655. of using quick export
  1656. .. config:option:: $cfg['Export']['charset']
  1657. :type: string
  1658. :default: ``''``
  1659. Defines charset for generated export. By default no charset conversion is
  1660. done assuming UTF-8.
  1661. .. config:option:: $cfg['Export']['file_template_table']
  1662. :type: string
  1663. :default: ``'@TABLE@'``
  1664. Default filename template for table exports.
  1665. .. seealso:: :ref:`faq6_27`
  1666. .. config:option:: $cfg['Export']['file_template_database']
  1667. :type: string
  1668. :default: ``'@DATABASE@'``
  1669. Default filename template for database exports.
  1670. .. seealso:: :ref:`faq6_27`
  1671. .. config:option:: $cfg['Export']['file_template_server']
  1672. :type: string
  1673. :default: ``'@SERVER@'``
  1674. Default filename template for server exports.
  1675. .. seealso:: :ref:`faq6_27`
  1676. .. config:option:: $cfg['Import']
  1677. :type: array
  1678. :default: array(...)
  1679. In this array are defined default parameters for import, names of
  1680. items are similar to texts seen on import page, so you can easily
  1681. identify what they mean.
  1682. .. config:option:: $cfg['Import']['charset']
  1683. :type: string
  1684. :default: ``''``
  1685. Defines charset for import. By default no charset conversion is done
  1686. assuming UTF-8.
  1687. Tabs display settings
  1688. ---------------------
  1689. .. config:option:: $cfg['TabsMode']
  1690. :type: string
  1691. :default: ``'both'``
  1692. Defines whether the menu tabs contain ``'icons'``, ``'text'`` or ``'both'``.
  1693. .. config:option:: $cfg['PropertiesNumColumns']
  1694. :type: integer
  1695. :default: 1
  1696. How many columns will be utilized to display the tables on the database
  1697. property view? When setting this to a value larger than 1, the type of the
  1698. database will be omitted for more display space.
  1699. .. config:option:: $cfg['DefaultTabServer']
  1700. :type: string
  1701. :default: ``'welcome'``
  1702. Defines the tab displayed by default on server view. The possible values
  1703. are the localized equivalent of:
  1704. * ``welcome`` (recommended for multi-user setups)
  1705. * ``databases``,
  1706. * ``status``
  1707. * ``variables``
  1708. * ``privileges``
  1709. .. config:option:: $cfg['DefaultTabDatabase']
  1710. :type: string
  1711. :default: ``'structure'``
  1712. Defines the tab displayed by default on database view. The possible values
  1713. are the localized equivalent of:
  1714. * ``structure``
  1715. * ``sql``
  1716. * ``search``
  1717. * ``operations``
  1718. .. config:option:: $cfg['DefaultTabTable']
  1719. :type: string
  1720. :default: ``'browse'``
  1721. Defines the tab displayed by default on table view. The possible values
  1722. are the localized equivalent of:
  1723. * ``structure``
  1724. * ``sql``
  1725. * ``search``
  1726. * ``insert``
  1727. * ``browse``
  1728. PDF Options
  1729. -----------
  1730. .. config:option:: $cfg['PDFPageSizes']
  1731. :type: array
  1732. :default: ``array('A3', 'A4', 'A5', 'letter', 'legal')``
  1733. Array of possible paper sizes for creating PDF pages.
  1734. You should never need to change this.
  1735. .. config:option:: $cfg['PDFDefaultPageSize']
  1736. :type: string
  1737. :default: ``'A4'``
  1738. Default page size to use when creating PDF pages. Valid values are any
  1739. listed in :config:option:`$cfg['PDFPageSizes']`.
  1740. Languages
  1741. ---------
  1742. .. config:option:: $cfg['DefaultLang']
  1743. :type: string
  1744. :default: ``'en'``
  1745. Defines the default language to use, if not browser-defined or user-
  1746. defined. The corresponding language file needs to be in
  1747. locale/*code*/LC\_MESSAGES/phpmyadmin.mo.
  1748. .. config:option:: $cfg['DefaultConnectionCollation']
  1749. :type: string
  1750. :default: ``'utf8mb4_general_ci'``
  1751. Defines the default connection collation to use, if not user-defined.
  1752. See the `MySQL documentation for charsets
  1753. <https://dev.mysql.com/doc/refman/5.7/en/charset-charsets.html>`_
  1754. for list of possible values.
  1755. .. config:option:: $cfg['Lang']
  1756. :type: string
  1757. :default: not set
  1758. Force language to use. The corresponding language file needs to be in
  1759. locale/*code*/LC\_MESSAGES/phpmyadmin.mo.
  1760. .. config:option:: $cfg['FilterLanguages']
  1761. :type: string
  1762. :default: ``''``
  1763. Limit list of available languages to those matching the given regular
  1764. expression. For example if you want only Czech and English, you should
  1765. set filter to ``'^(cs|en)'``.
  1766. .. config:option:: $cfg['RecodingEngine']
  1767. :type: string
  1768. :default: ``'auto'``
  1769. You can select here which functions will be used for character set
  1770. conversion. Possible values are:
  1771. * auto - automatically use available one (first is tested iconv, then
  1772. recode)
  1773. * iconv - use iconv or libiconv functions
  1774. * recode - use recode\_string function
  1775. * mb - use :term:`mbstring` extension
  1776. * none - disable encoding conversion
  1777. Enabled charset conversion activates a pull-down menu in the Export
  1778. and Import pages, to choose the character set when exporting a file.
  1779. The default value in this menu comes from
  1780. :config:option:`$cfg['Export']['charset']` and :config:option:`$cfg['Import']['charset']`.
  1781. .. config:option:: $cfg['IconvExtraParams']
  1782. :type: string
  1783. :default: ``'//TRANSLIT'``
  1784. Specify some parameters for iconv used in charset conversion. See
  1785. `iconv documentation <https://www.gnu.org/software/libiconv/documentati
  1786. on/libiconv/iconv_open.3.html>`_ for details. By default
  1787. ``//TRANSLIT`` is used, so that invalid characters will be
  1788. transliterated.
  1789. .. config:option:: $cfg['AvailableCharsets']
  1790. :type: array
  1791. :default: array(...)
  1792. Available character sets for MySQL conversion. You can add your own
  1793. (any of supported by recode/iconv) or remove these which you don't
  1794. use. Character sets will be shown in same order as here listed, so if
  1795. you frequently use some of these move them to the top.
  1796. Web server settings
  1797. -------------------
  1798. .. config:option:: $cfg['OBGzip']
  1799. :type: string/boolean
  1800. :default: ``'auto'``
  1801. Defines whether to use GZip output buffering for increased speed in
  1802. :term:`HTTP` transfers. Set to
  1803. true/false for enabling/disabling. When set to 'auto' (string),
  1804. phpMyAdmin tries to enable output buffering and will automatically
  1805. disable it if your browser has some problems with buffering. IE6 with
  1806. a certain patch is known to cause data corruption when having enabled
  1807. buffering.
  1808. .. config:option:: $cfg['TrustedProxies']
  1809. :type: array
  1810. :default: array()
  1811. Lists proxies and HTTP headers which are trusted for
  1812. :config:option:`$cfg['Servers'][$i]['AllowDeny']['order']`. This list is by
  1813. default empty, you need to fill in some trusted proxy servers if you
  1814. want to use rules for IP addresses behind proxy.
  1815. The following example specifies that phpMyAdmin should trust a
  1816. HTTP\_X\_FORWARDED\_FOR (``X -Forwarded-For``) header coming from the proxy
  1817. 1.2.3.4:
  1818. .. code-block:: php
  1819. $cfg['TrustedProxies'] = array('1.2.3.4' => 'HTTP_X_FORWARDED_FOR');
  1820. The :config:option:`$cfg['Servers'][$i]['AllowDeny']['rules']` directive uses the
  1821. client's IP address as usual.
  1822. .. config:option:: $cfg['GD2Available']
  1823. :type: string
  1824. :default: ``'auto'``
  1825. Specifies whether GD >= 2 is available. If yes it can be used for MIME
  1826. transformations. Possible values are:
  1827. * auto - automatically detect
  1828. * yes - GD 2 functions can be used
  1829. * no - GD 2 function cannot be used
  1830. .. config:option:: $cfg['CheckConfigurationPermissions']
  1831. :type: boolean
  1832. :default: true
  1833. We normally check the permissions on the configuration file to ensure
  1834. it's not world writable. However, phpMyAdmin could be installed on a
  1835. NTFS filesystem mounted on a non-Windows server, in which case the
  1836. permissions seems wrong but in fact cannot be detected. In this case a
  1837. sysadmin would set this parameter to ``false``.
  1838. .. config:option:: $cfg['LinkLengthLimit']
  1839. :type: integer
  1840. :default: 1000
  1841. Limit for length of :term:`URL` in links. When length would be above this
  1842. limit, it is replaced by form with button. This is required as some web
  1843. servers (:term:`IIS`) have problems with long :term:`URL` .
  1844. .. config:option:: $cfg['CSPAllow']
  1845. :type: string
  1846. :default: ``''``
  1847. Additional string to include in allowed script and image sources in Content
  1848. Security Policy header.
  1849. This can be useful when you want to include some external JavaScript files
  1850. in :file:`config.footer.inc.php` or :file:`config.header.inc.php`, which
  1851. would be normally not allowed by Content Security Policy.
  1852. To allow some sites, just list them within the string:
  1853. .. code-block:: php
  1854. $cfg['CSPAllow'] = 'example.com example.net';
  1855. .. versionadded:: 4.0.4
  1856. .. config:option:: $cfg['DisableMultiTableMaintenance']
  1857. :type: boolean
  1858. :default: false
  1859. In the database Structure page, it's possible to mark some tables then
  1860. choose an operation like optimizing for many tables. This can slow
  1861. down a server; therefore, setting this to ``true`` prevents this kind
  1862. of multiple maintenance operation.
  1863. Theme settings
  1864. --------------
  1865. Please directly modify :file:`themes/themename/layout.inc.php`, although
  1866. your changes will be overwritten with the next update.
  1867. Design customization
  1868. --------------------
  1869. .. config:option:: $cfg['NavigationTreePointerEnable']
  1870. :type: boolean
  1871. :default: true
  1872. When set to true, hovering over an item in the navigation panel causes that item to be marked
  1873. (the background is highlighted).
  1874. .. config:option:: $cfg['BrowsePointerEnable']
  1875. :type: boolean
  1876. :default: true
  1877. When set to true, hovering over a row in the Browse page causes that row to be marked (the background
  1878. is highlighted).
  1879. .. config:option:: $cfg['BrowseMarkerEnable']
  1880. :type: boolean
  1881. :default: true
  1882. When set to true, a data row is marked (the background is highlighted) when the row is selected
  1883. with the checkbox.
  1884. .. config:option:: $cfg['LimitChars']
  1885. :type: integer
  1886. :default: 50
  1887. Maximum number of characters shown in any non-numeric field on browse
  1888. view. Can be turned off by a toggle button on the browse page.
  1889. .. config:option:: $cfg['RowActionLinks']
  1890. :type: string
  1891. :default: ``'left'``
  1892. Defines the place where table row links (Edit, Copy, Delete) would be
  1893. put when tables contents are displayed (you may have them displayed at
  1894. the left side, right side, both sides or nowhere).
  1895. .. config:option:: $cfg['RowActionLinksWithoutUnique']
  1896. :type: boolean
  1897. :default: false
  1898. Defines whether to show row links (Edit, Copy, Delete) and checkboxes
  1899. for multiple row operations even when the selection does not have a :term:`unique key`.
  1900. Using row actions in the absence of a unique key may result in different/more
  1901. rows being affected since there is no guaranteed way to select the exact row(s).
  1902. .. config:option:: $cfg['RememberSorting']
  1903. :type: boolean
  1904. :default: true
  1905. If enabled, remember the sorting of each table when browsing them.
  1906. .. config:option:: $cfg['TablePrimaryKeyOrder']
  1907. :type: string
  1908. :default: ``'NONE'``
  1909. This defines the default sort order for the tables, having a :term:`primary key`,
  1910. when there is no sort order defines externally.
  1911. Acceptable values : ['NONE', 'ASC', 'DESC']
  1912. .. config:option:: $cfg['ShowBrowseComments']
  1913. :type: boolean
  1914. :default: true
  1915. .. config:option:: $cfg['ShowPropertyComments']
  1916. :type: boolean
  1917. :default: true
  1918. By setting the corresponding variable to ``true`` you can enable the
  1919. display of column comments in Browse or Property display. In browse
  1920. mode, the comments are shown inside the header. In property mode,
  1921. comments are displayed using a CSS-formatted dashed-line below the
  1922. name of the column. The comment is shown as a tool-tip for that
  1923. column.
  1924. Text fields
  1925. -----------
  1926. .. config:option:: $cfg['CharEditing']
  1927. :type: string
  1928. :default: ``'input'``
  1929. Defines which type of editing controls should be used for CHAR and
  1930. VARCHAR columns. Applies to data editing and also to the default values
  1931. in structure editing. Possible values are:
  1932. * input - this allows to limit size of text to size of columns in MySQL,
  1933. but has problems with newlines in columns
  1934. * textarea - no problems with newlines in columns, but also no length
  1935. limitations
  1936. .. config:option:: $cfg['MinSizeForInputField']
  1937. :type: integer
  1938. :default: 4
  1939. Defines the minimum size for input fields generated for CHAR and
  1940. VARCHAR columns.
  1941. .. config:option:: $cfg['MaxSizeForInputField']
  1942. :type: integer
  1943. :default: 60
  1944. Defines the maximum size for input fields generated for CHAR and
  1945. VARCHAR columns.
  1946. .. config:option:: $cfg['TextareaCols']
  1947. :type: integer
  1948. :default: 40
  1949. .. config:option:: $cfg['TextareaRows']
  1950. :type: integer
  1951. :default: 15
  1952. .. config:option:: $cfg['CharTextareaCols']
  1953. :type: integer
  1954. :default: 40
  1955. .. config:option:: $cfg['CharTextareaRows']
  1956. :type: integer
  1957. :default: 2
  1958. Number of columns and rows for the textareas. This value will be
  1959. emphasized (\*2) for :term:`SQL` query
  1960. textareas and (\*1.25) for :term:`SQL`
  1961. textareas inside the query window.
  1962. The Char\* values are used for CHAR
  1963. and VARCHAR editing (if configured via :config:option:`$cfg['CharEditing']`).
  1964. .. config:option:: $cfg['LongtextDoubleTextarea']
  1965. :type: boolean
  1966. :default: true
  1967. Defines whether textarea for LONGTEXT columns should have double size.
  1968. .. config:option:: $cfg['TextareaAutoSelect']
  1969. :type: boolean
  1970. :default: false
  1971. Defines if the whole textarea of the query box will be selected on
  1972. click.
  1973. .. config:option:: $cfg['EnableAutocompleteForTablesAndColumns']
  1974. :type: boolean
  1975. :default: true
  1976. Whether to enable autocomplete for table and column names in any
  1977. SQL query box.
  1978. SQL query box settings
  1979. ----------------------
  1980. .. config:option:: $cfg['SQLQuery']['Edit']
  1981. :type: boolean
  1982. :default: true
  1983. Whether to display an edit link to change a query in any SQL Query
  1984. box.
  1985. .. config:option:: $cfg['SQLQuery']['Explain']
  1986. :type: boolean
  1987. :default: true
  1988. Whether to display a link to explain a SELECT query in any SQL Query
  1989. box.
  1990. .. config:option:: $cfg['SQLQuery']['ShowAsPHP']
  1991. :type: boolean
  1992. :default: true
  1993. Whether to display a link to wrap a query in PHP code in any SQL Query
  1994. box.
  1995. .. config:option:: $cfg['SQLQuery']['Refresh']
  1996. :type: boolean
  1997. :default: true
  1998. Whether to display a link to refresh a query in any SQL Query box.
  1999. .. _web-dirs:
  2000. Web server upload/save/import directories
  2001. -----------------------------------------
  2002. If PHP is running in safe mode, all directories must be owned by the same user
  2003. as the owner of the phpMyAdmin scripts.
  2004. If the directory where phpMyAdmin is installed is subject to an
  2005. ``open_basedir`` restriction, you need to create a temporary directory in some
  2006. directory accessible by the PHP interpreter.
  2007. For security reasons, all directories should be outside the tree published by
  2008. webserver. If you cannot avoid having this directory published by webserver,
  2009. limit access to it either by web server configuration (for example using
  2010. .htaccess or web.config files) or place at least an empty :file:`index.html`
  2011. file there, so that directory listing is not possible. However as long as the
  2012. directory is accessible by web server, an attacker can guess filenames to download
  2013. the files.
  2014. .. config:option:: $cfg['UploadDir']
  2015. :type: string
  2016. :default: ``''``
  2017. The name of the directory where :term:`SQL` files have been uploaded by
  2018. other means than phpMyAdmin (for example, ftp). Those files are available
  2019. under a drop-down box when you click the database or table name, then the
  2020. Import tab.
  2021. If
  2022. you want different directory for each user, %u will be replaced with
  2023. username.
  2024. Please note that the file names must have the suffix ".sql"
  2025. (or ".sql.bz2" or ".sql.gz" if support for compressed formats is
  2026. enabled).
  2027. This feature is useful when your file is too big to be
  2028. uploaded via :term:`HTTP`, or when file
  2029. uploads are disabled in PHP.
  2030. .. warning::
  2031. Please see top of this chapter (:ref:`web-dirs`) for instructions how
  2032. to setup this directory and how to make its usage secure.
  2033. .. seealso::
  2034. See :ref:`faq1_16` for alternatives.
  2035. .. config:option:: $cfg['SaveDir']
  2036. :type: string
  2037. :default: ``''``
  2038. The name of the directory where dumps can be saved.
  2039. If you want different directory for each user, %u will be replaced with
  2040. username.
  2041. Please note that the directory must exist and has to be writable for
  2042. the user running webserver.
  2043. .. warning::
  2044. Please see top of this chapter (:ref:`web-dirs`) for instructions how
  2045. to setup this directory and how to make its usage secure.
  2046. .. config:option:: $cfg['TempDir']
  2047. :type: string
  2048. :default: ``'./tmp/'``
  2049. The name of the directory where temporary files can be stored. It is used
  2050. for several purposes, currently:
  2051. * The templates cache which speeds up page loading.
  2052. * ESRI Shapefiles import, see :ref:`faq6_30`.
  2053. * To work around limitations of ``open_basedir`` for uploaded files, see
  2054. :ref:`faq1_11`.
  2055. This directory should have as strict permissions as possible as the only
  2056. user required to access this directory is the one who runs the webserver.
  2057. If you have root privileges, simply make this user owner of this directory
  2058. and make it accessible only by it:
  2059. .. code-block:: sh
  2060. chown www-data:www-data tmp
  2061. chmod 700 tmp
  2062. If you cannot change owner of the directory, you can achieve a similar
  2063. setup using :term:`ACL`:
  2064. .. code-block:: sh
  2065. chmod 700 tmp
  2066. setfacl -m "g:www-data:rwx" tmp
  2067. setfacl -d -m "g:www-data:rwx" tmp
  2068. If neither of above works for you, you can still make the directory
  2069. :command:`chmod 777`, but it might impose risk of other users on system
  2070. reading and writing data in this directory.
  2071. .. warning::
  2072. Please see top of this chapter (:ref:`web-dirs`) for instructions how
  2073. to setup this directory and how to make its usage secure.
  2074. Various display setting
  2075. -----------------------
  2076. .. config:option:: $cfg['RepeatCells']
  2077. :type: integer
  2078. :default: 100
  2079. Repeat the headers every X cells, or 0 to deactivate.
  2080. .. config:option:: $cfg['QueryHistoryDB']
  2081. :type: boolean
  2082. :default: false
  2083. .. config:option:: $cfg['QueryHistoryMax']
  2084. :type: integer
  2085. :default: 25
  2086. If :config:option:`$cfg['QueryHistoryDB']` is set to ``true``, all your
  2087. Queries are logged to a table, which has to be created by you (see
  2088. :config:option:`$cfg['Servers'][$i]['history']`). If set to false, all your
  2089. queries will be appended to the form, but only as long as your window is
  2090. opened they remain saved.
  2091. When using the JavaScript based query window, it will always get updated
  2092. when you click on a new table/db to browse and will focus if you click on
  2093. :guilabel:`Edit SQL` after using a query. You can suppress updating the
  2094. query window by checking the box :guilabel:`Do not overwrite this query
  2095. from outside the window` below the query textarea. Then you can browse
  2096. tables/databases in the background without losing the contents of the
  2097. textarea, so this is especially useful when composing a query with tables
  2098. you first have to look in. The checkbox will get automatically checked
  2099. whenever you change the contents of the textarea. Please uncheck the button
  2100. whenever you definitely want the query window to get updated even though
  2101. you have made alterations.
  2102. If :config:option:`$cfg['QueryHistoryDB']` is set to ``true`` you can
  2103. specify the amount of saved history items using
  2104. :config:option:`$cfg['QueryHistoryMax']`.
  2105. .. config:option:: $cfg['BrowseMIME']
  2106. :type: boolean
  2107. :default: true
  2108. Enable :ref:`transformations`.
  2109. .. config:option:: $cfg['MaxExactCount']
  2110. :type: integer
  2111. :default: 50000
  2112. For InnoDB tables, determines for how large tables phpMyAdmin should
  2113. get the exact row count using ``SELECT COUNT``. If the approximate row
  2114. count as returned by ``SHOW TABLE STATUS`` is smaller than this value,
  2115. ``SELECT COUNT`` will be used, otherwise the approximate count will be
  2116. used.
  2117. .. versionchanged:: 4.8.0
  2118. The default value was lowered to 50000 for performance reasons.
  2119. .. versionchanged:: 4.2.6
  2120. The default value was changed to 500000.
  2121. .. seealso:: :ref:`faq3_11`
  2122. .. config:option:: $cfg['MaxExactCountViews']
  2123. :type: integer
  2124. :default: 0
  2125. For VIEWs, since obtaining the exact count could have an impact on
  2126. performance, this value is the maximum to be displayed, using a
  2127. ``SELECT COUNT ... LIMIT``. Setting this to 0 bypasses any row
  2128. counting.
  2129. .. config:option:: $cfg['NaturalOrder']
  2130. :type: boolean
  2131. :default: true
  2132. Sorts database and table names according to natural order (for
  2133. example, t1, t2, t10). Currently implemented in the navigation panel
  2134. and in Database view, for the table list.
  2135. .. config:option:: $cfg['InitialSlidersState']
  2136. :type: string
  2137. :default: ``'closed'``
  2138. If set to ``'closed'``, the visual sliders are initially in a closed
  2139. state. A value of ``'open'`` does the reverse. To completely disable
  2140. all visual sliders, use ``'disabled'``.
  2141. .. config:option:: $cfg['UserprefsDisallow']
  2142. :type: array
  2143. :default: array()
  2144. Contains names of configuration options (keys in ``$cfg`` array) that
  2145. users can't set through user preferences. For possible values, refer
  2146. to clases under :file:`libraries/classes/Config/Forms/User/`.
  2147. .. config:option:: $cfg['UserprefsDeveloperTab']
  2148. :type: boolean
  2149. :default: false
  2150. Activates in the user preferences a tab containing options for
  2151. developers of phpMyAdmin.
  2152. Page titles
  2153. -----------
  2154. .. config:option:: $cfg['TitleTable']
  2155. :type: string
  2156. :default: ``'@HTTP_HOST@ / @VSERVER@ / @DATABASE@ / @TABLE@ | @PHPMYADMIN@'``
  2157. .. config:option:: $cfg['TitleDatabase']
  2158. :type: string
  2159. :default: ``'@HTTP_HOST@ / @VSERVER@ / @DATABASE@ | @PHPMYADMIN@'``
  2160. .. config:option:: $cfg['TitleServer']
  2161. :type: string
  2162. :default: ``'@HTTP_HOST@ / @VSERVER@ | @PHPMYADMIN@'``
  2163. .. config:option:: $cfg['TitleDefault']
  2164. :type: string
  2165. :default: ``'@HTTP_HOST@ | @PHPMYADMIN@'``
  2166. Allows you to specify window's title bar. You can use :ref:`faq6_27`.
  2167. Theme manager settings
  2168. ----------------------
  2169. .. config:option:: $cfg['ThemeManager']
  2170. :type: boolean
  2171. :default: true
  2172. Enables user-selectable themes. See :ref:`faqthemes`.
  2173. .. config:option:: $cfg['ThemeDefault']
  2174. :type: string
  2175. :default: ``'pmahomme'``
  2176. The default theme (a subdirectory under :file:`./themes/`).
  2177. .. config:option:: $cfg['ThemePerServer']
  2178. :type: boolean
  2179. :default: false
  2180. Whether to allow different theme for each server.
  2181. .. config:option:: $cfg['FontSize']
  2182. :type: string
  2183. :default: '82%'
  2184. Font size to use, is applied in CSS.
  2185. Default queries
  2186. ---------------
  2187. .. config:option:: $cfg['DefaultQueryTable']
  2188. :type: string
  2189. :default: ``'SELECT * FROM @TABLE@ WHERE 1'``
  2190. .. config:option:: $cfg['DefaultQueryDatabase']
  2191. :type: string
  2192. :default: ``''``
  2193. Default queries that will be displayed in query boxes when user didn't
  2194. specify any. You can use standard :ref:`faq6_27`.
  2195. MySQL settings
  2196. --------------
  2197. .. config:option:: $cfg['DefaultFunctions']
  2198. :type: array
  2199. :default: array(...)
  2200. Functions selected by default when inserting/changing row, Functions
  2201. are defined for meta types as (FUNC\_NUMBER, FUNC\_DATE, FUNC\_CHAR,
  2202. FUNC\_SPATIAL, FUNC\_UUID) and for ``first_timestamp``, which is used
  2203. for first timestamp column in table.
  2204. Default options for Transformations
  2205. -----------------------------------
  2206. .. config:option:: $cfg['DefaultTransformations']
  2207. :type: array
  2208. :default: An array with below listed key-values
  2209. .. config:option:: $cfg['DefaultTransformations']['Substring']
  2210. :type: array
  2211. :default: array(0, 'all', '…')
  2212. .. config:option:: $cfg['DefaultTransformations']['Bool2Text']
  2213. :type: array
  2214. :default: array('T', 'F')
  2215. .. config:option:: $cfg['DefaultTransformations']['External']
  2216. :type: array
  2217. :default: array(0, '-f /dev/null -i -wrap -q', 1, 1)
  2218. .. config:option:: $cfg['DefaultTransformations']['PreApPend']
  2219. :type: array
  2220. :default: array('', '')
  2221. .. config:option:: $cfg['DefaultTransformations']['Hex']
  2222. :type: array
  2223. :default: array('2')
  2224. .. config:option:: $cfg['DefaultTransformations']['DateFormat']
  2225. :type: array
  2226. :default: array(0, '', 'local')
  2227. .. config:option:: $cfg['DefaultTransformations']['Inline']
  2228. :type: array
  2229. :default: array('100', 100)
  2230. .. config:option:: $cfg['DefaultTransformations']['TextImageLink']
  2231. :type: array
  2232. :default: array('', 100, 50)
  2233. .. config:option:: $cfg['DefaultTransformations']['TextLink']
  2234. :type: array
  2235. :default: array('', '', '')
  2236. Console settings
  2237. ----------------
  2238. .. note::
  2239. These settings are mostly meant to be changed by user.
  2240. .. config:option:: $cfg['Console']['StartHistory']
  2241. :type: boolean
  2242. :default: false
  2243. Show query history at start
  2244. .. config:option:: $cfg['Console']['AlwaysExpand']
  2245. :type: boolean
  2246. :default: false
  2247. Always expand query messages
  2248. .. config:option:: $cfg['Console']['CurrentQuery']
  2249. :type: boolean
  2250. :default: true
  2251. Show current browsing query
  2252. .. config:option:: $cfg['Console']['EnterExecutes']
  2253. :type: boolean
  2254. :default: false
  2255. Execute queries on Enter and insert new line with Shift + Enter
  2256. .. config:option:: $cfg['Console']['DarkTheme']
  2257. :type: boolean
  2258. :default: false
  2259. Switch to dark theme
  2260. .. config:option:: $cfg['Console']['Mode']
  2261. :type: string
  2262. :default: 'info'
  2263. Console mode
  2264. .. config:option:: $cfg['Console']['Height']
  2265. :type: integer
  2266. :default: 92
  2267. Console height
  2268. Developer
  2269. ---------
  2270. .. warning::
  2271. These settings might have huge effect on performance or security.
  2272. .. config:option:: $cfg['DBG']
  2273. :type: array
  2274. :default: array(...)
  2275. .. config:option:: $cfg['DBG']['sql']
  2276. :type: boolean
  2277. :default: false
  2278. Enable logging queries and execution times to be
  2279. displayed in the console's Debug SQL tab.
  2280. .. config:option:: $cfg['DBG']['sqllog']
  2281. :type: boolean
  2282. :default: false
  2283. Enable logging of queries and execution times to the syslog.
  2284. Requires :config:option:`$cfg['DBG']['sql']` to be enabled.
  2285. .. config:option:: $cfg['DBG']['demo']
  2286. :type: boolean
  2287. :default: false
  2288. Enable to let server present itself as demo server.
  2289. This is used for `phpMyAdmin demo server <https://www.phpmyadmin.net/try/>`_.
  2290. It currently changes following behavior:
  2291. * There is welcome message on the main page.
  2292. * There is footer information about demo server and used git revision.
  2293. * The setup script is enabled even with existing configuration.
  2294. * The setup does not try to connect to the MySQL server.
  2295. .. config:option:: $cfg['DBG']['simple2fa']
  2296. :type: boolean
  2297. :default: false
  2298. Can be used for testing two-factor authentication using :ref:`simple2fa`.
  2299. .. _config-examples:
  2300. Examples
  2301. --------
  2302. See following configuration snippets for typical setups of phpMyAdmin.
  2303. Basic example
  2304. +++++++++++++
  2305. Example configuration file, which can be copied to :file:`config.inc.php` to
  2306. get some core configuration layout; it is distributed with phpMyAdmin as
  2307. :file:`config.sample.inc.php`. Please note that it does not contain all
  2308. configuration options, only the most frequently used ones.
  2309. .. literalinclude:: ../config.sample.inc.php
  2310. :language: php
  2311. .. warning::
  2312. Don't use the controluser 'pma' if it does not yet exist and don't use 'pmapass'
  2313. as password.
  2314. .. _example-signon:
  2315. Example for signon authentication
  2316. +++++++++++++++++++++++++++++++++
  2317. This example uses :file:`examples/signon.php` to demonstrate usage of :ref:`auth_signon`:
  2318. .. code-block:: php
  2319. <?php
  2320. $i = 0;
  2321. $i++;
  2322. $cfg['Servers'][$i]['extension'] = 'mysqli';
  2323. $cfg['Servers'][$i]['auth_type'] = 'signon';
  2324. $cfg['Servers'][$i]['SignonSession'] = 'SignonSession';
  2325. $cfg['Servers'][$i]['SignonURL'] = 'examples/signon.php';
  2326. ?>`
  2327. Example for IP address limited autologin
  2328. ++++++++++++++++++++++++++++++++++++++++
  2329. If you want to automatically login when accessing phpMyAdmin locally while asking
  2330. for a password when accessing remotely, you can achieve it using following snippet:
  2331. .. code-block:: php
  2332. if ($_SERVER["REMOTE_ADDR"] == "127.0.0.1") {
  2333. $cfg['Servers'][$i]['auth_type'] = 'config';
  2334. $cfg['Servers'][$i]['user'] = 'root';
  2335. $cfg['Servers'][$i]['password'] = 'yourpassword';
  2336. } else {
  2337. $cfg['Servers'][$i]['auth_type'] = 'cookie';
  2338. }
  2339. .. note::
  2340. Filtering based on IP addresses isn't reliable over the internet, use it
  2341. only for local address.
  2342. Example for using multiple MySQL servers
  2343. ++++++++++++++++++++++++++++++++++++++++
  2344. You can configure any number of servers using :config:option:`$cfg['Servers']`,
  2345. following example shows two of them:
  2346. .. code-block:: php
  2347. <?php
  2348. $cfg['blowfish_secret']='multiServerExample70518';
  2349. //any string of your choice
  2350. $i = 0;
  2351. $i++; // server 1 :
  2352. $cfg['Servers'][$i]['auth_type'] = 'cookie';
  2353. $cfg['Servers'][$i]['verbose'] = 'no1';
  2354. $cfg['Servers'][$i]['host'] = 'localhost';
  2355. $cfg['Servers'][$i]['extension'] = 'mysqli';
  2356. // more options for #1 ...
  2357. $i++; // server 2 :
  2358. $cfg['Servers'][$i]['auth_type'] = 'cookie';
  2359. $cfg['Servers'][$i]['verbose'] = 'no2';
  2360. $cfg['Servers'][$i]['host'] = 'remote.host.addr';//or ip:'10.9.8.1'
  2361. // this server must allow remote clients, e.g., host 10.9.8.%
  2362. // not only in mysql.host but also in the startup configuration
  2363. $cfg['Servers'][$i]['extension'] = 'mysqli';
  2364. // more options for #2 ...
  2365. // end of server sections
  2366. $cfg['ServerDefault'] = 0; // to choose the server on startup
  2367. // further general options ...
  2368. ?>
  2369. .. _example-google-ssl:
  2370. Google Cloud SQL with SSL
  2371. +++++++++++++++++++++++++
  2372. To connect to Google Could SQL, you currently need to disable certificate
  2373. verification. This is caused by the certficate being issued for CN matching
  2374. your instance name, but you connect to an IP address and PHP tries to match
  2375. these two. With verfication you end up with error message like:
  2376. .. code-block:: text
  2377. Peer certificate CN=`api-project-851612429544:pmatest' did not match expected CN=`8.8.8.8'
  2378. .. warning::
  2379. With disabled verification your traffic is encrypted, but you're open to
  2380. man in the middle attacks.
  2381. To connect phpMyAdmin to Google Cloud SQL using SSL download the client and
  2382. server certificates and tell phpMyAdmin to use them:
  2383. .. code-block:: php
  2384. // IP address of your instance
  2385. $cfg['Servers'][$i]['host'] = '8.8.8.8';
  2386. // Use SSL for connection
  2387. $cfg['Servers'][$i]['ssl'] = true;
  2388. // Client secret key
  2389. $cfg['Servers'][$i]['ssl_key'] = '../client-key.pem';
  2390. // Client certificate
  2391. $cfg['Servers'][$i]['ssl_cert'] = '../client-cert.pem';
  2392. // Server certification authority
  2393. $cfg['Servers'][$i]['ssl_ca'] = '../server-ca.pem';
  2394. // Disable SSL verification (see above note)
  2395. $cfg['Servers'][$i]['ssl_verify'] = false;
  2396. .. seealso::
  2397. :ref:`ssl`,
  2398. :config:option:`$cfg['Servers'][$i]['ssl']`,
  2399. :config:option:`$cfg['Servers'][$i]['ssl_key']`,
  2400. :config:option:`$cfg['Servers'][$i]['ssl_cert']`,
  2401. :config:option:`$cfg['Servers'][$i]['ssl_ca']`,
  2402. :config:option:`$cfg['Servers'][$i]['ssl_verify']`,
  2403. <https://bugs.php.net/bug.php?id=72048>