faq.rst.txt 91 KB

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