config.rst.txt 129 KB

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