config.txt 112 KB

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