faq.rst.txt 92 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286
  1. .. _faq:
  2. FAQ - Frequently Asked Questions
  3. ================================
  4. Please have a look at our `Link section
  5. <https://www.phpmyadmin.net/docs/>`_ on the official
  6. phpMyAdmin homepage for in-depth coverage of phpMyAdmin's features and
  7. or interface.
  8. .. _faqserver:
  9. Server
  10. ++++++
  11. .. _faq1_1:
  12. 1.1 My server is crashing each time a specific action is required or phpMyAdmin sends a blank page or a page full of cryptic characters to my browser, what can I do?
  13. ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
  14. Try to set the :config:option:`$cfg['OBGzip']` directive to ``false`` in your
  15. :file:`config.inc.php` file and the ``zlib.output_compression`` directive to
  16. ``Off`` in your php configuration file.
  17. .. _faq1_2:
  18. 1.2 My Apache server crashes when using phpMyAdmin.
  19. ---------------------------------------------------
  20. You should first try the latest versions of Apache (and possibly MySQL). If
  21. your server keeps crashing, please ask for help in the various Apache support
  22. groups.
  23. .. seealso:: :ref:`faq1_1`
  24. .. _faq1_3:
  25. 1.3 (withdrawn).
  26. ----------------
  27. .. _faq1_4:
  28. 1.4 Using phpMyAdmin on IIS, I'm displayed the error message: "The specified CGI application misbehaved by not returning a complete set of HTTP headers ...".
  29. -------------------------------------------------------------------------------------------------------------------------------------------------------------
  30. You just forgot to read the *install.txt* file from the PHP
  31. distribution. Have a look at the last message in this `PHP bug report #12061
  32. <https://bugs.php.net/bug.php?id=12061>`_ from the official PHP bug
  33. database.
  34. .. _faq1_5:
  35. 1.5 Using phpMyAdmin on IIS, I'm facing crashes and/or many error messages with the HTTP.
  36. -----------------------------------------------------------------------------------------
  37. This is a known problem with the PHP :term:`ISAPI` filter: it's not so stable.
  38. Please use instead the cookie authentication mode.
  39. .. _faq1_6:
  40. 1.6 I can't use phpMyAdmin on PWS: nothing is displayed!
  41. --------------------------------------------------------
  42. This seems to be a PWS bug. Filippo Simoncini found a workaround (at
  43. this time there is no better fix): remove or comment the ``DOCTYPE``
  44. declarations (2 lines) from the scripts :file:`libraries/classes/Header.php`
  45. and :file:`index.php`.
  46. .. _faq1_7:
  47. 1.7 How can I gzip a dump or a CSV export? It does not seem to work.
  48. --------------------------------------------------------------------
  49. This feature is based on the ``gzencode()``
  50. PHP function to be more independent of the platform (Unix/Windows,
  51. Safe Mode or not, and so on). So, you must have Zlib support
  52. (``--with-zlib``).
  53. .. _faq1_8:
  54. 1.8 I cannot insert a text file in a table, and I get an error about safe mode being in effect.
  55. -----------------------------------------------------------------------------------------------
  56. Your uploaded file is saved by PHP in the "upload dir", as defined in
  57. :file:`php.ini` by the variable ``upload_tmp_dir`` (usually the system
  58. default is */tmp*). We recommend the following setup for Apache
  59. servers running in safe mode, to enable uploads of files while being
  60. reasonably secure:
  61. * create a separate directory for uploads: :command:`mkdir /tmp/php`
  62. * give ownership to the Apache server's user.group: :command:`chown
  63. apache.apache /tmp/php`
  64. * give proper permission: :command:`chmod 600 /tmp/php`
  65. * put ``upload_tmp_dir = /tmp/php`` in :file:`php.ini`
  66. * restart Apache
  67. .. _faq1_9:
  68. 1.9 (withdrawn).
  69. ----------------
  70. .. _faq1_10:
  71. 1.10 I'm having troubles when uploading files with phpMyAdmin running on a secure server. My browser is Internet Explorer and I'm using the Apache server.
  72. ----------------------------------------------------------------------------------------------------------------------------------------------------------
  73. As suggested by "Rob M" in the phpWizard forum, add this line to your
  74. *httpd.conf*:
  75. .. code-block:: apache
  76. SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
  77. It seems to clear up many problems between Internet Explorer and SSL.
  78. .. _faq1_11:
  79. 1.11 I get an 'open\_basedir restriction' while uploading a file from the import tab.
  80. -------------------------------------------------------------------------------------
  81. Since version 2.2.4, phpMyAdmin supports servers with open\_basedir
  82. restrictions. However you need to create temporary directory and configure it
  83. as :config:option:`$cfg['TempDir']`. The uploaded files will be moved there,
  84. and after execution of your :term:`SQL` commands, removed.
  85. .. _faq1_12:
  86. 1.12 I have lost my MySQL root password, what can I do?
  87. -------------------------------------------------------
  88. phpMyAdmin does authenticate against MySQL server you're using, so to recover
  89. from phpMyAdmin password loss, you need to recover at MySQL level.
  90. The MySQL manual explains how to `reset the permissions
  91. <https://dev.mysql.com/doc/refman/5.7/en/resetting-permissions.html>`_.
  92. If you are using MySQL server installed by your hosting provider, please
  93. contact their support to recover the password for you.
  94. .. _faq1_13:
  95. 1.13 (withdrawn).
  96. -----------------
  97. .. _faq1_14:
  98. 1.14 (withdrawn).
  99. -----------------
  100. .. _faq1_15:
  101. 1.15 I have problems with *mysql.user* column names.
  102. ----------------------------------------------------
  103. In previous MySQL versions, the ``User`` and ``Password`` columns were
  104. named ``user`` and ``password``. Please modify your column names to
  105. align with current standards.
  106. .. _faq1_16:
  107. 1.16 I cannot upload big dump files (memory, HTTP or timeout problems).
  108. -----------------------------------------------------------------------
  109. Starting with version 2.7.0, the import engine has been re–written and
  110. these problems should not occur. If possible, upgrade your phpMyAdmin
  111. to the latest version to take advantage of the new import features.
  112. The first things to check (or ask your host provider to check) are the values
  113. of ``max_execution_time``, ``upload_max_filesize``, ``memory_limit`` and
  114. ``post_max_size`` in the :file:`php.ini` configuration file. All of these
  115. settings limit the maximum size of data that can be submitted and handled by
  116. PHP. Please note that ``post_max_size`` needs to be larger than
  117. ``upload_max_filesize``. There exist several workarounds if your upload is too
  118. big or your hosting provider is unwilling to change the settings:
  119. * Look at the :config:option:`$cfg['UploadDir']` feature. This allows one to upload a file to the server
  120. via scp, FTP, or your favorite file transfer method. PhpMyAdmin is
  121. then able to import the files from the temporary directory. More
  122. information is available in the :ref:`config` of this document.
  123. * Using a utility (such as `BigDump
  124. <https://www.ozerov.de/bigdump/>`_) to split the files before
  125. uploading. We cannot support this or any third party applications, but
  126. are aware of users having success with it.
  127. * If you have shell (command line) access, use MySQL to import the files
  128. directly. You can do this by issuing the "source" command from within
  129. MySQL:
  130. .. code-block:: mysql
  131. source filename.sql;
  132. .. _faq1_17:
  133. 1.17 Which Database versions does phpMyAdmin support?
  134. -----------------------------------------------------
  135. For `MySQL <https://www.mysql.com/>`_, versions 5.5 and newer are supported.
  136. For older MySQL versions, our `Downloads <https://www.phpmyadmin.net/downloads/>`_ page offers older phpMyAdmin versions
  137. (which may have become unsupported).
  138. For `MariaDB <https://mariadb.org/>`_, versions 5.5 and newer are supported.
  139. .. _faq1_17a:
  140. 1.17a I cannot connect to the MySQL server. It always returns the error message, "Client does not support authentication protocol requested by server; consider upgrading MySQL client"
  141. ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  142. You tried to access MySQL with an old MySQL client library. The
  143. version of your MySQL client library can be checked in your phpinfo()
  144. output. In general, it should have at least the same minor version as
  145. your server - as mentioned in :ref:`faq1_17`. This problem is
  146. generally caused by using MySQL version 4.1 or newer. MySQL changed
  147. the authentication hash and your PHP is trying to use the old method.
  148. The proper solution is to use the `mysqli extension
  149. <https://www.php.net/mysqli>`_ with the proper client library to match
  150. your MySQL installation. More
  151. information (and several workarounds) are located in the `MySQL
  152. Documentation <https://dev.mysql.com/doc/refman/5.7/en/common-errors.html>`_.
  153. .. _faq1_18:
  154. 1.18 (withdrawn).
  155. -----------------
  156. .. _faq1_19:
  157. 1.19 I can't run the "display relations" feature because the script seems not to know the font face I'm using!
  158. --------------------------------------------------------------------------------------------------------------
  159. The :term:`TCPDF` library we're using for this feature requires some special
  160. files to use font faces. Please refers to the `TCPDF manual
  161. <https://tcpdf.org/>`_ to build these files.
  162. .. _faqmysql:
  163. 1.20 I receive an error about missing mysqli and mysql extensions.
  164. ------------------------------------------------------------------
  165. To connect to a MySQL server, PHP needs a set of MySQL functions
  166. called "MySQL extension". This extension may be part of the PHP
  167. distribution (compiled-in), otherwise it needs to be loaded
  168. dynamically. Its name is probably *mysqli.so* or *php\_mysqli.dll*.
  169. phpMyAdmin tried to load the extension but failed. Usually, the
  170. problem is solved by installing a software package called "PHP-MySQL"
  171. or something similar.
  172. There was two interfaces PHP provided as MySQL extensions - ``mysql``
  173. and ``mysqli``. The ``mysql`` interface was removed in PHP 7.0.
  174. This problem can be also caused by wrong paths in the :file:`php.ini` or using
  175. wrong :file:`php.ini`.
  176. Make sure that the extension files do exist in the folder which the
  177. ``extension_dir`` points to and that the corresponding lines in your
  178. :file:`php.ini` are not commented out (you can use ``phpinfo()`` to check
  179. current setup):
  180. .. code-block:: ini
  181. [PHP]
  182. ; Directory in which the loadable extensions (modules) reside.
  183. extension_dir = "C:/Apache2/modules/php/ext"
  184. The :file:`php.ini` can be loaded from several locations (especially on
  185. Windows), so please check you're updating the correct one. If using Apache, you
  186. can tell it to use specific path for this file using ``PHPIniDir`` directive:
  187. .. code-block:: apache
  188. LoadModule php7_module "C:/php7/php7apache2_4.dll"
  189. <IfModule php7_module>
  190. PHPIniDir "C:/php7"
  191. <Location>
  192. AddType text/html .php
  193. AddHandler application/x-httpd-php .php
  194. </Location>
  195. </IfModule>
  196. In some rare cases this problem can be also caused by other extensions loaded
  197. in PHP which prevent MySQL extensions to be loaded. If anything else fails, you
  198. can try commenting out extensions for other databases from :file:`php.ini`.
  199. .. _faq1_21:
  200. 1.21 I am running the CGI version of PHP under Unix, and I cannot log in using cookie auth.
  201. -------------------------------------------------------------------------------------------
  202. In :file:`php.ini`, set ``mysql.max_links`` higher than 1.
  203. .. _faq1_22:
  204. 1.22 I don't see the "Location of text file" field, so I cannot upload.
  205. -----------------------------------------------------------------------
  206. This is most likely because in :file:`php.ini`, your ``file_uploads``
  207. parameter is not set to "on".
  208. .. _faq1_23:
  209. 1.23 I'm running MySQL on a Win32 machine. Each time I create a new table the table and column names are changed to lowercase!
  210. ------------------------------------------------------------------------------------------------------------------------------
  211. This happens because the MySQL directive ``lower_case_table_names``
  212. defaults to 1 (``ON``) in the Win32 version of MySQL. You can change
  213. this behavior by simply changing the directive to 0 (``OFF``): Just
  214. edit your ``my.ini`` file that should be located in your Windows
  215. directory and add the following line to the group [mysqld]:
  216. .. code-block:: ini
  217. set-variable = lower_case_table_names=0
  218. .. note::
  219. Forcing this variable to 0 with --lower-case-table-names=0 on a
  220. case-insensitive filesystem and access MyISAM tablenames using different
  221. lettercases, index corruption may result.
  222. Next, save the file and restart the MySQL service. You can always
  223. check the value of this directive using the query
  224. .. code-block:: mysql
  225. SHOW VARIABLES LIKE 'lower_case_table_names';
  226. .. seealso:: `Identifier Case Sensitivity in the MySQL Reference Manual <https://dev.mysql.com/doc/refman/5.7/en/identifier-case-sensitivity.html>`_
  227. .. _faq1_24:
  228. 1.24 (withdrawn).
  229. -----------------
  230. .. _faq1_25:
  231. 1.25 I am running Apache with mod\_gzip-1.3.26.1a on Windows XP, and I get problems, such as undefined variables when I run a SQL query.
  232. ----------------------------------------------------------------------------------------------------------------------------------------
  233. A tip from Jose Fandos: put a comment on the following two lines in
  234. httpd.conf, like this:
  235. .. code-block:: apache
  236. # mod_gzip_item_include file \.php$
  237. # mod_gzip_item_include mime "application/x-httpd-php.*"
  238. as this version of mod\_gzip on Apache (Windows) has problems handling
  239. PHP scripts. Of course you have to restart Apache.
  240. .. _faq1_26:
  241. 1.26 I just installed phpMyAdmin in my document root of IIS but I get the error "No input file specified" when trying to run phpMyAdmin.
  242. ----------------------------------------------------------------------------------------------------------------------------------------
  243. This is a permission problem. Right-click on the phpmyadmin folder and
  244. choose properties. Under the tab Security, click on "Add" and select
  245. the user "IUSR\_machine" from the list. Now set their permissions and it
  246. should work.
  247. .. _faq1_27:
  248. 1.27 I get empty page when I want to view huge page (eg. db\_structure.php with plenty of tables).
  249. --------------------------------------------------------------------------------------------------
  250. This was caused by a `PHP bug <https://bugs.php.net/bug.php?id=21079>`_ that occur when
  251. GZIP output buffering is enabled. If you turn off it (by
  252. :config:option:`$cfg['OBGzip']` in :file:`config.inc.php`), it should work.
  253. This bug will has been fixed in PHP 5.0.0.
  254. .. _faq1_28:
  255. 1.28 My MySQL server sometimes refuses queries and returns the message 'Errorcode: 13'. What does this mean?
  256. ------------------------------------------------------------------------------------------------------------
  257. This can happen due to a MySQL bug when having database / table names
  258. with upper case characters although ``lower_case_table_names`` is
  259. set to 1. To fix this, turn off this directive, convert all database
  260. and table names to lower case and turn it on again. Alternatively,
  261. there's a bug-fix available starting with MySQL 3.23.56 /
  262. 4.0.11-gamma.
  263. .. _faq1_29:
  264. 1.29 When I create a table or modify a column, I get an error and the columns are duplicated.
  265. ---------------------------------------------------------------------------------------------
  266. It is possible to configure Apache in such a way that PHP has problems
  267. interpreting .php files.
  268. The problems occur when two different (and conflicting) set of
  269. directives are used:
  270. .. code-block:: apache
  271. SetOutputFilter PHP
  272. SetInputFilter PHP
  273. and
  274. .. code-block:: apache
  275. AddType application/x-httpd-php .php
  276. In the case we saw, one set of directives was in
  277. ``/etc/httpd/conf/httpd.conf``, while the other set was in
  278. ``/etc/httpd/conf/addon-modules/php.conf``. The recommended way is
  279. with ``AddType``, so just comment out the first set of lines and
  280. restart Apache:
  281. .. code-block:: apache
  282. #SetOutputFilter PHP
  283. #SetInputFilter PHP
  284. .. _faq1_30:
  285. 1.30 I get the error "navigation.php: Missing hash".
  286. ----------------------------------------------------
  287. This problem is known to happen when the server is running Turck
  288. MMCache but upgrading MMCache to version 2.3.21 solves the problem.
  289. .. _faq1_31:
  290. 1.31 Which PHP versions does phpMyAdmin support?
  291. ------------------------------------------------
  292. Since release 4.5, phpMyAdmin supports only PHP 5.5 and newer. Since release
  293. 4.1 phpMyAdmin supports only PHP 5.3 and newer. For PHP 5.2 you can use 4.0.x
  294. releases.
  295. PHP 7 is supported since phpMyAdmin 4.6, PHP 7.1 is supported since 4.6.5,
  296. PHP 7.2 is supported since 4.7.4.
  297. HHVM is supported up to phpMyAdmin 4.8.
  298. Since release 5.0, phpMyAdmin supports only PHP 7.1 and newer.
  299. Since release 5.2, phpMyAdmin supports only PHP 7.2 and newer.
  300. .. _faq1_32:
  301. 1.32 Can I use HTTP authentication with IIS?
  302. --------------------------------------------
  303. Yes. This procedure was tested with phpMyAdmin 2.6.1, PHP 4.3.9 in
  304. :term:`ISAPI` mode under :term:`IIS` 5.1.
  305. #. In your :file:`php.ini` file, set ``cgi.rfc2616_headers = 0``
  306. #. In ``Web Site Properties -> File/Directory Security -> Anonymous
  307. Access`` dialog box, check the ``Anonymous access`` checkbox and
  308. uncheck any other checkboxes (i.e. uncheck ``Basic authentication``,
  309. ``Integrated Windows authentication``, and ``Digest`` if it's
  310. enabled.) Click ``OK``.
  311. #. In ``Custom Errors``, select the range of ``401;1`` through ``401;5``
  312. and click the ``Set to Default`` button.
  313. .. seealso:: :rfc:`2616`
  314. .. _faq1_33:
  315. 1.33 (withdrawn).
  316. -----------------
  317. .. _faq1_34:
  318. 1.34 Can I directly access a database or table pages?
  319. -----------------------------------------------------
  320. Yes. Out of the box, you can use a :term:`URL` like
  321. ``http://server/phpMyAdmin/index.php?server=X&db=database&table=table&target=script``.
  322. For ``server`` you can use the server number
  323. which refers to the numeric host index (from ``$i``) in
  324. :file:`config.inc.php`. The table and script parts are optional.
  325. If you want a URL like
  326. ``http://server/phpMyAdmin/database[/table][/script]``, you need to do some additional configuration. The following
  327. lines apply only for the `Apache <https://httpd.apache.org>`_ web server.
  328. First, make sure that you have enabled some features within the Apache global
  329. configuration. You need ``Options SymLinksIfOwnerMatch`` and ``AllowOverride
  330. FileInfo`` enabled for directory where phpMyAdmin is installed and you
  331. need mod\_rewrite to be enabled. Then you just need to create the
  332. following :term:`.htaccess` file in root folder of phpMyAdmin installation (don't
  333. forget to change directory name inside of it):
  334. .. code-block:: apache
  335. RewriteEngine On
  336. RewriteBase /path_to_phpMyAdmin
  337. RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/([a-z_]+\.php)$ index.php?db=$1&table=$2&target=$3 [R]
  338. RewriteRule ^([a-zA-Z0-9_]+)/([a-z_]+\.php)$ index.php?db=$1&target=$2 [R]
  339. RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)$ index.php?db=$1&table=$2 [R]
  340. RewriteRule ^([a-zA-Z0-9_]+)$ index.php?db=$1 [R]
  341. .. seealso:: :ref:`faq4_8`
  342. .. versionchanged:: 5.1.0
  343. Support for using the ``target`` parameter was removed in phpMyAdmin 5.1.0.
  344. Use the ``route`` parameter instead.
  345. .. _faq1_35:
  346. 1.35 Can I use HTTP authentication with Apache CGI?
  347. ---------------------------------------------------
  348. Yes. However you need to pass authentication variable to :term:`CGI` using
  349. following rewrite rule:
  350. .. code-block:: apache
  351. RewriteEngine On
  352. RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization},L]
  353. .. _faq1_36:
  354. 1.36 I get an error "500 Internal Server Error".
  355. ------------------------------------------------
  356. There can be many explanations to this and a look at your server's
  357. error log file might give a clue.
  358. .. _faq1_37:
  359. 1.37 I run phpMyAdmin on cluster of different machines and password encryption in cookie auth doesn't work.
  360. -----------------------------------------------------------------------------------------------------------
  361. If your cluster consist of different architectures, PHP code used for
  362. encryption/decryption won't work correctly. This is caused by use of
  363. pack/unpack functions in code. Only solution is to use openssl
  364. extension which works fine in this case.
  365. .. _faq1_38:
  366. 1.38 Can I use phpMyAdmin on a server on which Suhosin is enabled?
  367. ------------------------------------------------------------------
  368. Yes but the default configuration values of Suhosin are known to cause
  369. problems with some operations, for example editing a table with many
  370. columns and no :term:`primary key` or with textual :term:`primary key`.
  371. Suhosin configuration might lead to malfunction in some cases and it
  372. can not be fully avoided as phpMyAdmin is kind of application which
  373. needs to transfer big amounts of columns in single HTTP request, what
  374. is something what Suhosin tries to prevent. Generally all
  375. ``suhosin.request.*``, ``suhosin.post.*`` and ``suhosin.get.*``
  376. directives can have negative effect on phpMyAdmin usability. You can
  377. always find in your error logs which limit did cause dropping of
  378. variable, so you can diagnose the problem and adjust matching
  379. configuration variable.
  380. The default values for most Suhosin configuration options will work in
  381. most scenarios, however you might want to adjust at least following
  382. parameters:
  383. * `suhosin.request.max\_vars <https://suhosin5.suhosin.org/stories/configuration.html#suhosin-request-max-vars>`_ should
  384. be increased (eg. 2048)
  385. * `suhosin.post.max\_vars <https://suhosin5.suhosin.org/stories/configuration.html#suhosin-post-max-vars>`_ should be
  386. increased (eg. 2048)
  387. * `suhosin.request.max\_array\_index\_length <https://suhosin5.suhosin.org/stories/configuration.html#suhosin-request-max-array-index-length>`_
  388. should be increased (eg. 256)
  389. * `suhosin.post.max\_array\_index\_length <https://suhosin5.suhosin.org/stories/configuration.html#suhosin-post-max-array-index-length>`_
  390. should be increased (eg. 256)
  391. * `suhosin.request.max\_totalname\_length <https://suhosin5.suhosin.org/stories/configuration.html#suhosin-request-max-totalname-length>`_
  392. should be increased (eg. 8192)
  393. * `suhosin.post.max\_totalname\_length <https://suhosin5.suhosin.org/stories/configuration.html#suhosin-post-max-totalname-length>`_ should be
  394. increased (eg. 8192)
  395. * `suhosin.get.max\_value\_length <https://suhosin5.suhosin.org/stories/configuration.html#suhosin-get-max-value-length>`_
  396. should be increased (eg. 1024)
  397. * `suhosin.sql.bailout\_on\_error <https://suhosin5.suhosin.org/stories/configuration.html#suhosin-sql-bailout-on-error>`_
  398. needs to be disabled (the default)
  399. * `suhosin.log.\* <https://suhosin5.suhosin.org/stories/configuration.html#logging-configuration>`_ should not
  400. include :term:`SQL`, otherwise you get big
  401. slowdown
  402. * `suhosin.sql.union <https://suhosin5.suhosin.org/stories/configuration.html#suhosin-
  403. sql-union>`_ must be disabled (which is the default).
  404. * `suhosin.sql.multiselect <https://suhosin5.suhosin.org/stories/configuration.html#
  405. suhosin-sql-multiselect>`_ must be disabled (which is the default).
  406. * `suhosin.sql.comment <https://suhosin5.suhosin.org/stories/configuration.html#suhosin-
  407. sql-comment>`_ must be disabled (which is the default).
  408. To further improve security, we also recommend these modifications:
  409. * `suhosin.executor.include.max\_traversal <https://suhosin5.suhosin.org/stories/
  410. configuration.html#suhosin-executor-include-max-traversal>`_ should be
  411. enabled as a mitigation against local file inclusion attacks. We suggest
  412. setting this to 2 as ``../`` is used with the ReCaptcha library.
  413. * `suhosin.cookie.encrypt <https://suhosin5.suhosin.org/stories/configuration.html#
  414. suhosin-cookie-encrypt>`_ should be enabled.
  415. * `suhosin.executor.disable_emodifier <https://suhosin5.suhosin.org/stories/config
  416. uration.html#suhosin-executor-disable-emodifier>`_ should be enabled.
  417. You can also disable the warning using the :config:option:`$cfg['SuhosinDisableWarning']`.
  418. .. _faq1_39:
  419. 1.39 When I try to connect via https, I can log in, but then my connection is redirected back to http. What can cause this behavior?
  420. ------------------------------------------------------------------------------------------------------------------------------------
  421. This is caused by the fact that PHP scripts have no knowledge that the site is
  422. using https. Depending on used webserver, you should configure it to let PHP
  423. know about URL and scheme used to access it.
  424. For example in Apache ensure that you have enabled ``SSLOptions`` and
  425. ``StdEnvVars`` in the configuration.
  426. .. seealso:: <https://httpd.apache.org/docs/2.4/mod/mod_ssl.html>
  427. .. _faq1_40:
  428. 1.40 When accessing phpMyAdmin via an Apache reverse proxy, cookie login does not work.
  429. ---------------------------------------------------------------------------------------
  430. To be able to use cookie auth Apache must know that it has to rewrite
  431. the set-cookie headers. Example from the Apache 2.2 documentation:
  432. .. code-block:: apache
  433. ProxyPass /mirror/foo/ http://backend.example.com/
  434. ProxyPassReverse /mirror/foo/ http://backend.example.com/
  435. ProxyPassReverseCookieDomain backend.example.com public.example.com
  436. ProxyPassReverseCookiePath / /mirror/foo/
  437. Note: if the backend url looks like ``http://server/~user/phpmyadmin``, the
  438. tilde (~) must be url encoded as %7E in the ProxyPassReverse\* lines.
  439. This is not specific to phpmyadmin, it's just the behavior of Apache.
  440. .. code-block:: apache
  441. ProxyPass /mirror/foo/ http://backend.example.com/~user/phpmyadmin
  442. ProxyPassReverse /mirror/foo/ http://backend.example.com/%7Euser/phpmyadmin
  443. ProxyPassReverseCookiePath /%7Euser/phpmyadmin /mirror/foo
  444. .. seealso:: <https://httpd.apache.org/docs/2.2/mod/mod_proxy.html>, :config:option:`$cfg['PmaAbsoluteUri']`
  445. .. _faq1_41:
  446. 1.41 When I view a database and ask to see its privileges, I get an error about an unknown column.
  447. --------------------------------------------------------------------------------------------------
  448. The MySQL server's privilege tables are not up to date, you need to
  449. run the :command:`mysql_upgrade` command on the server.
  450. .. _faq1_42:
  451. 1.42 How can I prevent robots from accessing phpMyAdmin?
  452. --------------------------------------------------------
  453. You can add various rules to :term:`.htaccess` to filter access based on user agent
  454. field. This is quite easy to circumvent, but could prevent at least
  455. some robots accessing your installation.
  456. .. code-block:: apache
  457. RewriteEngine on
  458. # Allow only GET and POST verbs
  459. RewriteCond %{REQUEST_METHOD} !^(GET|POST)$ [NC,OR]
  460. # Ban Typical Vulnerability Scanners and others
  461. # Kick out Script Kiddies
  462. RewriteCond %{HTTP_USER_AGENT} ^(java|curl|wget).* [NC,OR]
  463. RewriteCond %{HTTP_USER_AGENT} ^.*(libwww-perl|curl|wget|python|nikto|wkito|pikto|scan|acunetix).* [NC,OR]
  464. RewriteCond %{HTTP_USER_AGENT} ^.*(winhttp|HTTrack|clshttp|archiver|loader|email|harvest|extract|grab|miner).* [NC,OR]
  465. # Ban Search Engines, Crawlers to your administrative panel
  466. # No reasons to access from bots
  467. # Ultimately Better than the useless robots.txt
  468. # Did google respect robots.txt?
  469. # Try google: intitle:phpMyAdmin intext:"Welcome to phpMyAdmin *.*.*" intext:"Log in" -wiki -forum -forums -questions intext:"Cookies must be enabled"
  470. RewriteCond %{HTTP_USER_AGENT} ^.*(AdsBot-Google|ia_archiver|Scooter|Ask.Jeeves|Baiduspider|Exabot|FAST.Enterprise.Crawler|FAST-WebCrawler|www\.neomo\.de|Gigabot|Mediapartners-Google|Google.Desktop|Feedfetcher-Google|Googlebot|heise-IT-Markt-Crawler|heritrix|ibm.com\cs/crawler|ICCrawler|ichiro|MJ12bot|MetagerBot|msnbot-NewsBlogs|msnbot|msnbot-media|NG-Search|lucene.apache.org|NutchCVS|OmniExplorer_Bot|online.link.validator|psbot0|Seekbot|Sensis.Web.Crawler|SEO.search.Crawler|Seoma.\[SEO.Crawler\]|SEOsearch|Snappy|www.urltrends.com|www.tkl.iis.u-tokyo.ac.jp/~crawler|SynooBot|crawleradmin.t-info@telekom.de|TurnitinBot|voyager|W3.SiteSearch.Crawler|W3C-checklink|W3C_Validator|www.WISEnutbot.com|yacybot|Yahoo-MMCrawler|Yahoo\!.DE.Slurp|Yahoo\!.Slurp|YahooSeeker).* [NC]
  471. RewriteRule .* - [F]
  472. .. _faq1_43:
  473. 1.43 Why can't I display the structure of my table containing hundreds of columns?
  474. ----------------------------------------------------------------------------------
  475. Because your PHP's ``memory_limit`` is too low; adjust it in :file:`php.ini`.
  476. .. _faq1:44:
  477. 1.44 How can I reduce the installed size of phpMyAdmin on disk?
  478. ---------------------------------------------------------------
  479. Some users have requested to be able to reduce the size of the phpMyAdmin installation.
  480. This is not recommended and could lead to confusion over missing features, but can be done.
  481. A list of files and corresponding functionality which degrade gracefully when removed include:
  482. * :file:`./locale/` folder, or unused subfolders (interface translations)
  483. * Any unused themes in :file:`./themes/` except the default theme `pmahomme`.
  484. * :file:`./libraries/language_stats.inc.php` (translation statistics)
  485. * :file:`./doc/` (documentation)
  486. * :file:`./setup/` (setup script)
  487. * :file:`./examples/` (configuration examples)
  488. * :file:`./sql/` (SQL scripts to configure advanced functionalities)
  489. * :file:`./js/src/` (Source files to re-build `./js/dist/`)
  490. * :file:`./js/config/` (Configuration files to re-build `./js/dist/`)
  491. * Run `rm -rv vendor/tecnickcom/tcpdf && composer dump-autoload --no-interaction --optimize --dev` (exporting to PDF)
  492. * Run `rm -rv vendor/williamdes/mariadb-mysql-kbs && composer dump-autoload --no-interaction --optimize --dev` (external links to MariaDB and MySQL documentations)
  493. * Run `rm -rv vendor/code-lts/u2f-php-server && composer dump-autoload --no-interaction --optimize --dev` (U2F second factor authentication)
  494. * Run `rm -rv vendor/pragmarx/* && composer dump-autoload --no-interaction --optimize --dev` (2FA second factor authentication)
  495. * Run `rm -rv vendor/bacon/bacon-qr-code && composer dump-autoload --no-interaction --optimize --dev` (QRcode generation for 2FA second factor authentication)
  496. .. _faq1_45:
  497. 1.45 I get an error message about unknown authentication method caching_sha2_password when trying to log in
  498. -----------------------------------------------------------------------------------------------------------
  499. When logging in using MySQL version 8 or newer, you may encounter an error message like this:
  500. mysqli_real_connect(): The server requested authentication method unknown to the client [caching_sha2_password]
  501. mysqli_real_connect(): (HY000/2054): The server requested authentication method unknown to the client
  502. This error is because of a version compatibility problem between PHP and MySQL. The MySQL project introduced a new authentication
  503. method (our tests show this began with version 8.0.11) however PHP did not include the ability to use that authentication method.
  504. PHP reports that this was fixed in PHP version 7.4.
  505. Users experiencing this are encouraged to upgrade their PHP installation, however a workaround exists. Your MySQL user account
  506. can be set to use the older authentication with a command such as
  507. .. code-block:: mysql
  508. ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'PASSWORD';
  509. .. seealso:: <https://github.com/phpmyadmin/phpmyadmin/issues/14220>, <https://stackoverflow.com/questions/49948350/phpmyadmin-on-mysql-8-0>, <https://bugs.php.net/bug.php?id=76243>
  510. .. _faqconfig:
  511. Configuration
  512. +++++++++++++
  513. .. _faq2_1:
  514. 2.1 The error message "Warning: Cannot add header information - headers already sent by ..." is displayed, what's the problem?
  515. ------------------------------------------------------------------------------------------------------------------------------
  516. Edit your :file:`config.inc.php` file and ensure there is nothing (I.E. no
  517. blank lines, no spaces, no characters...) neither before the ``<?php`` tag at
  518. the beginning, neither after the ``?>`` tag at the end.
  519. .. _faq2_2:
  520. 2.2 phpMyAdmin can't connect to MySQL. What's wrong?
  521. ----------------------------------------------------
  522. Either there is an error with your PHP setup or your username/password
  523. is wrong. Try to make a small script which uses mysql\_connect and see
  524. if it works. If it doesn't, it may be you haven't even compiled MySQL
  525. support into PHP.
  526. .. _faq2_3:
  527. 2.3 The error message "Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111) ..." is displayed. What can I do?
  528. ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
  529. The error message can also be: :guilabel:`Error #2002 - The server is not
  530. responding (or the local MySQL server's socket is not correctly configured)`.
  531. First, you need to determine what socket is being used by MySQL. To do this,
  532. connect to your server and go to the MySQL bin directory. In this directory
  533. there should be a file named *mysqladmin*. Type ``./mysqladmin variables``, and
  534. this should give you a bunch of info about your MySQL server, including the
  535. socket (*/tmp/mysql.sock*, for example). You can also ask your ISP for the
  536. connection info or, if you're hosting your own, connect from the 'mysql'
  537. command-line client and type 'status' to get the connection type and socket or
  538. port number.
  539. Then, you need to tell PHP to use this socket. You can do this for all PHP in
  540. the :file:`php.ini` or for phpMyAdmin only in the :file:`config.inc.php`. For
  541. example: :config:option:`$cfg['Servers'][$i]['socket']` Please also make sure
  542. that the permissions of this file allow to be readable by your webserver.
  543. On my RedHat-Box the socket of MySQL is */var/lib/mysql/mysql.sock*.
  544. In your :file:`php.ini` you will find a line
  545. .. code-block:: ini
  546. mysql.default_socket = /tmp/mysql.sock
  547. change it to
  548. .. code-block:: ini
  549. mysql.default_socket = /var/lib/mysql/mysql.sock
  550. Then restart apache and it will work.
  551. Have also a look at the `corresponding section of the MySQL
  552. documentation <https://dev.mysql.com/doc/refman/5.7/en/can-not-connect-to-server.html>`_.
  553. .. _faq2_4:
  554. 2.4 Nothing is displayed by my browser when I try to run phpMyAdmin, what can I do?
  555. -----------------------------------------------------------------------------------
  556. Try to set the :config:option:`$cfg['OBGzip']` directive to ``false`` in the phpMyAdmin configuration
  557. file. It helps sometime. Also have a look at your PHP version number:
  558. if it contains "b" or "alpha" it means you're running a testing
  559. version of PHP. That's not a so good idea, please upgrade to a plain
  560. revision.
  561. .. _faq2_5:
  562. 2.5 Each time I want to insert or change a row or drop a database or a table, an error 404 (page not found) is displayed or, with HTTP or cookie authentication, I'm asked to log in again. What's wrong?
  563. ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  564. Check your webserver setup if it correctly fills in either PHP_SELF or REQUEST_URI variables.
  565. If you are running phpMyAdmin behind reverse proxy, please set the
  566. :config:option:`$cfg['PmaAbsoluteUri']` directive in the phpMyAdmin
  567. configuration file to match your setup.
  568. .. _faq2_6:
  569. 2.6 I get an "Access denied for user: 'root@localhost' (Using password: YES)"-error when trying to access a MySQL-Server on a host which is port-forwarded for my localhost.
  570. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  571. When you are using a port on your localhost, which you redirect via
  572. port-forwarding to another host, MySQL is not resolving the localhost
  573. as expected. Erik Wasser explains: The solution is: if your host is
  574. "localhost" MySQL (the command line tool :command:`mysql` as well) always
  575. tries to use the socket connection for speeding up things. And that
  576. doesn't work in this configuration with port forwarding. If you enter
  577. "127.0.0.1" as hostname, everything is right and MySQL uses the
  578. :term:`TCP` connection.
  579. .. _faqthemes:
  580. 2.7 Using and creating themes
  581. -----------------------------
  582. See :ref:`themes`.
  583. .. _faqmissingparameters:
  584. 2.8 I get "Missing parameters" errors, what can I do?
  585. -----------------------------------------------------
  586. Here are a few points to check:
  587. * In :file:`config.inc.php`, try to leave the :config:option:`$cfg['PmaAbsoluteUri']` directive empty. See also
  588. :ref:`faq4_7`.
  589. * Maybe you have a broken PHP installation or you need to upgrade your
  590. Zend Optimizer. See <https://bugs.php.net/bug.php?id=31134>.
  591. * If you are using Hardened PHP with the ini directive
  592. ``varfilter.max_request_variables`` set to the default (200) or
  593. another low value, you could get this error if your table has a high
  594. number of columns. Adjust this setting accordingly. (Thanks to Klaus
  595. Dorninger for the hint).
  596. * In the :file:`php.ini` directive ``arg_separator.input``, a value of ";"
  597. will cause this error. Replace it with "&;".
  598. * If you are using `Suhosin <https://suhosin5.suhosin.org/stories/index.html>`_, you
  599. might want to increase `request limits <https://suhosin5.suhosin.org/stories/faq.html>`_.
  600. * The directory specified in the :file:`php.ini` directive
  601. ``session.save_path`` does not exist or is read-only (this can be caused
  602. by `bug in the PHP installer <https://bugs.php.net/bug.php?id=39842>`_).
  603. .. _faq2_9:
  604. 2.9 Seeing an upload progress bar
  605. ---------------------------------
  606. To be able to see a progress bar during your uploads, your server must
  607. have the `uploadprogress <https://pecl.php.net/package/uploadprogress>`_ extension, and
  608. you must be running PHP 5.4.0 or higher. Moreover, the JSON extension
  609. has to be enabled in your PHP.
  610. If using PHP 5.4.0 or higher, you must set
  611. ``session.upload_progress.enabled`` to ``1`` in your :file:`php.ini`. However,
  612. starting from phpMyAdmin version 4.0.4, session-based upload progress has
  613. been temporarily deactivated due to its problematic behavior.
  614. .. _faq2_10:
  615. 2.10 How to generate a string of random bytes
  616. ---------------------------------------------
  617. One way to generate a string of random bytes suitable for cryptographic use is using the
  618. `random_bytes <https://www.php.net/random_bytes>`_ :term:`PHP` function. Since this function returns a binary string,
  619. the returned value should be converted to printable format before being able to copy it.
  620. For example, the :config:option:`$cfg['blowfish_secret']` configuration directive requires a 32-bytes long string. The
  621. following command can be used to generate a hexadecimal representation of this string.
  622. .. code-block:: sh
  623. php -r 'echo bin2hex(random_bytes(32)) . PHP_EOL;'
  624. The above example will output something similar to:
  625. .. code-block:: sh
  626. f16ce59f45714194371b48fe362072dc3b019da7861558cd4ad29e4d6fb13851
  627. And then this hexadecimal value can be used in the configuration file.
  628. .. code-block:: php
  629. $cfg['blowfish_secret'] = sodium_hex2bin('f16ce59f45714194371b48fe362072dc3b019da7861558cd4ad29e4d6fb13851');
  630. The `sodium_hex2bin <https://www.php.net/sodium_hex2bin>`_ is used here to convert the hexadecimal value back to the
  631. binary format.
  632. .. _faqlimitations:
  633. Known limitations
  634. +++++++++++++++++
  635. .. _login_bug:
  636. 3.1 When using HTTP authentication, a user who logged out can not log in again in with the same nick.
  637. -----------------------------------------------------------------------------------------------------
  638. This is related to the authentication mechanism (protocol) used by
  639. phpMyAdmin. To bypass this problem: just close all the opened browser
  640. windows and then go back to phpMyAdmin. You should be able to log in
  641. again.
  642. .. _faq3_2:
  643. 3.2 When dumping a large table in compressed mode, I get a memory limit error or a time limit error.
  644. ----------------------------------------------------------------------------------------------------
  645. Compressed dumps are built in memory and because of this are limited
  646. to php's memory limit. For gzip/bzip2 exports this can be overcome
  647. since 2.5.4 using :config:option:`$cfg['CompressOnFly']` (enabled by default).
  648. zip exports can not be handled this way, so if you need zip files for larger
  649. dump, you have to use another way.
  650. .. _faq3_3:
  651. 3.3 With InnoDB tables, I lose foreign key relationships when I rename a table or a column.
  652. -------------------------------------------------------------------------------------------
  653. This is an InnoDB bug, see <https://bugs.mysql.com/bug.php?id=21704>.
  654. .. _faq3_4:
  655. 3.4 I am unable to import dumps I created with the mysqldump tool bundled with the MySQL server distribution.
  656. -------------------------------------------------------------------------------------------------------------
  657. The problem is that older versions of ``mysqldump`` created invalid
  658. comments like this:
  659. .. code-block:: mysql
  660. -- MySQL dump 8.22
  661. --
  662. -- Host: localhost Database: database
  663. ---------------------------------------------------------
  664. -- Server version 3.23.54
  665. The invalid part of the code is the horizontal line made of dashes
  666. that appears once in every dump created with mysqldump. If you want to
  667. run your dump you have to turn it into valid MySQL. This means, you
  668. have to add a whitespace after the first two dashes of the line or add
  669. a # before it: ``-- -------------------------------------------------------`` or
  670. ``#---------------------------------------------------------``
  671. .. _faq3_5:
  672. 3.5 When using nested folders, multiple hierarchies are displayed in a wrong manner.
  673. ------------------------------------------------------------------------------------
  674. Please note that you should not use the separating string multiple
  675. times without any characters between them, or at the beginning/end of
  676. your table name. If you have to, think about using another
  677. TableSeparator or disabling that feature.
  678. .. seealso:: :config:option:`$cfg['NavigationTreeTableSeparator']`
  679. .. _faq3_6:
  680. 3.6 (withdrawn).
  681. -----------------
  682. .. _faq3_7:
  683. 3.7 I have table with many (100+) columns and when I try to browse table I get series of errors like "Warning: unable to parse url". How can this be fixed?
  684. -----------------------------------------------------------------------------------------------------------------------------------------------------------
  685. Your table neither have a :term:`primary key` nor an :term:`unique key`, so we must
  686. use a long expression to identify this row. This causes problems to
  687. parse\_url function. The workaround is to create a :term:`primary key`
  688. or :term:`unique key`.
  689. .. _faq3_8:
  690. 3.8 I cannot use (clickable) HTML-forms in columns where I put a MIME-Transformation onto!
  691. ------------------------------------------------------------------------------------------
  692. Due to a surrounding form-container (for multi-row delete checkboxes),
  693. no nested forms can be put inside the table where phpMyAdmin displays
  694. the results. You can, however, use any form inside of a table if keep
  695. the parent form-container with the target to tbl\_row\_delete.php and
  696. just put your own input-elements inside. If you use a custom submit
  697. input field, the form will submit itself to the displaying page again,
  698. where you can validate the $HTTP\_POST\_VARS in a transformation. For
  699. a tutorial on how to effectively use transformations, see our `Link
  700. section <https://www.phpmyadmin.net/docs/>`_ on the
  701. official phpMyAdmin-homepage.
  702. .. _faq3_9:
  703. 3.9 I get error messages when using "--sql\_mode=ANSI" for the MySQL server.
  704. ----------------------------------------------------------------------------
  705. When MySQL is running in ANSI-compatibility mode, there are some major
  706. differences in how :term:`SQL` is structured (see
  707. <https://dev.mysql.com/doc/refman/5.7/en/sql-mode.html>). Most important of all, the
  708. quote-character (") is interpreted as an identifier quote character and not as
  709. a string quote character, which makes many internal phpMyAdmin operations into
  710. invalid :term:`SQL` statements. There is no
  711. workaround to this behaviour. News to this item will be posted in `issue
  712. #7383 <https://github.com/phpmyadmin/phpmyadmin/issues/7383>`_.
  713. .. _faq3_10:
  714. 3.10 Homonyms and no primary key: When the results of a SELECT display more that one column with the same value (for example ``SELECT lastname from employees where firstname like 'A%'`` and two "Smith" values are displayed), if I click Edit I cannot be sure that I am editing the intended row.
  715. -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  716. Please make sure that your table has a :term:`primary key`, so that phpMyAdmin
  717. can use it for the Edit and Delete links.
  718. .. _faq3_11:
  719. 3.11 The number of rows for InnoDB tables is not correct.
  720. ---------------------------------------------------------
  721. phpMyAdmin uses a quick method to get the row count, and this method only
  722. returns an approximate count in the case of InnoDB tables. See
  723. :config:option:`$cfg['MaxExactCount']` for a way to modify those results, but
  724. this could have a serious impact on performance.
  725. However, one can easily replace the approximate row count with exact count by
  726. simply clicking on the approximate count. This can also be done for all tables
  727. at once by clicking on the rows sum displayed at the bottom.
  728. .. seealso:: :config:option:`$cfg['MaxExactCount']`
  729. .. _faq3_12:
  730. 3.12 (withdrawn).
  731. -----------------
  732. .. _faq3_13:
  733. 3.13 I get an error when entering ``USE`` followed by a db name containing an hyphen.
  734. -------------------------------------------------------------------------------------
  735. The tests I have made with MySQL 5.1.49 shows that the API does not
  736. accept this syntax for the USE command.
  737. .. _faq3_14:
  738. 3.14 I am not able to browse a table when I don't have the right to SELECT one of the columns.
  739. ----------------------------------------------------------------------------------------------
  740. This has been a known limitation of phpMyAdmin since the beginning and
  741. it's not likely to be solved in the future.
  742. .. _faq3_15:
  743. 3.15 (withdrawn).
  744. -----------------
  745. .. _faq3_16:
  746. 3.16 (withdrawn).
  747. -----------------
  748. .. _faq3_17:
  749. 3.17 (withdrawn).
  750. -----------------
  751. .. _faq3_18:
  752. 3.18 When I import a CSV file that contains multiple tables, they are lumped together into a single table.
  753. ----------------------------------------------------------------------------------------------------------
  754. There is no reliable way to differentiate tables in :term:`CSV` format. For the
  755. time being, you will have to break apart :term:`CSV` files containing multiple
  756. tables.
  757. .. _faq3_19:
  758. 3.19 When I import a file and have phpMyAdmin determine the appropriate data structure it only uses int, decimal, and varchar types.
  759. ------------------------------------------------------------------------------------------------------------------------------------
  760. Currently, the import type-detection system can only assign these
  761. MySQL types to columns. In future, more will likely be added but for
  762. the time being you will have to edit the structure to your liking
  763. post-import. Also, you should note the fact that phpMyAdmin will use
  764. the size of the largest item in any given column as the column size
  765. for the appropriate type. If you know you will be adding larger items
  766. to that column then you should manually adjust the column sizes
  767. accordingly. This is done for the sake of efficiency.
  768. .. _faq3_20:
  769. 3.20 After upgrading, some bookmarks are gone or their content cannot be shown.
  770. -------------------------------------------------------------------------------
  771. At some point, the character set used to store bookmark content has changed.
  772. It's better to recreate your bookmark from the newer phpMyAdmin version.
  773. .. _faq3_21:
  774. 3.21 I am unable to log in with a username containing unicode characters such as á.
  775. -----------------------------------------------------------------------------------
  776. This can happen if MySQL server is not configured to use utf-8 as default
  777. charset. This is a limitation of how PHP and the MySQL server interact; there
  778. is no way for PHP to set the charset before authenticating.
  779. .. seealso::
  780. `phpMyAdmin issue 12232 <https://github.com/phpmyadmin/phpmyadmin/issues/12232>`_,
  781. `MySQL documentation note <https://www.php.net/manual/en/mysqli.real-connect.php#refsect1-mysqli.real-connect-notes>`_
  782. .. _faqmultiuser:
  783. ISPs, multi-user installations
  784. ++++++++++++++++++++++++++++++
  785. .. _faq4_1:
  786. 4.1 I'm an ISP. Can I setup one central copy of phpMyAdmin or do I need to install it for each customer?
  787. --------------------------------------------------------------------------------------------------------
  788. Since version 2.0.3, you can setup a central copy of phpMyAdmin for all your
  789. users. The development of this feature was kindly sponsored by NetCologne GmbH.
  790. This requires a properly setup MySQL user management and phpMyAdmin
  791. :term:`HTTP` or cookie authentication.
  792. .. seealso:: :ref:`authentication_modes`
  793. .. _faq4_2:
  794. 4.2 What's the preferred way of making phpMyAdmin secure against evil access?
  795. -----------------------------------------------------------------------------
  796. This depends on your system. If you're running a server which cannot be
  797. accessed by other people, it's sufficient to use the directory protection
  798. bundled with your webserver (with Apache you can use :term:`.htaccess` files,
  799. for example). If other people have telnet access to your server, you should use
  800. phpMyAdmin's :term:`HTTP` or cookie authentication features.
  801. Suggestions:
  802. * Your :file:`config.inc.php` file should be ``chmod 660``.
  803. * All your phpMyAdmin files should be chown -R phpmy.apache, where phpmy
  804. is a user whose password is only known to you, and apache is the group
  805. under which Apache runs.
  806. * Follow security recommendations for PHP and your webserver.
  807. .. _faq4_3:
  808. 4.3 I get errors about not being able to include a file in */lang* or in */libraries*.
  809. --------------------------------------------------------------------------------------
  810. Check :file:`php.ini`, or ask your sysadmin to check it. The
  811. ``include_path`` must contain "." somewhere in it, and
  812. ``open_basedir``, if used, must contain "." and "./lang" to allow
  813. normal operation of phpMyAdmin.
  814. .. _faq4_4:
  815. 4.4 phpMyAdmin always gives "Access denied" when using HTTP authentication.
  816. ---------------------------------------------------------------------------
  817. This could happen for several reasons:
  818. * :config:option:`$cfg['Servers'][$i]['controluser']` and/or :config:option:`$cfg['Servers'][$i]['controlpass']` are wrong.
  819. * The username/password you specify in the login dialog are invalid.
  820. * You have already setup a security mechanism for the phpMyAdmin-
  821. directory, eg. a :term:`.htaccess` file. This would interfere with phpMyAdmin's
  822. authentication, so remove it.
  823. .. _faq4_5:
  824. 4.5 Is it possible to let users create their own databases?
  825. -----------------------------------------------------------
  826. Starting with 2.2.5, in the user management page, you can enter a
  827. wildcard database name for a user (for example "joe%"), and put the
  828. privileges you want. For example, adding ``SELECT, INSERT, UPDATE,
  829. DELETE, CREATE, DROP, INDEX, ALTER`` would let a user create/manage
  830. their database(s).
  831. .. _faq4_6:
  832. 4.6 How can I use the Host-based authentication additions?
  833. ----------------------------------------------------------
  834. If you have existing rules from an old :term:`.htaccess` file, you can take them and
  835. add a username between the ``'deny'``/``'allow'`` and ``'from'``
  836. strings. Using the username wildcard of ``'%'`` would be a major
  837. benefit here if your installation is suited to using it. Then you can
  838. just add those updated lines into the
  839. :config:option:`$cfg['Servers'][$i]['AllowDeny']['rules']` array.
  840. If you want a pre-made sample, you can try this fragment. It stops the
  841. 'root' user from logging in from any networks other than the private
  842. network :term:`IP` blocks.
  843. .. code-block:: php
  844. //block root from logging in except from the private networks
  845. $cfg['Servers'][$i]['AllowDeny']['order'] = 'deny,allow';
  846. $cfg['Servers'][$i]['AllowDeny']['rules'] = [
  847. 'deny root from all',
  848. 'allow root from localhost',
  849. 'allow root from 10.0.0.0/8',
  850. 'allow root from 192.168.0.0/16',
  851. 'allow root from 172.16.0.0/12',
  852. ];
  853. .. _faq4_7:
  854. 4.7 Authentication window is displayed more than once, why?
  855. -----------------------------------------------------------
  856. This happens if you are using a :term:`URL` to start phpMyAdmin which is
  857. different than the one set in your :config:option:`$cfg['PmaAbsoluteUri']`. For
  858. example, a missing "www", or entering with an :term:`IP` address while a domain
  859. name is defined in the config file.
  860. .. _faq4_8:
  861. 4.8 Which parameters can I use in the URL that starts phpMyAdmin?
  862. -----------------------------------------------------------------
  863. When starting phpMyAdmin, you can use the ``db``
  864. and ``server`` parameters. This last one can contain
  865. either the numeric host index (from ``$i`` of the configuration file)
  866. or one of the host names present in the configuration file.
  867. For example, to jump directly to a particular database, a URL can be constructed as
  868. ``https://example.com/phpmyadmin/?db=sakila``.
  869. .. seealso:: :ref:`faq1_34`
  870. .. versionchanged:: 4.9.0
  871. Support for using the ``pma_username`` and ``pma_password`` parameters was removed
  872. in phpMyAdmin 4.9.0 (see `PMASA-2019-4 <https://www.phpmyadmin.net/security/PMASA-2019-4/>`_).
  873. .. _faqbrowsers:
  874. Browsers or client OS
  875. +++++++++++++++++++++
  876. .. _faq5_1:
  877. 5.1 I get an out of memory error, and my controls are non-functional, when trying to create a table with more than 14 columns.
  878. ------------------------------------------------------------------------------------------------------------------------------
  879. We could reproduce this problem only under Win98/98SE. Testing under
  880. WinNT4 or Win2K, we could easily create more than 60 columns. A
  881. workaround is to create a smaller number of columns, then come back to
  882. your table properties and add the other columns.
  883. .. _faq5_2:
  884. 5.2 With Xitami 2.5b4, phpMyAdmin won't process form fields.
  885. ------------------------------------------------------------
  886. This is not a phpMyAdmin problem but a Xitami known bug: you'll face
  887. it with each script/website that use forms. Upgrade or downgrade your
  888. Xitami server.
  889. .. _faq5_3:
  890. 5.3 I have problems dumping tables with Konqueror (phpMyAdmin 2.2.2).
  891. ---------------------------------------------------------------------
  892. With Konqueror 2.1.1: plain dumps, zip and gzip dumps work ok, except
  893. that the proposed file name for the dump is always 'tbl\_dump.php'.
  894. The bzip2 dumps don't seem to work. With Konqueror 2.2.1: plain dumps
  895. work; zip dumps are placed into the user's temporary directory, so
  896. they must be moved before closing Konqueror, or else they disappear.
  897. gzip dumps give an error message. Testing needs to be done for
  898. Konqueror 2.2.2.
  899. .. _faq5_4:
  900. 5.4 I can't use the cookie authentication mode because Internet Explorer never stores the cookies.
  901. --------------------------------------------------------------------------------------------------
  902. MS Internet Explorer seems to be really buggy about cookies, at least
  903. till version 6.
  904. .. _faq5_5:
  905. 5.5 (withdrawn).
  906. ----------------------------------------------------------------------------
  907. .. _faq5_6:
  908. 5.6 (withdrawn).
  909. -----------------------------------------------------------------------------------------------------------------------------------------------------------------
  910. .. _faq5_7:
  911. 5.7 I refresh (reload) my browser, and come back to the welcome page.
  912. ---------------------------------------------------------------------
  913. Some browsers support right-clicking into the frame you want to
  914. refresh, just do this in the right frame.
  915. .. _faq5_8:
  916. 5.8 With Mozilla 0.9.7 I have problems sending a query modified in the query box.
  917. ---------------------------------------------------------------------------------
  918. Looks like a Mozilla bug: 0.9.6 was OK. We will keep an eye on future
  919. Mozilla versions.
  920. .. _faq5_9:
  921. 5.9 With Mozilla 0.9.? to 1.0 and Netscape 7.0-PR1 I can't type a whitespace in the SQL-Query edit area: the page scrolls down.
  922. -------------------------------------------------------------------------------------------------------------------------------
  923. This is a Mozilla bug (see bug #26882 at `BugZilla
  924. <https://bugzilla.mozilla.org/>`_).
  925. .. _faq5_10:
  926. 5.10 (withdrawn).
  927. -----------------------------------------------------------------------------------------
  928. .. _faq5_11:
  929. 5.11 Extended-ASCII characters like German umlauts are displayed wrong.
  930. -----------------------------------------------------------------------
  931. Please ensure that you have set your browser's character set to the
  932. one of the language file you have selected on phpMyAdmin's start page.
  933. Alternatively, you can try the auto detection mode that is supported
  934. by the recent versions of the most browsers.
  935. .. _faq5_12:
  936. 5.12 Mac OS X Safari browser changes special characters to "?".
  937. ---------------------------------------------------------------
  938. This issue has been reported by a :term:`macOS` user, who adds that Chimera,
  939. Netscape and Mozilla do not have this problem.
  940. .. _faq5_13:
  941. 5.13 (withdrawn)
  942. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  943. .. _faq5_14:
  944. 5.14 (withdrawn)
  945. ------------------------------------------------------------------------------------------------------------------
  946. .. _faq5_15:
  947. 5.15 (withdrawn)
  948. -----------------------------------------
  949. .. _faq5_16:
  950. 5.16 With Internet Explorer, I get "Access is denied" Javascript errors. Or I cannot make phpMyAdmin work under Windows.
  951. ------------------------------------------------------------------------------------------------------------------------
  952. Please check the following points:
  953. * Maybe you have defined your :config:option:`$cfg['PmaAbsoluteUri']` setting in
  954. :file:`config.inc.php` to an :term:`IP` address and you are starting phpMyAdmin
  955. with a :term:`URL` containing a domain name, or the reverse situation.
  956. * Security settings in IE and/or Microsoft Security Center are too high,
  957. thus blocking scripts execution.
  958. * The Windows Firewall is blocking Apache and MySQL. You must allow
  959. :term:`HTTP` ports (80 or 443) and MySQL
  960. port (usually 3306) in the "in" and "out" directions.
  961. .. _faq5_17:
  962. 5.17 With Firefox, I cannot delete rows of data or drop a database.
  963. -------------------------------------------------------------------
  964. Many users have confirmed that the Tabbrowser Extensions plugin they
  965. installed in their Firefox is causing the problem.
  966. .. _faq5_18:
  967. 5.18 (withdrawn)
  968. -----------------------------------------------------------------------------------------
  969. .. _faq5_19:
  970. 5.19 I get JavaScript errors in my browser.
  971. -------------------------------------------
  972. Issues have been reported with some combinations of browser
  973. extensions. To troubleshoot, disable all extensions then clear your
  974. browser cache to see if the problem goes away.
  975. .. _faq5_20:
  976. 5.20 I get errors about violating Content Security Policy.
  977. ----------------------------------------------------------
  978. If you see errors like:
  979. .. code-block:: text
  980. Refused to apply inline style because it violates the following Content Security Policy directive
  981. This is usually caused by some software, which wrongly rewrites
  982. :mailheader:`Content Security Policy` headers. Usually this is caused by
  983. antivirus proxy or browser addons which are causing such errors.
  984. If you see these errors, try disabling the HTTP proxy in antivirus or disable
  985. the :mailheader:`Content Security Policy` rewriting in it. If that doesn't
  986. help, try disabling browser extensions.
  987. Alternatively it can be also server configuration issue (if the webserver is
  988. configured to emit :mailheader:`Content Security Policy` headers, they can
  989. override the ones from phpMyAdmin).
  990. Programs known to cause these kind of errors:
  991. * Kaspersky Internet Security
  992. .. _faq5_21:
  993. 5.21 I get errors about potentially unsafe operation when browsing table or executing SQL query.
  994. ------------------------------------------------------------------------------------------------
  995. If you see errors like:
  996. .. code-block:: text
  997. A potentially unsafe operation has been detected in your request to this site.
  998. This is usually caused by web application firewall doing requests filtering. It
  999. tries to prevent SQL injection, however phpMyAdmin is tool designed to execute
  1000. SQL queries, thus it makes it unusable.
  1001. Please allow phpMyAdmin scripts from the web application firewall settings
  1002. or disable it completely for phpMyAdmin path.
  1003. Programs known to cause these kind of errors:
  1004. * Wordfence Web Application Firewall
  1005. .. _faqusing:
  1006. Using phpMyAdmin
  1007. ++++++++++++++++
  1008. .. _faq6_1:
  1009. 6.1 I can't insert new rows into a table / I can't create a table - MySQL brings up a SQL error.
  1010. ------------------------------------------------------------------------------------------------
  1011. Examine the :term:`SQL` error with care.
  1012. Often the problem is caused by specifying a wrong column-type. Common
  1013. errors include:
  1014. * Using ``VARCHAR`` without a size argument
  1015. * Using ``TEXT`` or ``BLOB`` with a size argument
  1016. Also, look at the syntax chapter in the MySQL manual to confirm that
  1017. your syntax is correct.
  1018. .. _faq6_2:
  1019. 6.2 When I create a table, I set an index for two columns and phpMyAdmin generates only one index with those two columns.
  1020. -------------------------------------------------------------------------------------------------------------------------
  1021. This is the way to create a multi-columns index. If you want two
  1022. indexes, create the first one when creating the table, save, then
  1023. display the table properties and click the Index link to create the
  1024. other index.
  1025. .. _faq6_3:
  1026. 6.3 How can I insert a null value into my table?
  1027. ------------------------------------------------
  1028. Since version 2.2.3, you have a checkbox for each column that can be
  1029. null. Before 2.2.3, you had to enter "null", without the quotes, as
  1030. the column's value. Since version 2.5.5, you have to use the checkbox
  1031. to get a real NULL value, so if you enter "NULL" this means you want a
  1032. literal NULL in the column, and not a NULL value (this works in PHP4).
  1033. .. _faq6_4:
  1034. 6.4 How can I backup my database or table?
  1035. ------------------------------------------
  1036. Click on a database or table name in the navigation panel, the properties will
  1037. be displayed. Then on the menu, click "Export", you can dump the structure, the
  1038. data, or both. This will generate standard :term:`SQL` statements that can be
  1039. used to recreate your database/table. You will need to choose "Save as file",
  1040. so that phpMyAdmin can transmit the resulting dump to your station. Depending
  1041. on your PHP configuration, you will see options to compress the dump. See also
  1042. the :config:option:`$cfg['ExecTimeLimit']` configuration variable. For
  1043. additional help on this subject, look for the word "dump" in this document.
  1044. .. _faq6_5:
  1045. 6.5 How can I restore (upload) my database or table using a dump? How can I run a ".sql" file?
  1046. ----------------------------------------------------------------------------------------------
  1047. Click on a database name in the navigation panel, the properties will
  1048. be displayed. Select "Import" from the list of tabs in the right–hand
  1049. frame (or ":term:`SQL`" if your phpMyAdmin
  1050. version is previous to 2.7.0). In the "Location of the text file"
  1051. section, type in the path to your dump filename, or use the Browse
  1052. button. Then click Go. With version 2.7.0, the import engine has been
  1053. re–written, if possible it is suggested that you upgrade to take
  1054. advantage of the new features. For additional help on this subject,
  1055. look for the word "upload" in this document.
  1056. Note: For errors while importing of dumps exported from older MySQL versions to newer MySQL versions,
  1057. please check :ref:`faq6_41`.
  1058. .. _faq6_6:
  1059. 6.6 How can I use the relation table in Query-by-example?
  1060. ---------------------------------------------------------
  1061. Here is an example with the tables persons, towns and countries, all
  1062. located in the database "mydb". If you don't have a ``pma__relation``
  1063. table, create it as explained in the configuration section. Then
  1064. create the example tables:
  1065. .. code-block:: mysql
  1066. CREATE TABLE REL_countries (
  1067. country_code char(1) NOT NULL default '',
  1068. description varchar(10) NOT NULL default '',
  1069. PRIMARY KEY (country_code)
  1070. ) ENGINE=MyISAM;
  1071. INSERT INTO REL_countries VALUES ('C', 'Canada');
  1072. CREATE TABLE REL_persons (
  1073. id tinyint(4) NOT NULL auto_increment,
  1074. person_name varchar(32) NOT NULL default '',
  1075. town_code varchar(5) default '0',
  1076. country_code char(1) NOT NULL default '',
  1077. PRIMARY KEY (id)
  1078. ) ENGINE=MyISAM;
  1079. INSERT INTO REL_persons VALUES (11, 'Marc', 'S', 'C');
  1080. INSERT INTO REL_persons VALUES (15, 'Paul', 'S', 'C');
  1081. CREATE TABLE REL_towns (
  1082. town_code varchar(5) NOT NULL default '0',
  1083. description varchar(30) NOT NULL default '',
  1084. PRIMARY KEY (town_code)
  1085. ) ENGINE=MyISAM;
  1086. INSERT INTO REL_towns VALUES ('S', 'Sherbrooke');
  1087. INSERT INTO REL_towns VALUES ('M', 'Montréal');
  1088. To setup appropriate links and display information:
  1089. * on table "REL\_persons" click Structure, then Relation view
  1090. * for "town\_code", choose from dropdowns, "mydb", "REL\_towns", "town\_code"
  1091. for foreign database, table and column respectively
  1092. * for "country\_code", choose from dropdowns, "mydb", "REL\_countries",
  1093. "country\_code" for foreign database, table and column respectively
  1094. * on table "REL\_towns" click Structure, then Relation view
  1095. * in "Choose column to display", choose "description"
  1096. * repeat the two previous steps for table "REL\_countries"
  1097. Then test like this:
  1098. * Click on your db name in the navigation panel
  1099. * Choose "Query"
  1100. * Use tables: persons, towns, countries
  1101. * Click "Update query"
  1102. * In the columns row, choose persons.person\_name and click the "Show"
  1103. tickbox
  1104. * Do the same for towns.description and countries.descriptions in the
  1105. other 2 columns
  1106. * Click "Update query" and you will see in the query box that the
  1107. correct joins have been generated
  1108. * Click "Submit query"
  1109. .. _faqdisplay:
  1110. 6.7 How can I use the "display column" feature?
  1111. -----------------------------------------------
  1112. Starting from the previous example, create the ``pma__table_info`` as
  1113. explained in the configuration section, then browse your persons
  1114. table, and move the mouse over a town code or country code. See also
  1115. :ref:`faq6_21` for an additional feature that "display column"
  1116. enables: drop-down list of possible values.
  1117. .. _faqpdf:
  1118. 6.8 How can I produce a PDF schema of my database?
  1119. --------------------------------------------------
  1120. First the configuration variables "relation", "table\_coords" and
  1121. "pdf\_pages" have to be filled in.
  1122. * Select your database in the navigation panel.
  1123. * Choose ":guilabel:`Designer`" in the navigation bar at the top.
  1124. * Move the tables the way you want them.
  1125. * Choose ":guilabel:`Export schema`" in the left menu.
  1126. * The export modal will open.
  1127. * Select the type of export to :term:`PDF`, you may adjust the other settings.
  1128. * Submit the form and the file will start downloading.
  1129. .. seealso::
  1130. :ref:`relations`
  1131. .. _faq6_9:
  1132. 6.9 phpMyAdmin is changing the type of one of my columns!
  1133. ---------------------------------------------------------
  1134. No, it's MySQL that is doing `silent column type changing
  1135. <https://dev.mysql.com/doc/refman/5.7/en/silent-column-changes.html>`_.
  1136. .. _underscore:
  1137. 6.10 When creating a privilege, what happens with underscores in the database name?
  1138. -----------------------------------------------------------------------------------
  1139. If you do not put a backslash before the underscore, this is a
  1140. wildcard grant, and the underscore means "any character". So, if the
  1141. database name is "john\_db", the user would get rights to john1db,
  1142. john2db ... If you put a backslash before the underscore, it means
  1143. that the database name will have a real underscore.
  1144. .. _faq6_11:
  1145. 6.11 What is the curious symbol ø in the statistics pages?
  1146. ----------------------------------------------------------
  1147. It means "average".
  1148. .. _faqexport:
  1149. 6.12 I want to understand some Export options.
  1150. ----------------------------------------------
  1151. **Structure:**
  1152. * "Add DROP TABLE" will add a line telling MySQL to `drop the table
  1153. <https://dev.mysql.com/doc/refman/5.7/en/drop-table.html>`_, if it already
  1154. exists during the import. It does NOT drop the table after your
  1155. export, it only affects the import file.
  1156. * "If Not Exists" will only create the table if it doesn't exist.
  1157. Otherwise, you may get an error if the table name exists but has a
  1158. different structure.
  1159. * "Add AUTO\_INCREMENT value" ensures that AUTO\_INCREMENT value (if
  1160. any) will be included in backup.
  1161. * "Enclose table and column names with backquotes" ensures that column
  1162. and table names formed with special characters are protected.
  1163. * "Add into comments" includes column comments, relations, and media
  1164. types set in the pmadb in the dump as :term:`SQL` comments
  1165. (*/\* xxx \*/*).
  1166. **Data:**
  1167. * "Complete inserts" adds the column names on every INSERT command, for
  1168. better documentation (but resulting file is bigger).
  1169. * "Extended inserts" provides a shorter dump file by using only once the
  1170. INSERT verb and the table name.
  1171. * "Delayed inserts" are best explained in the `MySQL manual - INSERT DELAYED Syntax
  1172. <https://dev.mysql.com/doc/refman/5.7/en/insert-delayed.html>`_.
  1173. * "Ignore inserts" treats errors as a warning instead. Again, more info
  1174. is provided in the `MySQL manual - INSERT Syntax
  1175. <https://dev.mysql.com/doc/refman/5.7/en/insert.html>`_, but basically with
  1176. this selected, invalid values are adjusted and inserted rather than
  1177. causing the entire statement to fail.
  1178. .. _faq6_13:
  1179. 6.13 I would like to create a database with a dot in its name.
  1180. --------------------------------------------------------------
  1181. This is a bad idea, because in MySQL the syntax "database.table" is
  1182. the normal way to reference a database and table name. Worse, MySQL
  1183. will usually let you create a database with a dot, but then you cannot
  1184. work with it, nor delete it.
  1185. .. _faqsqlvalidator:
  1186. 6.14 (withdrawn).
  1187. -----------------
  1188. .. _faq6_15:
  1189. 6.15 I want to add a BLOB column and put an index on it, but MySQL says "BLOB column '...' used in key specification without a key length".
  1190. -------------------------------------------------------------------------------------------------------------------------------------------
  1191. The right way to do this, is to create the column without any indexes,
  1192. then display the table structure and use the "Create an index" dialog.
  1193. On this page, you will be able to choose your BLOB column, and set a
  1194. size to the index, which is the condition to create an index on a BLOB
  1195. column.
  1196. .. _faq6_16:
  1197. 6.16 How can I simply move in page with plenty editing fields?
  1198. --------------------------------------------------------------
  1199. You can use :kbd:`Ctrl+arrows` (:kbd:`Option+Arrows` in Safari) for moving on
  1200. most pages with many editing fields (table structure changes, row editing,
  1201. etc.).
  1202. .. _faq6_17:
  1203. 6.17 Transformations: I can't enter my own mimetype! What is this feature then useful for?
  1204. ------------------------------------------------------------------------------------------
  1205. Defining mimetypes is of no use if you can't put
  1206. transformations on them. Otherwise you could just put a comment on the
  1207. column. Because entering your own mimetype will cause serious syntax
  1208. checking issues and validation, this introduces a high-risk false-
  1209. user-input situation. Instead you have to initialize mimetypes using
  1210. functions or empty mimetype definitions.
  1211. Plus, you have a whole overview of available mimetypes. Who knows all those
  1212. mimetypes by heart so they can enter it at will?
  1213. .. _faqbookmark:
  1214. 6.18 Bookmarks: Where can I store bookmarks? Why can't I see any bookmarks below the query box? What are these variables for?
  1215. -----------------------------------------------------------------------------------------------------------------------------
  1216. You need to have configured the :ref:`linked-tables` for using bookmarks
  1217. feature. Once you have done that, you can use bookmarks in the :guilabel:`SQL` tab.
  1218. .. seealso:: :ref:`bookmarks`
  1219. .. _faq6_19:
  1220. 6.19 How can I create simple LATEX document to include exported table?
  1221. ----------------------------------------------------------------------
  1222. You can simply include table in your LATEX documents,
  1223. minimal sample document should look like following one (assuming you
  1224. have table exported in file :file:`table.tex`):
  1225. .. code-block:: latex
  1226. \documentclass{article} % or any class you want
  1227. \usepackage{longtable} % for displaying table
  1228. \begin{document} % start of document
  1229. \include{table} % including exported table
  1230. \end{document} % end of document
  1231. .. _faq6_20:
  1232. 6.20 I see a lot of databases which are not mine, and cannot access them.
  1233. -------------------------------------------------------------------------
  1234. You have one of these global privileges: CREATE TEMPORARY TABLES, SHOW
  1235. DATABASES, LOCK TABLES. Those privileges also enable users to see all the
  1236. database names. So if your users do not need those privileges, you can remove
  1237. them and their databases list will shorten.
  1238. .. seealso:: <https://bugs.mysql.com/bug.php?id=179>
  1239. .. _faq6_21:
  1240. 6.21 In edit/insert mode, how can I see a list of possible values for a column, based on some foreign table?
  1241. ------------------------------------------------------------------------------------------------------------
  1242. You have to setup appropriate links between the tables, and also setup
  1243. the "display column" in the foreign table. See :ref:`faq6_6` for an
  1244. example. Then, if there are 100 values or less in the foreign table, a
  1245. drop-down list of values will be available. You will see two lists of
  1246. values, the first list containing the key and the display column, the
  1247. second list containing the display column and the key. The reason for
  1248. this is to be able to type the first letter of either the key or the
  1249. display column. For 100 values or more, a distinct window will appear,
  1250. to browse foreign key values and choose one. To change the default
  1251. limit of 100, see :config:option:`$cfg['ForeignKeyMaxLimit']`.
  1252. .. _faq6_22:
  1253. 6.22 Bookmarks: Can I execute a default bookmark automatically when entering Browse mode for a table?
  1254. -----------------------------------------------------------------------------------------------------
  1255. Yes. If a bookmark has the same label as a table name and it's not a
  1256. public bookmark, it will be executed.
  1257. .. seealso:: :ref:`bookmarks`
  1258. .. _faq6_23:
  1259. 6.23 Export: I heard phpMyAdmin can export Microsoft Excel files?
  1260. -----------------------------------------------------------------
  1261. You can use :term:`CSV` for Microsoft Excel,
  1262. which works out of the box.
  1263. .. versionchanged:: 3.4.5
  1264. Since phpMyAdmin 3.4.5 support for direct export to Microsoft Excel version
  1265. 97 and newer was dropped.
  1266. .. _faq6_24:
  1267. 6.24 Now that phpMyAdmin supports native MySQL 4.1.x column comments, what happens to my column comments stored in pmadb?
  1268. -------------------------------------------------------------------------------------------------------------------------
  1269. Automatic migration of a table's pmadb-style column comments to the
  1270. native ones is done whenever you enter Structure page for this table.
  1271. .. _faq6_25:
  1272. 6.25 (withdrawn).
  1273. -----------------
  1274. .. _faq6_26:
  1275. 6.26 How can I select a range of rows?
  1276. --------------------------------------
  1277. Click the first row of the range, hold the shift key and click the
  1278. last row of the range. This works everywhere you see rows, for example
  1279. in Browse mode or on the Structure page.
  1280. .. _faq6_27:
  1281. 6.27 What format strings can I use?
  1282. -----------------------------------
  1283. In all places where phpMyAdmin accepts format strings, you can use
  1284. ``@VARIABLE@`` expansion and `strftime <https://www.php.net/strftime>`_
  1285. format strings. The expanded variables depend on a context (for
  1286. example, if you haven't chosen a table, you can not get the table
  1287. name), but the following variables can be used:
  1288. ``@HTTP_HOST@``
  1289. HTTP host that runs phpMyAdmin
  1290. ``@SERVER@``
  1291. MySQL server name
  1292. ``@VERBOSE@``
  1293. Verbose MySQL server name as defined in :config:option:`$cfg['Servers'][$i]['verbose']`
  1294. ``@VSERVER@``
  1295. Verbose MySQL server name if set, otherwise normal
  1296. ``@DATABASE@``
  1297. Currently opened database
  1298. ``@TABLE@``
  1299. Currently opened table
  1300. ``@COLUMNS@``
  1301. Columns of the currently opened table
  1302. ``@PHPMYADMIN@``
  1303. phpMyAdmin with version
  1304. .. _faq6_28:
  1305. 6.28 (withdrawn).
  1306. -----------------
  1307. .. _faq6_29:
  1308. 6.29 Why can't I get a chart from my query result table?
  1309. --------------------------------------------------------
  1310. Not every table can be put to the chart. Only tables with one, two or
  1311. three columns can be visualised as a chart. Moreover the table must be
  1312. in a special format for chart script to understand it. Currently
  1313. supported formats can be found in :ref:`charts`.
  1314. .. _faq6_30:
  1315. 6.30 Import: How can I import ESRI Shapefiles?
  1316. ----------------------------------------------
  1317. An ESRI Shapefile is actually a set of several files, where .shp file
  1318. contains geometry data and .dbf file contains data related to those
  1319. geometry data. To read data from .dbf file you need to have PHP
  1320. compiled with the dBase extension (--enable-dbase). Otherwise only
  1321. geometry data will be imported.
  1322. To upload these set of files you can use either of the following
  1323. methods:
  1324. Configure upload directory with :config:option:`$cfg['UploadDir']`, upload both .shp and .dbf files with
  1325. the same filename and chose the .shp file from the import page.
  1326. Create a zip archive with .shp and .dbf files and import it. For this
  1327. to work, you need to set :config:option:`$cfg['TempDir']` to a place where the web server user can
  1328. write (for example ``'./tmp'``).
  1329. To create the temporary directory on a UNIX-based system, you can do:
  1330. .. code-block:: sh
  1331. cd phpMyAdmin
  1332. mkdir tmp
  1333. chmod o+rwx tmp
  1334. .. _faq6_31:
  1335. 6.31 How do I create a relation in designer?
  1336. --------------------------------------------
  1337. To select relation, click: The display column is shown in pink. To
  1338. set/unset a column as the display column, click the "Choose column to
  1339. display" icon, then click on the appropriate column name.
  1340. .. _faq6_32:
  1341. 6.32 How can I use the zoom search feature?
  1342. -------------------------------------------
  1343. The Zoom search feature is an alternative to table search feature. It allows
  1344. you to explore a table by representing its data in a scatter plot. You can
  1345. locate this feature by selecting a table and clicking the :guilabel:`Search`
  1346. tab. One of the sub-tabs in the :guilabel:`Table Search` page is
  1347. :guilabel:`Zoom Search`.
  1348. Consider the table REL\_persons in :ref:`faq6_6` for
  1349. an example. To use zoom search, two columns need to be selected, for
  1350. example, id and town\_code. The id values will be represented on one
  1351. axis and town\_code values on the other axis. Each row will be
  1352. represented as a point in a scatter plot based on its id and
  1353. town\_code. You can include two additional search criteria apart from
  1354. the two fields to display.
  1355. You can choose which field should be
  1356. displayed as label for each point. If a display column has been set
  1357. for the table (see :ref:`faqdisplay`), it is taken as the label unless
  1358. you specify otherwise. You can also select the maximum number of rows
  1359. you want to be displayed in the plot by specifing it in the 'Max rows
  1360. to plot' field. Once you have decided over your criteria, click 'Go'
  1361. to display the plot.
  1362. After the plot is generated, you can use the
  1363. mouse wheel to zoom in and out of the plot. In addition, panning
  1364. feature is enabled to navigate through the plot. You can zoom-in to a
  1365. certain level of detail and use panning to locate your area of
  1366. interest. Clicking on a point opens a dialogue box, displaying field
  1367. values of the data row represented by the point. You can edit the
  1368. values if required and click on submit to issue an update query. Basic
  1369. instructions on how to use can be viewed by clicking the 'How to use?'
  1370. link located just above the plot.
  1371. .. _faq6_33:
  1372. 6.33 When browsing a table, how can I copy a column name?
  1373. ---------------------------------------------------------
  1374. Selecting the name of the column within the browse table header cell
  1375. for copying is difficult, as the columns support reordering by
  1376. dragging the header cells as well as sorting by clicking on the linked
  1377. column name. To copy a column name, double-click on the empty area
  1378. next to the column name, when the tooltip tells you to do so. This
  1379. will show you an input box with the column name. You may right-click
  1380. the column name within this input box to copy it to your clipboard.
  1381. .. _faq6_34:
  1382. 6.34 How can I use the Favorite Tables feature?
  1383. ---------------------------------------------------------
  1384. Favorite Tables feature is very much similar to Recent Tables feature.
  1385. It allows you to add a shortcut for the frequently used tables of any
  1386. database in the navigation panel . You can easily navigate to any table
  1387. in the list by simply choosing it from the list. These tables are stored
  1388. in your browser's local storage if you have not configured your
  1389. `phpMyAdmin Configuration Storage`. Otherwise these entries are stored in
  1390. `phpMyAdmin Configuration Storage`.
  1391. IMPORTANT: In absence of `phpMyAdmin Configuration Storage`, your Favorite
  1392. tables may be different in different browsers based on your different
  1393. selections in them.
  1394. To add a table to Favorite list simply click on the `Gray` star in front
  1395. of a table name in the list of tables of a Database and wait until it
  1396. turns to `Yellow`.
  1397. To remove a table from list, simply click on the `Yellow` star and
  1398. wait until it turns `Gray` again.
  1399. Using :config:option:`$cfg['NumFavoriteTables']` in your :file:`config.inc.php`
  1400. file, you can define the maximum number of favorite tables shown in the
  1401. navigation panel. Its default value is `10`.
  1402. .. _faq6_35:
  1403. 6.35 How can I use the Range search feature?
  1404. ---------------------------------------------------------
  1405. With the help of range search feature, one can specify a range of values for
  1406. particular column(s) while performing search operation on a table from the `Search`
  1407. tab.
  1408. To use this feature simply click on the `BETWEEN` or `NOT BETWEEN` operators
  1409. from the operator select list in front of the column name. On choosing one of the
  1410. above options, a dialog box will show up asking for the `Minimum` and `Maximum`
  1411. value for that column. Only the specified range of values will be included
  1412. in case of `BETWEEN` and excluded in case of `NOT BETWEEN` from the final results.
  1413. Note: The Range search feature will work only `Numeric` and `Date` data type columns.
  1414. .. _faq6_36:
  1415. 6.36 What is Central columns and how can I use this feature?
  1416. ------------------------------------------------------------
  1417. As the name suggests, the Central columns feature enables to maintain a central list of
  1418. columns per database to avoid similar name for the same data element and bring consistency
  1419. of data type for the same data element. You can use the central list of columns to
  1420. add an element to any table structure in that database which will save from writing
  1421. similar column name and column definition.
  1422. To add a column to central list, go to table structure page, check the columns you want
  1423. to include and then simply click on "Add to central columns". If you want to add all
  1424. unique columns from more than one table from a database then go to database structure page,
  1425. check the tables you want to include and then select "Add columns to central list".
  1426. To remove a column from central list, go to Table structure page, check the columns you want
  1427. to remove and then simply click on "Remove from central columns". If you want to remove all
  1428. columns from more than one tables from a database then go to database structure page,
  1429. check the tables you want to include and then select "Remove columns from central list".
  1430. To view and manage the central list, select the database you want to manage central columns
  1431. for then from the top menu click on "Central columns". You will be taken to a page where
  1432. you will have options to edit, delete or add new columns to central list.
  1433. .. _faq6_37:
  1434. 6.37 How can I use Improve Table structure feature?
  1435. ---------------------------------------------------------
  1436. Improve table structure feature helps to bring the table structure upto
  1437. Third Normal Form. A wizard is presented to user which asks questions about the
  1438. elements during the various steps for normalization and a new structure is proposed
  1439. accordingly to bring the table into the First/Second/Third Normal form.
  1440. On startup of the wizard, user gets to select upto what normal form they want to
  1441. normalize the table structure.
  1442. Here is an example table which you can use to test all of the three First, Second and
  1443. Third Normal Form.
  1444. .. code-block:: mysql
  1445. CREATE TABLE `VetOffice` (
  1446. `petName` varchar(64) NOT NULL,
  1447. `petBreed` varchar(64) NOT NULL,
  1448. `petType` varchar(64) NOT NULL,
  1449. `petDOB` date NOT NULL,
  1450. `ownerLastName` varchar(64) NOT NULL,
  1451. `ownerFirstName` varchar(64) NOT NULL,
  1452. `ownerPhone1` int(12) NOT NULL,
  1453. `ownerPhone2` int(12) NOT NULL,
  1454. `ownerEmail` varchar(64) NOT NULL,
  1455. );
  1456. The above table is not in First normal Form as no :term:`primary key` exists. Primary key
  1457. is supposed to be (`petName`,`ownerLastName`,`ownerFirstName`) . If the :term:`primary key`
  1458. is chosen as suggested the resultant table won't be in Second as well as Third Normal
  1459. form as the following dependencies exists.
  1460. .. code-block:: mysql
  1461. (OwnerLastName, OwnerFirstName) -> OwnerEmail
  1462. (OwnerLastName, OwnerFirstName) -> OwnerPhone
  1463. PetBreed -> PetType
  1464. Which says, OwnerEmail depends on OwnerLastName and OwnerFirstName.
  1465. OwnerPhone depends on OwnerLastName and OwnerFirstName.
  1466. PetType depends on PetBreed.
  1467. .. _faq6_38:
  1468. 6.38 How can I reassign auto-incremented values?
  1469. ------------------------------------------------
  1470. Some users prefer their AUTO_INCREMENT values to be consecutive; this is not
  1471. always the case after row deletion.
  1472. Here are the steps to accomplish this. These are manual steps because they
  1473. involve a manual verification at one point.
  1474. * Ensure that you have exclusive access to the table to rearrange
  1475. * On your :term:`primary key` column (i.e. id), remove the AUTO_INCREMENT setting
  1476. * Delete your primary key in Structure > indexes
  1477. * Create a new column future_id as primary key, AUTO_INCREMENT
  1478. * Browse your table and verify that the new increments correspond to what
  1479. you're expecting
  1480. * Drop your old id column
  1481. * Rename the future_id column to id
  1482. * Move the new id column via Structure > Move columns
  1483. .. _faq6_39:
  1484. 6.39 What is the "Adjust privileges" option when renaming, copying, or moving a database, table, column, or procedure?
  1485. ----------------------------------------------------------------------------------------------------------------------
  1486. When renaming/copying/moving a database/table/column/procedure,
  1487. MySQL does not adjust the original privileges relating to these objects
  1488. on its own. By selecting this option, phpMyAdmin will adjust the privilege
  1489. table so that users have the same privileges on the new items.
  1490. For example: A user 'bob'@'localhost' has a 'SELECT' privilege on a
  1491. column named 'id'. Now, if this column is renamed to 'id_new', MySQL,
  1492. on its own, would **not** adjust the column privileges to the new column name.
  1493. phpMyAdmin can make this adjustment for you automatically.
  1494. Notes:
  1495. * While adjusting privileges for a database, the privileges of all
  1496. database-related elements (tables, columns and procedures) are also adjusted
  1497. to the database's new name.
  1498. * Similarly, while adjusting privileges for a table, the privileges of all
  1499. the columns inside the new table are also adjusted.
  1500. * While adjusting privileges, the user performing the operation **must** have the following
  1501. privileges:
  1502. * SELECT, INSERT, UPDATE, DELETE privileges on following tables:
  1503. `mysql`.`db`, `mysql`.`columns_priv`, `mysql`.`tables_priv`, `mysql`.`procs_priv`
  1504. * FLUSH privilege (GLOBAL)
  1505. Thus, if you want to replicate the database/table/column/procedure as it is
  1506. while renaming/copying/moving these objects, make sure you have checked this option.
  1507. .. _faq6_40:
  1508. 6.40 I see "Bind parameters" checkbox in the "SQL" page. How do I write parameterized SQL queries?
  1509. --------------------------------------------------------------------------------------------------
  1510. From version 4.5, phpMyAdmin allows users to execute parameterized queries in the "SQL" page.
  1511. Parameters should be prefixed with a colon(:) and when the "Bind parameters" checkbox is checked
  1512. these parameters will be identified and input fields for these parameters will be presented.
  1513. Values entered in these field will be substituted in the query before being executed.
  1514. .. _faq6_41:
  1515. 6.41 I get import errors while importing the dumps exported from older MySQL versions (pre-5.7.6) into newer MySQL versions (5.7.7+), but they work fine when imported back on same older versions ?
  1516. --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  1517. If you get errors like *#1031 - Table storage engine for 'table_name' doesn't have this option*
  1518. while importing the dumps exported from pre-5.7.7 MySQL servers into new MySQL server versions 5.7.7+,
  1519. it might be because ROW_FORMAT=FIXED is not supported with InnoDB tables. Moreover, the value of
  1520. `innodb_strict_mode <https://dev.mysql.com/doc/refman/5.7/en/innodb-parameters.html#sysvar_innodb_strict_mode>`_ would define if this would be reported as a warning or as an error.
  1521. Since MySQL version 5.7.9, the default value for `innodb_strict_mode` is `ON` and thus would generate
  1522. an error when such a CREATE TABLE or ALTER TABLE statement is encountered.
  1523. There are two ways of preventing such errors while importing:
  1524. * Change the value of `innodb_strict_mode` to `OFF` before starting the import and turn it `ON` after
  1525. the import is successfully completed.
  1526. * This can be achieved in two ways:
  1527. * Go to 'Variables' page and edit the value of `innodb_strict_mode`
  1528. * Run the query : `SET GLOBAL `innodb_strict_mode` = '[value]'`
  1529. After the import is done, it is suggested that the value of `innodb_strict_mode` should be reset to the
  1530. original value.
  1531. .. _faqproject:
  1532. phpMyAdmin project
  1533. ++++++++++++++++++
  1534. .. _faq7_1:
  1535. 7.1 I have found a bug. How do I inform developers?
  1536. ---------------------------------------------------
  1537. Our issues tracker is located at <https://github.com/phpmyadmin/phpmyadmin/issues>.
  1538. For security issues, please refer to the instructions at <https://www.phpmyadmin.net/security> to email
  1539. the developers directly.
  1540. .. _faq7_2:
  1541. 7.2 I want to translate the messages to a new language or upgrade an existing language, where do I start?
  1542. ---------------------------------------------------------------------------------------------------------
  1543. Translations are very welcome and all you need to have are the
  1544. language skills. The easiest way is to use our `online translation
  1545. service <https://hosted.weblate.org/projects/phpmyadmin/>`_. You can check
  1546. out all the possibilities to translate in the `translate section on
  1547. our website <https://www.phpmyadmin.net/translate/>`_.
  1548. .. _faq7_3:
  1549. 7.3 I would like to help out with the development of phpMyAdmin. How should I proceed?
  1550. --------------------------------------------------------------------------------------
  1551. We welcome every contribution to the development of phpMyAdmin. You
  1552. can check out all the possibilities to contribute in the `contribute
  1553. section on our website
  1554. <https://www.phpmyadmin.net/contribute/>`_.
  1555. .. seealso:: :ref:`developers`
  1556. .. _faqsecurity:
  1557. Security
  1558. ++++++++
  1559. .. _faq8_1:
  1560. 8.1 Where can I get information about the security alerts issued for phpMyAdmin?
  1561. --------------------------------------------------------------------------------
  1562. Please refer to <https://www.phpmyadmin.net/security/>.
  1563. .. _faq8_2:
  1564. 8.2 How can I protect phpMyAdmin against brute force attacks?
  1565. -------------------------------------------------------------
  1566. If you use Apache web server, phpMyAdmin exports information about
  1567. authentication to the Apache environment and it can be used in Apache
  1568. logs. Currently there are two variables available:
  1569. ``userID``
  1570. User name of currently active user (they do not have to be logged in).
  1571. ``userStatus``
  1572. Status of currently active user, one of ``ok`` (user is logged in),
  1573. ``mysql-denied`` (MySQL denied user login), ``allow-denied`` (user denied
  1574. by allow/deny rules), ``root-denied`` (root is denied in configuration),
  1575. ``empty-denied`` (empty password is denied).
  1576. ``LogFormat`` directive for Apache can look like following:
  1577. .. code-block:: apache
  1578. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %{userID}n %{userStatus}n" pma_combined
  1579. You can then use any log analyzing tools to detect possible break-in
  1580. attempts.
  1581. .. _faq8_3:
  1582. 8.3 Why are there path disclosures when directly loading certain files?
  1583. -----------------------------------------------------------------------
  1584. This is a server configuration problem. Never enable ``display_errors`` on a production site.
  1585. .. _faq8_4:
  1586. 8.4 CSV files exported from phpMyAdmin could allow a formula injection attack.
  1587. ------------------------------------------------------------------------------
  1588. It is possible to generate a :term:`CSV` file that, when imported to a spreadsheet program such as Microsoft Excel,
  1589. could potentially allow the execution of arbitrary commands.
  1590. The CSV files generated by phpMyAdmin could potentially contain text that would be interpreted by a spreadsheet program as
  1591. a formula, but we do not believe escaping those fields is the proper behavior. There is no means to properly escape and
  1592. differentiate between a desired text output and a formula that should be escaped, and CSV is a text format where function
  1593. definitions should not be interpreted anyway. We have discussed this at length and feel it is the responsibility of the
  1594. spreadsheet program to properly parse and sanitize such data on input instead.
  1595. Google also has a `similar view <https://sites.google.com/site/bughunteruniversity/nonvuln/csv-excel-formula-injection>`_.
  1596. .. _faqsynchronization:
  1597. Synchronization
  1598. +++++++++++++++
  1599. .. _faq9_1:
  1600. 9.1 (withdrawn).
  1601. ----------------
  1602. .. _faq9_2:
  1603. 9.2 (withdrawn).
  1604. ----------------