faq.html 199 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <title>FAQ - Frequently Asked Questions &#8212; phpMyAdmin 4.9.10 documentation</title>
  7. <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
  8. <link rel="stylesheet" href="_static/classic.css" type="text/css" />
  9. <script id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
  10. <script src="_static/jquery.js"></script>
  11. <script src="_static/underscore.js"></script>
  12. <script src="_static/doctools.js"></script>
  13. <link rel="index" title="Index" href="genindex.html" />
  14. <link rel="search" title="Search" href="search.html" />
  15. <link rel="copyright" title="Copyright" href="copyright.html" />
  16. <link rel="next" title="Developers Information" href="developers.html" />
  17. <link rel="prev" title="Other sources of information" href="other.html" />
  18. </head><body>
  19. <div class="related" role="navigation" aria-label="related navigation">
  20. <h3>Navigation</h3>
  21. <ul>
  22. <li class="right" style="margin-right: 10px">
  23. <a href="genindex.html" title="General Index"
  24. accesskey="I">index</a></li>
  25. <li class="right" >
  26. <a href="developers.html" title="Developers Information"
  27. accesskey="N">next</a> |</li>
  28. <li class="right" >
  29. <a href="other.html" title="Other sources of information"
  30. accesskey="P">previous</a> |</li>
  31. <li class="nav-item nav-item-0"><a href="index.html">phpMyAdmin 4.9.10 documentation</a> &#187;</li>
  32. <li class="nav-item nav-item-this"><a href="">FAQ - Frequently Asked Questions</a></li>
  33. </ul>
  34. </div>
  35. <div class="document">
  36. <div class="documentwrapper">
  37. <div class="bodywrapper">
  38. <div class="body" role="main">
  39. <div class="section" id="faq-frequently-asked-questions">
  40. <span id="faq"></span><h1>FAQ - Frequently Asked Questions<a class="headerlink" href="#faq-frequently-asked-questions" title="Permalink to this headline">¶</a></h1>
  41. <p>Please have a look at our <a class="reference external" href="https://www.phpmyadmin.net/docs/">Link section</a> on the official
  42. phpMyAdmin homepage for in-depth coverage of phpMyAdmin’s features and
  43. or interface.</p>
  44. <div class="section" id="server">
  45. <span id="faqserver"></span><h2>Server<a class="headerlink" href="#server" title="Permalink to this headline">¶</a></h2>
  46. <div class="section" id="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">
  47. <span id="faq1-1"></span><h3>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?<a class="headerlink" href="#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" title="Permalink to this headline">¶</a></h3>
  48. <p>Try to set the <span class="target" id="index-0"></span><a class="reference internal" href="config.html#cfg_OBGzip"><code class="xref config config-option docutils literal notranslate"><span class="pre">$cfg['OBGzip']</span></code></a> directive to <code class="docutils literal notranslate"><span class="pre">false</span></code> in your
  49. <code class="file docutils literal notranslate"><span class="pre">config.inc.php</span></code> file and the <code class="docutils literal notranslate"><span class="pre">zlib.output_compression</span></code> directive to
  50. <code class="docutils literal notranslate"><span class="pre">Off</span></code> in your php configuration file.</p>
  51. </div>
  52. <div class="section" id="my-apache-server-crashes-when-using-phpmyadmin">
  53. <span id="faq1-2"></span><h3>1.2 My Apache server crashes when using phpMyAdmin.<a class="headerlink" href="#my-apache-server-crashes-when-using-phpmyadmin" title="Permalink to this headline">¶</a></h3>
  54. <p>You should first try the latest versions of Apache (and possibly MySQL). If
  55. your server keeps crashing, please ask for help in the various Apache support
  56. groups.</p>
  57. <div class="admonition seealso">
  58. <p class="admonition-title">See also</p>
  59. <p><a class="reference internal" href="#faq1-1"><span class="std std-ref">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?</span></a></p>
  60. </div>
  61. </div>
  62. <div class="section" id="withdrawn">
  63. <span id="faq1-3"></span><h3>1.3 (withdrawn).<a class="headerlink" href="#withdrawn" title="Permalink to this headline">¶</a></h3>
  64. </div>
  65. <div class="section" id="using-phpmyadmin-on-iis-i-m-displayed-the-error-message-the-specified-cgi-application-misbehaved-by-not-returning-a-complete-set-of-http-headers">
  66. <span id="faq1-4"></span><h3>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 …”.<a class="headerlink" href="#using-phpmyadmin-on-iis-i-m-displayed-the-error-message-the-specified-cgi-application-misbehaved-by-not-returning-a-complete-set-of-http-headers" title="Permalink to this headline">¶</a></h3>
  67. <p>You just forgot to read the <em>install.txt</em> file from the PHP
  68. distribution. Have a look at the last message in this <a class="reference external" href="https://bugs.php.net/bug.php?id=12061">PHP bug report #12061</a> from the official PHP bug
  69. database.</p>
  70. </div>
  71. <div class="section" id="using-phpmyadmin-on-iis-i-m-facing-crashes-and-or-many-error-messages-with-the-http">
  72. <span id="faq1-5"></span><h3>1.5 Using phpMyAdmin on IIS, I’m facing crashes and/or many error messages with the HTTP.<a class="headerlink" href="#using-phpmyadmin-on-iis-i-m-facing-crashes-and-or-many-error-messages-with-the-http" title="Permalink to this headline">¶</a></h3>
  73. <p>This is a known problem with the PHP <a class="reference internal" href="glossary.html#term-ISAPI"><span class="xref std std-term">ISAPI</span></a> filter: it’s not so stable.
  74. Please use instead the cookie authentication mode.</p>
  75. </div>
  76. <div class="section" id="i-can-t-use-phpmyadmin-on-pws-nothing-is-displayed">
  77. <span id="faq1-6"></span><h3>1.6 I can’t use phpMyAdmin on PWS: nothing is displayed!<a class="headerlink" href="#i-can-t-use-phpmyadmin-on-pws-nothing-is-displayed" title="Permalink to this headline">¶</a></h3>
  78. <p>This seems to be a PWS bug. Filippo Simoncini found a workaround (at
  79. this time there is no better fix): remove or comment the <code class="docutils literal notranslate"><span class="pre">DOCTYPE</span></code>
  80. declarations (2 lines) from the scripts <code class="file docutils literal notranslate"><span class="pre">libraries/Header.class.php</span></code>
  81. and <code class="file docutils literal notranslate"><span class="pre">index.php</span></code>.</p>
  82. </div>
  83. <div class="section" id="how-can-i-gzip-a-dump-or-a-csv-export-it-does-not-seem-to-work">
  84. <span id="faq1-7"></span><h3>1.7 How can I gzip a dump or a CSV export? It does not seem to work.<a class="headerlink" href="#how-can-i-gzip-a-dump-or-a-csv-export-it-does-not-seem-to-work" title="Permalink to this headline">¶</a></h3>
  85. <p>This feature is based on the <code class="docutils literal notranslate"><span class="pre">gzencode()</span></code>
  86. PHP function to be more independent of the platform (Unix/Windows,
  87. Safe Mode or not, and so on). So, you must have Zlib support
  88. (<code class="docutils literal notranslate"><span class="pre">--with-zlib</span></code>).</p>
  89. </div>
  90. <div class="section" id="i-cannot-insert-a-text-file-in-a-table-and-i-get-an-error-about-safe-mode-being-in-effect">
  91. <span id="faq1-8"></span><h3>1.8 I cannot insert a text file in a table, and I get an error about safe mode being in effect.<a class="headerlink" href="#i-cannot-insert-a-text-file-in-a-table-and-i-get-an-error-about-safe-mode-being-in-effect" title="Permalink to this headline">¶</a></h3>
  92. <p>Your uploaded file is saved by PHP in the “upload dir”, as defined in
  93. <code class="file docutils literal notranslate"><span class="pre">php.ini</span></code> by the variable <code class="docutils literal notranslate"><span class="pre">upload_tmp_dir</span></code> (usually the system
  94. default is <em>/tmp</em>). We recommend the following setup for Apache
  95. servers running in safe mode, to enable uploads of files while being
  96. reasonably secure:</p>
  97. <ul class="simple">
  98. <li><p>create a separate directory for uploads: <strong class="command">mkdir /tmp/php</strong></p></li>
  99. <li><p>give ownership to the Apache server’s user.group: <strong class="command">chown
  100. apache.apache /tmp/php</strong></p></li>
  101. <li><p>give proper permission: <strong class="command">chmod 600 /tmp/php</strong></p></li>
  102. <li><p>put <code class="docutils literal notranslate"><span class="pre">upload_tmp_dir</span> <span class="pre">=</span> <span class="pre">/tmp/php</span></code> in <code class="file docutils literal notranslate"><span class="pre">php.ini</span></code></p></li>
  103. <li><p>restart Apache</p></li>
  104. </ul>
  105. </div>
  106. <div class="section" id="faq1-9">
  107. <span id="id1"></span><h3>1.9 (withdrawn).<a class="headerlink" href="#faq1-9" title="Permalink to this headline">¶</a></h3>
  108. </div>
  109. <div class="section" id="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">
  110. <span id="faq1-10"></span><h3>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.<a class="headerlink" href="#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" title="Permalink to this headline">¶</a></h3>
  111. <p>As suggested by “Rob M” in the phpWizard forum, add this line to your
  112. <em>httpd.conf</em>:</p>
  113. <div class="highlight-apache notranslate"><div class="highlight"><pre><span></span><span class="nb">SetEnvIf</span> <span class="k">User</span>-Agent <span class="s2">&quot;.*MSIE.*&quot;</span> nokeepalive ssl-unclean-shutdown
  114. </pre></div>
  115. </div>
  116. <p>It seems to clear up many problems between Internet Explorer and SSL.</p>
  117. </div>
  118. <div class="section" id="i-get-an-open-basedir-restriction-while-uploading-a-file-from-the-import-tab">
  119. <span id="faq1-11"></span><h3>1.11 I get an ‘open_basedir restriction’ while uploading a file from the import tab.<a class="headerlink" href="#i-get-an-open-basedir-restriction-while-uploading-a-file-from-the-import-tab" title="Permalink to this headline">¶</a></h3>
  120. <p>Since version 2.2.4, phpMyAdmin supports servers with open_basedir
  121. restrictions. However you need to create temporary directory and configure it
  122. as <span class="target" id="index-1"></span><a class="reference internal" href="config.html#cfg_TempDir"><code class="xref config config-option docutils literal notranslate"><span class="pre">$cfg['TempDir']</span></code></a>. The uploaded files will be moved there,
  123. and after execution of your <a class="reference internal" href="glossary.html#term-SQL"><span class="xref std std-term">SQL</span></a> commands, removed.</p>
  124. </div>
  125. <div class="section" id="i-have-lost-my-mysql-root-password-what-can-i-do">
  126. <span id="faq1-12"></span><h3>1.12 I have lost my MySQL root password, what can I do?<a class="headerlink" href="#i-have-lost-my-mysql-root-password-what-can-i-do" title="Permalink to this headline">¶</a></h3>
  127. <p>phpMyAdmin does authenticate against MySQL server you’re using, so to recover
  128. from phpMyAdmin password loss, you need to recover at MySQL level.</p>
  129. <p>The MySQL manual explains how to <a class="reference external" href="https://dev.mysql.com/doc/refman/5.7/en/resetting-permissions.html">reset the permissions</a>.</p>
  130. <p>If you are using MySQL server installed by your hosting provider, please
  131. contact their support to recover the password for you.</p>
  132. </div>
  133. <div class="section" id="faq1-13">
  134. <span id="id2"></span><h3>1.13 (withdrawn).<a class="headerlink" href="#faq1-13" title="Permalink to this headline">¶</a></h3>
  135. </div>
  136. <div class="section" id="faq1-14">
  137. <span id="id3"></span><h3>1.14 (withdrawn).<a class="headerlink" href="#faq1-14" title="Permalink to this headline">¶</a></h3>
  138. </div>
  139. <div class="section" id="i-have-problems-with-mysql-user-column-names">
  140. <span id="faq1-15"></span><h3>1.15 I have problems with <em>mysql.user</em> column names.<a class="headerlink" href="#i-have-problems-with-mysql-user-column-names" title="Permalink to this headline">¶</a></h3>
  141. <p>In previous MySQL versions, the <code class="docutils literal notranslate"><span class="pre">User</span></code> and <code class="docutils literal notranslate"><span class="pre">Password</span></code> columns were
  142. named <code class="docutils literal notranslate"><span class="pre">user</span></code> and <code class="docutils literal notranslate"><span class="pre">password</span></code>. Please modify your column names to
  143. align with current standards.</p>
  144. </div>
  145. <div class="section" id="i-cannot-upload-big-dump-files-memory-http-or-timeout-problems">
  146. <span id="faq1-16"></span><h3>1.16 I cannot upload big dump files (memory, HTTP or timeout problems).<a class="headerlink" href="#i-cannot-upload-big-dump-files-memory-http-or-timeout-problems" title="Permalink to this headline">¶</a></h3>
  147. <p>Starting with version 2.7.0, the import engine has been re–written and
  148. these problems should not occur. If possible, upgrade your phpMyAdmin
  149. to the latest version to take advantage of the new import features.</p>
  150. <p>The first things to check (or ask your host provider to check) are the values
  151. of <code class="docutils literal notranslate"><span class="pre">max_execution_time</span></code>, <code class="docutils literal notranslate"><span class="pre">upload_max_filesize</span></code>, <code class="docutils literal notranslate"><span class="pre">memory_limit</span></code> and
  152. <code class="docutils literal notranslate"><span class="pre">post_max_size</span></code> in the <code class="file docutils literal notranslate"><span class="pre">php.ini</span></code> configuration file. All of these three
  153. settings limit the maximum size of data that can be submitted and handled by
  154. PHP. Please note that <code class="docutils literal notranslate"><span class="pre">post_max_size</span></code> needs to be larger than
  155. <code class="docutils literal notranslate"><span class="pre">upload_max_filesize</span></code>. There exist several workarounds if your upload is too
  156. big or your hosting provider is unwilling to change the settings:</p>
  157. <ul>
  158. <li><p>Look at the <span class="target" id="index-2"></span><a class="reference internal" href="config.html#cfg_UploadDir"><code class="xref config config-option docutils literal notranslate"><span class="pre">$cfg['UploadDir']</span></code></a> feature. This allows one to upload a file to the server
  159. via scp, ftp, or your favorite file transfer method. PhpMyAdmin is
  160. then able to import the files from the temporary directory. More
  161. information is available in the <a class="reference internal" href="config.html#config"><span class="std std-ref">Configuration</span></a> of this document.</p></li>
  162. <li><p>Using a utility (such as <a class="reference external" href="https://www.ozerov.de/bigdump/">BigDump</a>) to split the files before
  163. uploading. We cannot support this or any third party applications, but
  164. are aware of users having success with it.</p></li>
  165. <li><p>If you have shell (command line) access, use MySQL to import the files
  166. directly. You can do this by issuing the “source” command from within
  167. MySQL:</p>
  168. <div class="highlight-mysql notranslate"><div class="highlight"><pre><span></span><span class="k">source</span> <span class="n">filename</span><span class="p">.</span><span class="k">sql</span><span class="p">;</span>
  169. </pre></div>
  170. </div>
  171. </li>
  172. </ul>
  173. </div>
  174. <div class="section" id="which-database-versions-does-phpmyadmin-support">
  175. <span id="faq1-17"></span><h3>1.17 Which Database versions does phpMyAdmin support?<a class="headerlink" href="#which-database-versions-does-phpmyadmin-support" title="Permalink to this headline">¶</a></h3>
  176. <p>For <a class="reference external" href="https://www.mysql.com/">MySQL</a>, versions 5.5 and newer are supported.
  177. For older MySQL versions, our <a class="reference external" href="https://www.phpmyadmin.net/downloads/">Downloads</a> page offers older phpMyAdmin versions
  178. (which may have become unsupported).</p>
  179. <p>For <a class="reference external" href="https://mariadb.org/">MariaDB</a>, versions 5.5 and newer are supported.</p>
  180. </div>
  181. <div class="section" id="a-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">
  182. <span id="faq1-17a"></span><h3>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”<a class="headerlink" href="#a-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" title="Permalink to this headline">¶</a></h3>
  183. <p>You tried to access MySQL with an old MySQL client library. The
  184. version of your MySQL client library can be checked in your phpinfo()
  185. output. In general, it should have at least the same minor version as
  186. your server - as mentioned in <a class="reference internal" href="#faq1-17"><span class="std std-ref">1.17 Which Database versions does phpMyAdmin support?</span></a>. This problem is
  187. generally caused by using MySQL version 4.1 or newer. MySQL changed
  188. the authentication hash and your PHP is trying to use the old method.
  189. The proper solution is to use the <a class="reference external" href="https://www.php.net/mysqli">mysqli extension</a> with the proper client library to match
  190. your MySQL installation. More
  191. information (and several workarounds) are located in the <a class="reference external" href="https://dev.mysql.com/doc/refman/5.7/en/common-errors.html">MySQL
  192. Documentation</a>.</p>
  193. </div>
  194. <div class="section" id="faq1-18">
  195. <span id="id4"></span><h3>1.18 (withdrawn).<a class="headerlink" href="#faq1-18" title="Permalink to this headline">¶</a></h3>
  196. </div>
  197. <div class="section" id="i-can-t-run-the-display-relations-feature-because-the-script-seems-not-to-know-the-font-face-i-m-using">
  198. <span id="faq1-19"></span><h3>1.19 I can’t run the “display relations” feature because the script seems not to know the font face I’m using!<a class="headerlink" href="#i-can-t-run-the-display-relations-feature-because-the-script-seems-not-to-know-the-font-face-i-m-using" title="Permalink to this headline">¶</a></h3>
  199. <p>The <a class="reference internal" href="glossary.html#term-TCPDF"><span class="xref std std-term">TCPDF</span></a> library we’re using for this feature requires some special
  200. files to use font faces. Please refers to the <a class="reference external" href="https://tcpdf.org/">TCPDF manual</a> to build these files.</p>
  201. </div>
  202. <div class="section" id="i-receive-an-error-about-missing-mysqli-and-mysql-extensions">
  203. <span id="faqmysql"></span><h3>1.20 I receive an error about missing mysqli and mysql extensions.<a class="headerlink" href="#i-receive-an-error-about-missing-mysqli-and-mysql-extensions" title="Permalink to this headline">¶</a></h3>
  204. <p>To connect to a MySQL server, PHP needs a set of MySQL functions
  205. called “MySQL extension”. This extension may be part of the PHP
  206. distribution (compiled-in), otherwise it needs to be loaded
  207. dynamically. Its name is probably <em>mysqli.so</em> or <em>php_mysqli.dll</em>.
  208. phpMyAdmin tried to load the extension but failed. Usually, the
  209. problem is solved by installing a software package called “PHP-MySQL”
  210. or something similar.</p>
  211. <p>There are currently two interfaces PHP provides as MySQL extensions - <code class="docutils literal notranslate"><span class="pre">mysql</span></code>
  212. and <code class="docutils literal notranslate"><span class="pre">mysqli</span></code>. The <code class="docutils literal notranslate"><span class="pre">mysqli</span></code> is tried first, because it’s the best one.</p>
  213. <p>This problem can be also caused by wrong paths in the <code class="file docutils literal notranslate"><span class="pre">php.ini</span></code> or using
  214. wrong <code class="file docutils literal notranslate"><span class="pre">php.ini</span></code>.</p>
  215. <p>Make sure that the extension files do exist in the folder which the
  216. <code class="docutils literal notranslate"><span class="pre">extension_dir</span></code> points to and that the corresponding lines in your
  217. <code class="file docutils literal notranslate"><span class="pre">php.ini</span></code> are not commented out (you can use <code class="docutils literal notranslate"><span class="pre">phpinfo()</span></code> to check
  218. current setup):</p>
  219. <div class="highlight-ini notranslate"><div class="highlight"><pre><span></span><span class="k">[PHP]</span>
  220. <span class="c1">; Directory in which the loadable extensions (modules) reside.</span>
  221. <span class="na">extension_dir</span> <span class="o">=</span> <span class="s">&quot;C:/Apache2/modules/php/ext&quot;</span>
  222. </pre></div>
  223. </div>
  224. <p>The <code class="file docutils literal notranslate"><span class="pre">php.ini</span></code> can be loaded from several locations (especially on
  225. Windows), so please check you’re updating the correct one. If using Apache, you
  226. can tell it to use specific path for this file using <code class="docutils literal notranslate"><span class="pre">PHPIniDir</span></code> directive:</p>
  227. <div class="highlight-apache notranslate"><div class="highlight"><pre><span></span><span class="nb">LoadFile</span> <span class="s2">&quot;C:/php/php5ts.dll&quot;</span>
  228. <span class="nb">LoadModule</span> php5_module <span class="s2">&quot;C:/php/php5apache2_2.dll&quot;</span>
  229. <span class="nt">&lt;IfModule</span> <span class="s">php5_module</span><span class="nt">&gt;</span>
  230. <span class="nb">PHPIniDir</span> <span class="s2">&quot;C:/PHP&quot;</span>
  231. <span class="nt">&lt;Location&gt;</span>
  232. <span class="nb">AddType</span> text/html .php
  233. <span class="nb">AddHandler</span> application/x-httpd-php .php
  234. <span class="nt">&lt;/Location&gt;</span>
  235. <span class="nt">&lt;/IfModule&gt;</span>
  236. </pre></div>
  237. </div>
  238. <p>In some rare cases this problem can be also caused by other extensions loaded
  239. in PHP which prevent MySQL extensions to be loaded. If anything else fails, you
  240. can try commenting out extensions for other databses from <code class="file docutils literal notranslate"><span class="pre">php.ini</span></code>.</p>
  241. </div>
  242. <div class="section" id="i-am-running-the-cgi-version-of-php-under-unix-and-i-cannot-log-in-using-cookie-auth">
  243. <span id="faq1-21"></span><h3>1.21 I am running the CGI version of PHP under Unix, and I cannot log in using cookie auth.<a class="headerlink" href="#i-am-running-the-cgi-version-of-php-under-unix-and-i-cannot-log-in-using-cookie-auth" title="Permalink to this headline">¶</a></h3>
  244. <p>In <code class="file docutils literal notranslate"><span class="pre">php.ini</span></code>, set <code class="docutils literal notranslate"><span class="pre">mysql.max_links</span></code> higher than 1.</p>
  245. </div>
  246. <div class="section" id="i-don-t-see-the-location-of-text-file-field-so-i-cannot-upload">
  247. <span id="faq1-22"></span><h3>1.22 I don’t see the “Location of text file” field, so I cannot upload.<a class="headerlink" href="#i-don-t-see-the-location-of-text-file-field-so-i-cannot-upload" title="Permalink to this headline">¶</a></h3>
  248. <p>This is most likely because in <code class="file docutils literal notranslate"><span class="pre">php.ini</span></code>, your <code class="docutils literal notranslate"><span class="pre">file_uploads</span></code>
  249. parameter is not set to “on”.</p>
  250. </div>
  251. <div class="section" id="i-m-running-mysql-on-a-win32-machine-each-time-i-create-a-new-table-the-table-and-column-names-are-changed-to-lowercase">
  252. <span id="faq1-23"></span><h3>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!<a class="headerlink" href="#i-m-running-mysql-on-a-win32-machine-each-time-i-create-a-new-table-the-table-and-column-names-are-changed-to-lowercase" title="Permalink to this headline">¶</a></h3>
  253. <p>This happens because the MySQL directive <code class="docutils literal notranslate"><span class="pre">lower_case_table_names</span></code>
  254. defaults to 1 (<code class="docutils literal notranslate"><span class="pre">ON</span></code>) in the Win32 version of MySQL. You can change
  255. this behavior by simply changing the directive to 0 (<code class="docutils literal notranslate"><span class="pre">OFF</span></code>): Just
  256. edit your <code class="docutils literal notranslate"><span class="pre">my.ini</span></code> file that should be located in your Windows
  257. directory and add the following line to the group [mysqld]:</p>
  258. <div class="highlight-ini notranslate"><div class="highlight"><pre><span></span><span class="na">set-variable</span> <span class="o">=</span> <span class="s">lower_case_table_names=0</span>
  259. </pre></div>
  260. </div>
  261. <div class="admonition note">
  262. <p class="admonition-title">Note</p>
  263. <p>Forcing this variable to 0 with –lower-case-table-names=0 on a
  264. case-insensitive filesystem and access MyISAM tablenames using different
  265. lettercases, index corruption may result.</p>
  266. </div>
  267. <p>Next, save the file and restart the MySQL service. You can always
  268. check the value of this directive using the query</p>
  269. <div class="highlight-mysql notranslate"><div class="highlight"><pre><span></span><span class="k">SHOW</span> <span class="k">VARIABLES</span> <span class="k">LIKE</span> <span class="s1">&#39;lower_case_table_names&#39;</span><span class="p">;</span>
  270. </pre></div>
  271. </div>
  272. <div class="admonition seealso">
  273. <p class="admonition-title">See also</p>
  274. <p><a class="reference external" href="https://dev.mysql.com/doc/refman/5.7/en/identifier-case-sensitivity.html">Identifier Case Sensitivity in the MySQL Reference Manual</a></p>
  275. </div>
  276. </div>
  277. <div class="section" id="faq1-24">
  278. <span id="id5"></span><h3>1.24 (withdrawn).<a class="headerlink" href="#faq1-24" title="Permalink to this headline">¶</a></h3>
  279. </div>
  280. <div class="section" id="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">
  281. <span id="faq1-25"></span><h3>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.<a class="headerlink" href="#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" title="Permalink to this headline">¶</a></h3>
  282. <p>A tip from Jose Fandos: put a comment on the following two lines in
  283. httpd.conf, like this:</p>
  284. <div class="highlight-apache notranslate"><div class="highlight"><pre><span></span><span class="c"># mod_gzip_item_include file \.php$</span>
  285. <span class="c"># mod_gzip_item_include mime &quot;application/x-httpd-php.*&quot;</span>
  286. </pre></div>
  287. </div>
  288. <p>as this version of mod_gzip on Apache (Windows) has problems handling
  289. PHP scripts. Of course you have to restart Apache.</p>
  290. </div>
  291. <div class="section" id="i-just-installed-phpmyadmin-in-my-document-root-of-iis-but-i-get-the-error-no-input-file-specified-when-trying-to-run-phpmyadmin">
  292. <span id="faq1-26"></span><h3>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.<a class="headerlink" href="#i-just-installed-phpmyadmin-in-my-document-root-of-iis-but-i-get-the-error-no-input-file-specified-when-trying-to-run-phpmyadmin" title="Permalink to this headline">¶</a></h3>
  293. <p>This is a permission problem. Right-click on the phpmyadmin folder and
  294. choose properties. Under the tab Security, click on “Add” and select
  295. the user “IUSR_machine” from the list. Now set his permissions and it
  296. should work.</p>
  297. </div>
  298. <div class="section" id="i-get-empty-page-when-i-want-to-view-huge-page-eg-db-structure-php-with-plenty-of-tables">
  299. <span id="faq1-27"></span><h3>1.27 I get empty page when I want to view huge page (eg. db_structure.php with plenty of tables).<a class="headerlink" href="#i-get-empty-page-when-i-want-to-view-huge-page-eg-db-structure-php-with-plenty-of-tables" title="Permalink to this headline">¶</a></h3>
  300. <p>This was caused by a <a class="reference external" href="https://bugs.php.net/bug.php?id=21079">PHP bug</a> that occur when
  301. GZIP output buffering is enabled. If you turn off it (by
  302. <span class="target" id="index-3"></span><a class="reference internal" href="config.html#cfg_OBGzip"><code class="xref config config-option docutils literal notranslate"><span class="pre">$cfg['OBGzip']</span></code></a> in <code class="file docutils literal notranslate"><span class="pre">config.inc.php</span></code>), it should work.
  303. This bug will has been fixed in PHP 5.0.0.</p>
  304. </div>
  305. <div class="section" id="my-mysql-server-sometimes-refuses-queries-and-returns-the-message-errorcode-13-what-does-this-mean">
  306. <span id="faq1-28"></span><h3>1.28 My MySQL server sometimes refuses queries and returns the message ‘Errorcode: 13’. What does this mean?<a class="headerlink" href="#my-mysql-server-sometimes-refuses-queries-and-returns-the-message-errorcode-13-what-does-this-mean" title="Permalink to this headline">¶</a></h3>
  307. <p>This can happen due to a MySQL bug when having database / table names
  308. with upper case characters although <code class="docutils literal notranslate"><span class="pre">lower_case_table_names</span></code> is
  309. set to 1. To fix this, turn off this directive, convert all database
  310. and table names to lower case and turn it on again. Alternatively,
  311. there’s a bug-fix available starting with MySQL 3.23.56 /
  312. 4.0.11-gamma.</p>
  313. </div>
  314. <div class="section" id="when-i-create-a-table-or-modify-a-column-i-get-an-error-and-the-columns-are-duplicated">
  315. <span id="faq1-29"></span><h3>1.29 When I create a table or modify a column, I get an error and the columns are duplicated.<a class="headerlink" href="#when-i-create-a-table-or-modify-a-column-i-get-an-error-and-the-columns-are-duplicated" title="Permalink to this headline">¶</a></h3>
  316. <p>It is possible to configure Apache in such a way that PHP has problems
  317. interpreting .php files.</p>
  318. <p>The problems occur when two different (and conflicting) set of
  319. directives are used:</p>
  320. <div class="highlight-apache notranslate"><div class="highlight"><pre><span></span><span class="nb">SetOutputFilter</span> PHP
  321. <span class="nb">SetInputFilter</span> PHP
  322. </pre></div>
  323. </div>
  324. <p>and</p>
  325. <div class="highlight-apache notranslate"><div class="highlight"><pre><span></span><span class="nb">AddType</span> application/x-httpd-php .php
  326. </pre></div>
  327. </div>
  328. <p>In the case we saw, one set of directives was in
  329. <code class="docutils literal notranslate"><span class="pre">/etc/httpd/conf/httpd.conf</span></code>, while the other set was in
  330. <code class="docutils literal notranslate"><span class="pre">/etc/httpd/conf/addon-modules/php.conf</span></code>. The recommended way is
  331. with <code class="docutils literal notranslate"><span class="pre">AddType</span></code>, so just comment out the first set of lines and
  332. restart Apache:</p>
  333. <div class="highlight-apache notranslate"><div class="highlight"><pre><span></span><span class="c">#SetOutputFilter PHP</span>
  334. <span class="c">#SetInputFilter PHP</span>
  335. </pre></div>
  336. </div>
  337. </div>
  338. <div class="section" id="i-get-the-error-navigation-php-missing-hash">
  339. <span id="faq1-30"></span><h3>1.30 I get the error “navigation.php: Missing hash”.<a class="headerlink" href="#i-get-the-error-navigation-php-missing-hash" title="Permalink to this headline">¶</a></h3>
  340. <p>This problem is known to happen when the server is running Turck
  341. MMCache but upgrading MMCache to version 2.3.21 solves the problem.</p>
  342. </div>
  343. <div class="section" id="which-php-versions-does-phpmyadmin-support">
  344. <span id="faq1-31"></span><h3>1.31 Which PHP versions does phpMyAdmin support?<a class="headerlink" href="#which-php-versions-does-phpmyadmin-support" title="Permalink to this headline">¶</a></h3>
  345. <p>Since release 4.5, phpMyAdmin supports only PHP 5.5 and newer. Since release
  346. 4.1 phpMyAdmin supports only PHP 5.3 and newer. For PHP 5.2 you can use 4.0.x
  347. releases.</p>
  348. <p>PHP 7 is supported since phpMyAdmin 4.6, PHP 7.1 is supported since 4.6.5,
  349. PHP 7.2 is supported since 4.7.4.</p>
  350. <p>phpMyAdmin also works fine with HHVM.</p>
  351. </div>
  352. <div class="section" id="can-i-use-http-authentication-with-iis">
  353. <span id="faq1-32"></span><h3>1.32 Can I use HTTP authentication with IIS?<a class="headerlink" href="#can-i-use-http-authentication-with-iis" title="Permalink to this headline">¶</a></h3>
  354. <p>Yes. This procedure was tested with phpMyAdmin 2.6.1, PHP 4.3.9 in
  355. <a class="reference internal" href="glossary.html#term-ISAPI"><span class="xref std std-term">ISAPI</span></a> mode under <a class="reference internal" href="glossary.html#term-IIS"><span class="xref std std-term">IIS</span></a> 5.1.</p>
  356. <ol class="arabic simple">
  357. <li><p>In your <code class="file docutils literal notranslate"><span class="pre">php.ini</span></code> file, set <code class="docutils literal notranslate"><span class="pre">cgi.rfc2616_headers</span> <span class="pre">=</span> <span class="pre">0</span></code></p></li>
  358. <li><p>In <code class="docutils literal notranslate"><span class="pre">Web</span> <span class="pre">Site</span> <span class="pre">Properties</span> <span class="pre">-&gt;</span> <span class="pre">File/Directory</span> <span class="pre">Security</span> <span class="pre">-&gt;</span> <span class="pre">Anonymous</span>
  359. <span class="pre">Access</span></code> dialog box, check the <code class="docutils literal notranslate"><span class="pre">Anonymous</span> <span class="pre">access</span></code> checkbox and
  360. uncheck any other checkboxes (i.e. uncheck <code class="docutils literal notranslate"><span class="pre">Basic</span> <span class="pre">authentication</span></code>,
  361. <code class="docutils literal notranslate"><span class="pre">Integrated</span> <span class="pre">Windows</span> <span class="pre">authentication</span></code>, and <code class="docutils literal notranslate"><span class="pre">Digest</span></code> if it’s
  362. enabled.) Click <code class="docutils literal notranslate"><span class="pre">OK</span></code>.</p></li>
  363. <li><p>In <code class="docutils literal notranslate"><span class="pre">Custom</span> <span class="pre">Errors</span></code>, select the range of <code class="docutils literal notranslate"><span class="pre">401;1</span></code> through <code class="docutils literal notranslate"><span class="pre">401;5</span></code>
  364. and click the <code class="docutils literal notranslate"><span class="pre">Set</span> <span class="pre">to</span> <span class="pre">Default</span></code> button.</p></li>
  365. </ol>
  366. <div class="admonition seealso">
  367. <p class="admonition-title">See also</p>
  368. <p><span class="target" id="index-4"></span><a class="rfc reference external" href="https://tools.ietf.org/html/rfc2616.html"><strong>RFC 2616</strong></a></p>
  369. </div>
  370. </div>
  371. <div class="section" id="faq1-33">
  372. <span id="id6"></span><h3>1.33 (withdrawn).<a class="headerlink" href="#faq1-33" title="Permalink to this headline">¶</a></h3>
  373. </div>
  374. <div class="section" id="can-i-access-directly-to-database-or-table-pages">
  375. <span id="faq1-34"></span><h3>1.34 Can I access directly to database or table pages?<a class="headerlink" href="#can-i-access-directly-to-database-or-table-pages" title="Permalink to this headline">¶</a></h3>
  376. <p>Yes. Out of the box, you can use <a class="reference internal" href="glossary.html#term-URL"><span class="xref std std-term">URL</span></a> like
  377. <code class="docutils literal notranslate"><span class="pre">http://server/phpMyAdmin/index.php?server=X&amp;db=database&amp;table=table&amp;target=script</span></code>.
  378. For <code class="docutils literal notranslate"><span class="pre">server</span></code> you use the server number
  379. which refers to the order of the server paragraph in
  380. <code class="file docutils literal notranslate"><span class="pre">config.inc.php</span></code>. Table and script parts are optional. If you want
  381. <code class="docutils literal notranslate"><span class="pre">http://server/phpMyAdmin/database[/table][/script]</span></code> <a class="reference internal" href="glossary.html#term-URL"><span class="xref std std-term">URL</span></a>, you need to do some configuration. Following
  382. lines apply only for <a class="reference external" href="https://httpd.apache.org">Apache</a> web server.
  383. First make sure, that you have enabled some features within global
  384. configuration. You need <code class="docutils literal notranslate"><span class="pre">Options</span> <span class="pre">SymLinksIfOwnerMatch</span></code> and <code class="docutils literal notranslate"><span class="pre">AllowOverride</span>
  385. <span class="pre">FileInfo</span></code> enabled for directory where phpMyAdmin is installed and you
  386. need mod_rewrite to be enabled. Then you just need to create
  387. following <a class="reference internal" href="glossary.html#term-.htaccess"><span class="xref std std-term">.htaccess</span></a> file in root folder of phpMyAdmin installation (don’t
  388. forget to change directory name inside of it):</p>
  389. <div class="highlight-apache notranslate"><div class="highlight"><pre><span></span><span class="nb">RewriteEngine</span> <span class="k">On</span>
  390. <span class="nb">RewriteBase</span> <span class="sx">/path_to_phpMyAdmin</span>
  391. <span class="nb">RewriteRule</span> ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/([a-z_]+\.php)$ index.php?db=$1&amp;table=$2&amp;target=$3 [R]
  392. <span class="nb">RewriteRule</span> ^([a-zA-Z0-9_]+)/([a-z_]+\.php)$ index.php?db=$1&amp;target=$2 [R]
  393. <span class="nb">RewriteRule</span> ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)$ index.php?db=$1&amp;table=$2 [R]
  394. <span class="nb">RewriteRule</span> ^([a-zA-Z0-9_]+)$ index.php?db=$1 [R]
  395. </pre></div>
  396. </div>
  397. </div>
  398. <div class="section" id="can-i-use-http-authentication-with-apache-cgi">
  399. <span id="faq1-35"></span><h3>1.35 Can I use HTTP authentication with Apache CGI?<a class="headerlink" href="#can-i-use-http-authentication-with-apache-cgi" title="Permalink to this headline">¶</a></h3>
  400. <p>Yes. However you need to pass authentication variable to <a class="reference internal" href="glossary.html#term-CGI"><span class="xref std std-term">CGI</span></a> using
  401. following rewrite rule:</p>
  402. <div class="highlight-apache notranslate"><div class="highlight"><pre><span></span><span class="nb">RewriteEngine</span> <span class="k">On</span>
  403. <span class="nb">RewriteRule</span> .* - [E=REMOTE_USER:%{HTTP:Authorization},L]
  404. </pre></div>
  405. </div>
  406. </div>
  407. <div class="section" id="i-get-an-error-500-internal-server-error">
  408. <span id="faq1-36"></span><h3>1.36 I get an error “500 Internal Server Error”.<a class="headerlink" href="#i-get-an-error-500-internal-server-error" title="Permalink to this headline">¶</a></h3>
  409. <p>There can be many explanations to this and a look at your server’s
  410. error log file might give a clue.</p>
  411. </div>
  412. <div class="section" id="i-run-phpmyadmin-on-cluster-of-different-machines-and-password-encryption-in-cookie-auth-doesn-t-work">
  413. <span id="faq1-37"></span><h3>1.37 I run phpMyAdmin on cluster of different machines and password encryption in cookie auth doesn’t work.<a class="headerlink" href="#i-run-phpmyadmin-on-cluster-of-different-machines-and-password-encryption-in-cookie-auth-doesn-t-work" title="Permalink to this headline">¶</a></h3>
  414. <p>If your cluster consist of different architectures, PHP code used for
  415. encryption/decryption won’t work correct. This is caused by use of
  416. pack/unpack functions in code. Only solution is to use mcrypt
  417. extension which works fine in this case.</p>
  418. </div>
  419. <div class="section" id="can-i-use-phpmyadmin-on-a-server-on-which-suhosin-is-enabled">
  420. <span id="faq1-38"></span><h3>1.38 Can I use phpMyAdmin on a server on which Suhosin is enabled?<a class="headerlink" href="#can-i-use-phpmyadmin-on-a-server-on-which-suhosin-is-enabled" title="Permalink to this headline">¶</a></h3>
  421. <p>Yes but the default configuration values of Suhosin are known to cause
  422. problems with some operations, for example editing a table with many
  423. columns and no <a class="reference internal" href="glossary.html#term-primary-key"><span class="xref std std-term">primary key</span></a> or with textual <a class="reference internal" href="glossary.html#term-primary-key"><span class="xref std std-term">primary key</span></a>.</p>
  424. <p>Suhosin configuration might lead to malfunction in some cases and it
  425. can not be fully avoided as phpMyAdmin is kind of application which
  426. needs to transfer big amounts of columns in single HTTP request, what
  427. is something what Suhosin tries to prevent. Generally all
  428. <code class="docutils literal notranslate"><span class="pre">suhosin.request.*</span></code>, <code class="docutils literal notranslate"><span class="pre">suhosin.post.*</span></code> and <code class="docutils literal notranslate"><span class="pre">suhosin.get.*</span></code>
  429. directives can have negative effect on phpMyAdmin usability. You can
  430. always find in your error logs which limit did cause dropping of
  431. variable, so you can diagnose the problem and adjust matching
  432. configuration variable.</p>
  433. <p>The default values for most Suhosin configuration options will work in
  434. most scenarios, however you might want to adjust at least following
  435. parameters:</p>
  436. <ul class="simple">
  437. <li><p><a class="reference external" href="https://suhosin.org/stories/configuration.html#suhosin-request-max-vars">suhosin.request.max_vars</a> should
  438. be increased (eg. 2048)</p></li>
  439. <li><p><a class="reference external" href="https://suhosin.org/stories/configuration.html#suhosin-post-max-vars">suhosin.post.max_vars</a> should be
  440. increased (eg. 2048)</p></li>
  441. <li><p><a class="reference external" href="https://suhosin.org/stories/configuration.html#suhosin-request-max-array-index-length">suhosin.request.max_array_index_length</a>
  442. should be increased (eg. 256)</p></li>
  443. <li><p><a class="reference external" href="https://suhosin.org/stories/configuration.html#suhosin-post-max-array-index-length">suhosin.post.max_array_index_length</a>
  444. should be increased (eg. 256)</p></li>
  445. <li><p><a class="reference external" href="https://suhosin.org/stories/configuration.html#suhosin-request-max-totalname-length">suhosin.request.max_totalname_length</a>
  446. should be increased (eg. 8192)</p></li>
  447. <li><p><a class="reference external" href="https://suhosin.org/stories/configuration.html#suhosin-post-max-totalname-length">suhosin.post.max_totalname_length</a> should be
  448. increased (eg. 8192)</p></li>
  449. <li><p><a class="reference external" href="https://suhosin.org/stories/configuration.html#suhosin-get-max-value-length">suhosin.get.max_value_length</a>
  450. should be increased (eg. 1024)</p></li>
  451. <li><p><a class="reference external" href="https://suhosin.org/stories/configuration.html#suhosin-sql-bailout-on-error">suhosin.sql.bailout_on_error</a>
  452. needs to be disabled (the default)</p></li>
  453. <li><p><a class="reference external" href="https://suhosin.org/stories/configuration.html#logging-configuration">suhosin.log.*</a> should not
  454. include <a class="reference internal" href="glossary.html#term-SQL"><span class="xref std std-term">SQL</span></a>, otherwise you get big
  455. slowdown</p></li>
  456. <li><p><a class="reference external" href="https://suhosin.org/stories/configuration.html#suhosin-sql-union">suhosin.sql.union</a> must be disabled (which is the default).</p></li>
  457. <li><p><a class="reference external" href="https://suhosin.org/stories/configuration.html#suhosin-sql-multiselect">suhosin.sql.multiselect</a> must be disabled (which is the default).</p></li>
  458. <li><p><a class="reference external" href="https://suhosin.org/stories/configuration.html#suhosin-sql-comment">suhosin.sql.comment</a> must be disabled (which is the default).</p></li>
  459. </ul>
  460. <p>To further improve security, we also recommend these modifications:</p>
  461. <ul class="simple">
  462. <li><p><a class="reference external" href="https://suhosin.org/stories/configuration.html#suhosin-executor-include-max-traversal">suhosin.executor.include.max_traversal</a> should be
  463. enabled as a mitigation against local file inclusion attacks. We suggest
  464. setting this to 2 as <code class="docutils literal notranslate"><span class="pre">../</span></code> is used with the ReCaptcha library.</p></li>
  465. <li><p><a class="reference external" href="https://suhosin.org/stories/configuration.html#suhosin-cookie-encrypt">suhosin.cookie.encrypt</a> should be enabled.</p></li>
  466. <li><p><a class="reference external" href="https://suhosin.org/stories/configuration.html#suhosin-executor-disable-emodifier">suhosin.executor.disable_emodifier</a> should be enabled.</p></li>
  467. </ul>
  468. <p>You can also disable the warning using the <span class="target" id="index-5"></span><a class="reference internal" href="config.html#cfg_SuhosinDisableWarning"><code class="xref config config-option docutils literal notranslate"><span class="pre">$cfg['SuhosinDisableWarning']</span></code></a>.</p>
  469. </div>
  470. <div class="section" id="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">
  471. <span id="faq1-39"></span><h3>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?<a class="headerlink" href="#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" title="Permalink to this headline">¶</a></h3>
  472. <p>This is caused by the fact that PHP scripts have no knowledge that the site is
  473. using https. Depending on used webserver, you should configure it to let PHP
  474. know about URL and scheme used to access it.</p>
  475. <p>For example in Apache ensure that you have enabled <code class="docutils literal notranslate"><span class="pre">SSLOptions</span></code> and
  476. <code class="docutils literal notranslate"><span class="pre">StdEnvVars</span></code> in the configuration.</p>
  477. <div class="admonition seealso">
  478. <p class="admonition-title">See also</p>
  479. <p>&lt;<a class="reference external" href="https://httpd.apache.org/docs/2.4/mod/mod_ssl.html">https://httpd.apache.org/docs/2.4/mod/mod_ssl.html</a>&gt;</p>
  480. </div>
  481. </div>
  482. <div class="section" id="when-accessing-phpmyadmin-via-an-apache-reverse-proxy-cookie-login-does-not-work">
  483. <span id="faq1-40"></span><h3>1.40 When accessing phpMyAdmin via an Apache reverse proxy, cookie login does not work.<a class="headerlink" href="#when-accessing-phpmyadmin-via-an-apache-reverse-proxy-cookie-login-does-not-work" title="Permalink to this headline">¶</a></h3>
  484. <p>To be able to use cookie auth Apache must know that it has to rewrite
  485. the set-cookie headers. Example from the Apache 2.2 documentation:</p>
  486. <div class="highlight-apache notranslate"><div class="highlight"><pre><span></span><span class="nb">ProxyPass</span> <span class="sx">/mirror/foo/</span> http://backend.example.com/
  487. <span class="nb">ProxyPassReverse</span> <span class="sx">/mirror/foo/</span> http://backend.example.com/
  488. <span class="nb">ProxyPassReverseCookieDomain</span> backend.example.com public.example.com
  489. <span class="nb">ProxyPassReverseCookiePath</span> / <span class="sx">/mirror/foo/</span>
  490. </pre></div>
  491. </div>
  492. <p>Note: if the backend url looks like <code class="docutils literal notranslate"><span class="pre">http://server/~user/phpmyadmin</span></code>, the
  493. tilde (~) must be url encoded as %7E in the ProxyPassReverse* lines.
  494. This is not specific to phpmyadmin, it’s just the behavior of Apache.</p>
  495. <div class="highlight-apache notranslate"><div class="highlight"><pre><span></span><span class="nb">ProxyPass</span> <span class="sx">/mirror/foo/</span> http://backend.example.com/~user/phpmyadmin
  496. <span class="nb">ProxyPassReverse</span> <span class="sx">/mirror/foo/</span> http://backend.example.com/%7Euser/phpmyadmin
  497. <span class="nb">ProxyPassReverseCookiePath</span> /%7Euser/phpmyadmin <span class="sx">/mirror/foo</span>
  498. </pre></div>
  499. </div>
  500. <div class="admonition seealso">
  501. <p class="admonition-title">See also</p>
  502. <p>&lt;<a class="reference external" href="https://httpd.apache.org/docs/2.2/mod/mod_proxy.html">https://httpd.apache.org/docs/2.2/mod/mod_proxy.html</a>&gt;, <span class="target" id="index-6"></span><a class="reference internal" href="config.html#cfg_PmaAbsoluteUri"><code class="xref config config-option docutils literal notranslate"><span class="pre">$cfg['PmaAbsoluteUri']</span></code></a></p>
  503. </div>
  504. </div>
  505. <div class="section" id="when-i-view-a-database-and-ask-to-see-its-privileges-i-get-an-error-about-an-unknown-column">
  506. <span id="faq1-41"></span><h3>1.41 When I view a database and ask to see its privileges, I get an error about an unknown column.<a class="headerlink" href="#when-i-view-a-database-and-ask-to-see-its-privileges-i-get-an-error-about-an-unknown-column" title="Permalink to this headline">¶</a></h3>
  507. <p>The MySQL server’s privilege tables are not up to date, you need to
  508. run the <strong class="command">mysql_upgrade</strong> command on the server.</p>
  509. </div>
  510. <div class="section" id="how-can-i-prevent-robots-from-accessing-phpmyadmin">
  511. <span id="faq1-42"></span><h3>1.42 How can I prevent robots from accessing phpMyAdmin?<a class="headerlink" href="#how-can-i-prevent-robots-from-accessing-phpmyadmin" title="Permalink to this headline">¶</a></h3>
  512. <p>You can add various rules to <a class="reference internal" href="glossary.html#term-.htaccess"><span class="xref std std-term">.htaccess</span></a> to filter access based on user agent
  513. field. This is quite easy to circumvent, but could prevent at least
  514. some robots accessing your installation.</p>
  515. <div class="highlight-apache notranslate"><div class="highlight"><pre><span></span><span class="nb">RewriteEngine</span> <span class="k">on</span>
  516. <span class="c"># Allow only GET and POST verbs</span>
  517. <span class="nb">RewriteCond</span> %{REQUEST_METHOD} !^(GET|POST)$ [NC,OR]
  518. <span class="c"># Ban Typical Vulnerability Scanners and others</span>
  519. <span class="c"># Kick out Script Kiddies</span>
  520. <span class="nb">RewriteCond</span> %{HTTP_USER_AGENT} ^(java|curl|wget).* [NC,OR]
  521. <span class="nb">RewriteCond</span> %{HTTP_USER_AGENT} ^.*(libwww-perl|curl|wget|python|nikto|wkito|pikto|scan|acunetix).* [NC,OR]
  522. <span class="nb">RewriteCond</span> %{HTTP_USER_AGENT} ^.*(winhttp|HTTrack|clshttp|archiver|loader|email|harvest|extract|grab|miner).* [NC,OR]
  523. <span class="c"># Ban Search Engines, Crawlers to your administrative panel</span>
  524. <span class="c"># No reasons to access from bots</span>
  525. <span class="c"># Ultimately Better than the useless robots.txt</span>
  526. <span class="c"># Did google respect robots.txt?</span>
  527. <span class="c"># Try google: intitle:phpMyAdmin intext:&quot;Welcome to phpMyAdmin *.*.*&quot; intext:&quot;Log in&quot; -wiki -forum -forums -questions intext:&quot;Cookies must be enabled&quot;</span>
  528. <span class="nb">RewriteCond</span> %{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]
  529. <span class="nb">RewriteRule</span> .* - [F]
  530. </pre></div>
  531. </div>
  532. </div>
  533. <div class="section" id="why-can-t-i-display-the-structure-of-my-table-containing-hundreds-of-columns">
  534. <span id="faq1-43"></span><h3>1.43 Why can’t I display the structure of my table containing hundreds of columns?<a class="headerlink" href="#why-can-t-i-display-the-structure-of-my-table-containing-hundreds-of-columns" title="Permalink to this headline">¶</a></h3>
  535. <p>Because your PHP’s <code class="docutils literal notranslate"><span class="pre">memory_limit</span></code> is too low; adjust it in <code class="file docutils literal notranslate"><span class="pre">php.ini</span></code>.</p>
  536. </div>
  537. <div class="section" id="how-can-i-reduce-the-installed-size-of-phpmyadmin-on-disk">
  538. <span id="faq1-44"></span><h3>1.44 How can I reduce the installed size of phpMyAdmin on disk?<a class="headerlink" href="#how-can-i-reduce-the-installed-size-of-phpmyadmin-on-disk" title="Permalink to this headline">¶</a></h3>
  539. <p>Some users have requested to be able to reduce the size of the phpMyAdmin installation.
  540. This is not recommended and could lead to confusion over missing features, but can be done.
  541. A list of files and corresponding functionality which degrade gracefully when removed include:</p>
  542. <ul class="simple">
  543. <li><p><code class="file docutils literal notranslate"><span class="pre">./vendor/tecnickcom/tcpdf</span></code> folder (exporting to PDF)</p></li>
  544. <li><p><code class="file docutils literal notranslate"><span class="pre">./locale/</span></code> folder, or unused subfolders (interface translations)</p></li>
  545. <li><p>Any unused themes in <code class="file docutils literal notranslate"><span class="pre">./themes/</span></code></p></li>
  546. <li><p><code class="file docutils literal notranslate"><span class="pre">./js/vendor/jquery/src/</span></code> (included for licensing reasons)</p></li>
  547. <li><p><code class="file docutils literal notranslate"><span class="pre">./js/line_counts.php</span></code> (removed in phpMyAdmin 4.8)</p></li>
  548. <li><p><code class="file docutils literal notranslate"><span class="pre">./doc/</span></code> (documentation)</p></li>
  549. <li><p><code class="file docutils literal notranslate"><span class="pre">./setup/</span></code> (setup script)</p></li>
  550. <li><p><code class="file docutils literal notranslate"><span class="pre">./examples/</span></code></p></li>
  551. <li><p><code class="file docutils literal notranslate"><span class="pre">./sql/</span></code> (SQL scripts to configure advanced functionality)</p></li>
  552. <li><p><code class="file docutils literal notranslate"><span class="pre">./js/vendor/openlayers/</span></code> (GIS visualization)</p></li>
  553. </ul>
  554. </div>
  555. </div>
  556. <div class="section" id="configuration">
  557. <span id="faqconfig"></span><h2>Configuration<a class="headerlink" href="#configuration" title="Permalink to this headline">¶</a></h2>
  558. <div class="section" id="the-error-message-warning-cannot-add-header-information-headers-already-sent-by-is-displayed-what-s-the-problem">
  559. <span id="faq2-1"></span><h3>2.1 The error message “Warning: Cannot add header information - headers already sent by …” is displayed, what’s the problem?<a class="headerlink" href="#the-error-message-warning-cannot-add-header-information-headers-already-sent-by-is-displayed-what-s-the-problem" title="Permalink to this headline">¶</a></h3>
  560. <p>Edit your <code class="file docutils literal notranslate"><span class="pre">config.inc.php</span></code> file and ensure there is nothing (I.E. no
  561. blank lines, no spaces, no characters…) neither before the <code class="docutils literal notranslate"><span class="pre">&lt;?php</span></code> tag at
  562. the beginning, neither after the <code class="docutils literal notranslate"><span class="pre">?&gt;</span></code> tag at the end.</p>
  563. </div>
  564. <div class="section" id="phpmyadmin-can-t-connect-to-mysql-what-s-wrong">
  565. <span id="faq2-2"></span><h3>2.2 phpMyAdmin can’t connect to MySQL. What’s wrong?<a class="headerlink" href="#phpmyadmin-can-t-connect-to-mysql-what-s-wrong" title="Permalink to this headline">¶</a></h3>
  566. <p>Either there is an error with your PHP setup or your username/password
  567. is wrong. Try to make a small script which uses mysql_connect and see
  568. if it works. If it doesn’t, it may be you haven’t even compiled MySQL
  569. support into PHP.</p>
  570. </div>
  571. <div class="section" id="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">
  572. <span id="faq2-3"></span><h3>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?<a class="headerlink" href="#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" title="Permalink to this headline">¶</a></h3>
  573. <p>The error message can also be: <span class="guilabel">Error #2002 - The server is not
  574. responding (or the local MySQL server’s socket is not correctly configured)</span>.</p>
  575. <p>First, you need to determine what socket is being used by MySQL. To do this,
  576. connect to your server and go to the MySQL bin directory. In this directory
  577. there should be a file named <em>mysqladmin</em>. Type <code class="docutils literal notranslate"><span class="pre">./mysqladmin</span> <span class="pre">variables</span></code>, and
  578. this should give you a bunch of info about your MySQL server, including the
  579. socket (<em>/tmp/mysql.sock</em>, for example). You can also ask your ISP for the
  580. connection info or, if you’re hosting your own, connect from the ‘mysql’
  581. command-line client and type ‘status’ to get the connection type and socket or
  582. port number.</p>
  583. <p>Then, you need to tell PHP to use this socket. You can do this for all PHP in
  584. the <code class="file docutils literal notranslate"><span class="pre">php.ini</span></code> or for phpMyAdmin only in the <code class="file docutils literal notranslate"><span class="pre">config.inc.php</span></code>. For
  585. example: <span class="target" id="index-7"></span><a class="reference internal" href="config.html#cfg_Servers_socket"><code class="xref config config-option docutils literal notranslate"><span class="pre">$cfg['Servers'][$i]['socket']</span></code></a> Please also make sure
  586. that the permissions of this file allow to be readable by your webserver.</p>
  587. <p>On my RedHat-Box the socket of MySQL is <em>/var/lib/mysql/mysql.sock</em>.
  588. In your <code class="file docutils literal notranslate"><span class="pre">php.ini</span></code> you will find a line</p>
  589. <div class="highlight-ini notranslate"><div class="highlight"><pre><span></span><span class="na">mysql.default_socket</span> <span class="o">=</span> <span class="s">/tmp/mysql.sock</span>
  590. </pre></div>
  591. </div>
  592. <p>change it to</p>
  593. <div class="highlight-ini notranslate"><div class="highlight"><pre><span></span><span class="na">mysql.default_socket</span> <span class="o">=</span> <span class="s">/var/lib/mysql/mysql.sock</span>
  594. </pre></div>
  595. </div>
  596. <p>Then restart apache and it will work.</p>
  597. <p>Have also a look at the <a class="reference external" href="https://dev.mysql.com/doc/refman/5.7/en/can-not-connect-to-server.html">corresponding section of the MySQL
  598. documentation</a>.</p>
  599. </div>
  600. <div class="section" id="nothing-is-displayed-by-my-browser-when-i-try-to-run-phpmyadmin-what-can-i-do">
  601. <span id="faq2-4"></span><h3>2.4 Nothing is displayed by my browser when I try to run phpMyAdmin, what can I do?<a class="headerlink" href="#nothing-is-displayed-by-my-browser-when-i-try-to-run-phpmyadmin-what-can-i-do" title="Permalink to this headline">¶</a></h3>
  602. <p>Try to set the <span class="target" id="index-8"></span><a class="reference internal" href="config.html#cfg_OBGzip"><code class="xref config config-option docutils literal notranslate"><span class="pre">$cfg['OBGzip']</span></code></a> directive to <code class="docutils literal notranslate"><span class="pre">false</span></code> in the phpMyAdmin configuration
  603. file. It helps sometime. Also have a look at your PHP version number:
  604. if it contains “b” or “alpha” it means you’re running a testing
  605. version of PHP. That’s not a so good idea, please upgrade to a plain
  606. revision.</p>
  607. </div>
  608. <div class="section" id="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">
  609. <span id="faq2-5"></span><h3>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?<a class="headerlink" href="#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" title="Permalink to this headline">¶</a></h3>
  610. <p>Check your webserver setup if it correctly fills in either PHP_SELF or REQUEST_URI variables.</p>
  611. <p>If you are running phpMyAdmin behind reverse proxy, please set the
  612. <span class="target" id="index-9"></span><a class="reference internal" href="config.html#cfg_PmaAbsoluteUri"><code class="xref config config-option docutils literal notranslate"><span class="pre">$cfg['PmaAbsoluteUri']</span></code></a> directive in the phpMyAdmin
  613. configuration file to match your setup.</p>
  614. </div>
  615. <div class="section" id="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">
  616. <span id="faq2-6"></span><h3>2.6 I get an “Access denied for user: <a class="reference external" href="mailto:'root&#37;&#52;&#48;localhost">‘root<span>&#64;</span>localhost</a>’ (Using password: YES)”-error when trying to access a MySQL-Server on a host which is port-forwarded for my localhost.<a class="headerlink" href="#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" title="Permalink to this headline">¶</a></h3>
  617. <p>When you are using a port on your localhost, which you redirect via
  618. port-forwarding to another host, MySQL is not resolving the localhost
  619. as expected. Erik Wasser explains: The solution is: if your host is
  620. “localhost” MySQL (the command line tool <strong class="command">mysql</strong> as well) always
  621. tries to use the socket connection for speeding up things. And that
  622. doesn’t work in this configuration with port forwarding. If you enter
  623. “127.0.0.1” as hostname, everything is right and MySQL uses the
  624. <a class="reference internal" href="glossary.html#term-TCP"><span class="xref std std-term">TCP</span></a> connection.</p>
  625. </div>
  626. <div class="section" id="using-and-creating-themes">
  627. <span id="faqthemes"></span><h3>2.7 Using and creating themes<a class="headerlink" href="#using-and-creating-themes" title="Permalink to this headline">¶</a></h3>
  628. <p>See <a class="reference internal" href="themes.html#themes"><span class="std std-ref">Custom Themes</span></a>.</p>
  629. </div>
  630. <div class="section" id="i-get-missing-parameters-errors-what-can-i-do">
  631. <span id="faqmissingparameters"></span><h3>2.8 I get “Missing parameters” errors, what can I do?<a class="headerlink" href="#i-get-missing-parameters-errors-what-can-i-do" title="Permalink to this headline">¶</a></h3>
  632. <p>Here are a few points to check:</p>
  633. <ul class="simple">
  634. <li><p>In <code class="file docutils literal notranslate"><span class="pre">config.inc.php</span></code>, try to leave the <span class="target" id="index-10"></span><a class="reference internal" href="config.html#cfg_PmaAbsoluteUri"><code class="xref config config-option docutils literal notranslate"><span class="pre">$cfg['PmaAbsoluteUri']</span></code></a> directive empty. See also
  635. <a class="reference internal" href="#faq4-7"><span class="std std-ref">4.7 Authentication window is displayed more than once, why?</span></a>.</p></li>
  636. <li><p>Maybe you have a broken PHP installation or you need to upgrade your
  637. Zend Optimizer. See &lt;<a class="reference external" href="https://bugs.php.net/bug.php?id=31134">https://bugs.php.net/bug.php?id=31134</a>&gt;.</p></li>
  638. <li><p>If you are using Hardened PHP with the ini directive
  639. <code class="docutils literal notranslate"><span class="pre">varfilter.max_request_variables</span></code> set to the default (200) or
  640. another low value, you could get this error if your table has a high
  641. number of columns. Adjust this setting accordingly. (Thanks to Klaus
  642. Dorninger for the hint).</p></li>
  643. <li><p>In the <code class="file docutils literal notranslate"><span class="pre">php.ini</span></code> directive <code class="docutils literal notranslate"><span class="pre">arg_separator.input</span></code>, a value of “;”
  644. will cause this error. Replace it with “&amp;;”.</p></li>
  645. <li><p>If you are using <a class="reference external" href="https://suhosin.org/stories/index.html">Suhosin</a>, you
  646. might want to increase <a class="reference external" href="https://suhosin.org/stories/faq.html">request limits</a>.</p></li>
  647. <li><p>The directory specified in the <code class="file docutils literal notranslate"><span class="pre">php.ini</span></code> directive
  648. <code class="docutils literal notranslate"><span class="pre">session.save_path</span></code> does not exist or is read-only (this can be caused
  649. by <a class="reference external" href="https://bugs.php.net/bug.php?id=39842">bug in the PHP installer</a>).</p></li>
  650. </ul>
  651. </div>
  652. <div class="section" id="seeing-an-upload-progress-bar">
  653. <span id="faq2-9"></span><h3>2.9 Seeing an upload progress bar<a class="headerlink" href="#seeing-an-upload-progress-bar" title="Permalink to this headline">¶</a></h3>
  654. <p>To be able to see a progress bar during your uploads, your server must
  655. have the <a class="reference external" href="https://www.php.net/manual/en/book.apc.php">APC</a> extension, the
  656. <a class="reference external" href="https://pecl.php.net/package/uploadprogress">uploadprogress</a> one, or
  657. you must be running PHP 5.4.0 or higher. Moreover, the JSON extension
  658. has to be enabled in your PHP.</p>
  659. <p>If using APC, you must set <code class="docutils literal notranslate"><span class="pre">apc.rfc1867</span></code> to <code class="docutils literal notranslate"><span class="pre">on</span></code> in your <code class="file docutils literal notranslate"><span class="pre">php.ini</span></code>.</p>
  660. <p>If using PHP 5.4.0 or higher, you must set
  661. <code class="docutils literal notranslate"><span class="pre">session.upload_progress.enabled</span></code> to <code class="docutils literal notranslate"><span class="pre">1</span></code> in your <code class="file docutils literal notranslate"><span class="pre">php.ini</span></code>. However,
  662. starting from phpMyAdmin version 4.0.4, session-based upload progress has
  663. been temporarily deactivated due to its problematic behavior.</p>
  664. <div class="admonition seealso">
  665. <p class="admonition-title">See also</p>
  666. <p><span class="target" id="index-11"></span><a class="rfc reference external" href="https://tools.ietf.org/html/rfc1867.html"><strong>RFC 1867</strong></a></p>
  667. </div>
  668. </div>
  669. </div>
  670. <div class="section" id="known-limitations">
  671. <span id="faqlimitations"></span><h2>Known limitations<a class="headerlink" href="#known-limitations" title="Permalink to this headline">¶</a></h2>
  672. <div class="section" id="when-using-http-authentication-a-user-who-logged-out-can-not-log-in-again-in-with-the-same-nick">
  673. <span id="login-bug"></span><h3>3.1 When using HTTP authentication, a user who logged out can not log in again in with the same nick.<a class="headerlink" href="#when-using-http-authentication-a-user-who-logged-out-can-not-log-in-again-in-with-the-same-nick" title="Permalink to this headline">¶</a></h3>
  674. <p>This is related to the authentication mechanism (protocol) used by
  675. phpMyAdmin. To bypass this problem: just close all the opened browser
  676. windows and then go back to phpMyAdmin. You should be able to log in
  677. again.</p>
  678. </div>
  679. <div class="section" id="when-dumping-a-large-table-in-compressed-mode-i-get-a-memory-limit-error-or-a-time-limit-error">
  680. <span id="faq3-2"></span><h3>3.2 When dumping a large table in compressed mode, I get a memory limit error or a time limit error.<a class="headerlink" href="#when-dumping-a-large-table-in-compressed-mode-i-get-a-memory-limit-error-or-a-time-limit-error" title="Permalink to this headline">¶</a></h3>
  681. <p>Compressed dumps are built in memory and because of this are limited
  682. to php’s memory limit. For gzip/bzip2 exports this can be overcome
  683. since 2.5.4 using <span class="target" id="index-12"></span><a class="reference internal" href="config.html#cfg_CompressOnFly"><code class="xref config config-option docutils literal notranslate"><span class="pre">$cfg['CompressOnFly']</span></code></a> (enabled by default).
  684. zip exports can not be handled this way, so if you need zip files for larger
  685. dump, you have to use another way.</p>
  686. </div>
  687. <div class="section" id="with-innodb-tables-i-lose-foreign-key-relationships-when-i-rename-a-table-or-a-column">
  688. <span id="faq3-3"></span><h3>3.3 With InnoDB tables, I lose foreign key relationships when I rename a table or a column.<a class="headerlink" href="#with-innodb-tables-i-lose-foreign-key-relationships-when-i-rename-a-table-or-a-column" title="Permalink to this headline">¶</a></h3>
  689. <p>This is an InnoDB bug, see &lt;<a class="reference external" href="https://bugs.mysql.com/bug.php?id=21704">https://bugs.mysql.com/bug.php?id=21704</a>&gt;.</p>
  690. </div>
  691. <div class="section" id="i-am-unable-to-import-dumps-i-created-with-the-mysqldump-tool-bundled-with-the-mysql-server-distribution">
  692. <span id="faq3-4"></span><h3>3.4 I am unable to import dumps I created with the mysqldump tool bundled with the MySQL server distribution.<a class="headerlink" href="#i-am-unable-to-import-dumps-i-created-with-the-mysqldump-tool-bundled-with-the-mysql-server-distribution" title="Permalink to this headline">¶</a></h3>
  693. <p>The problem is that older versions of <code class="docutils literal notranslate"><span class="pre">mysqldump</span></code> created invalid
  694. comments like this:</p>
  695. <div class="highlight-mysql notranslate"><div class="highlight"><pre><span></span><span class="c1">-- MySQL dump 8.22</span>
  696. <span class="c1">--</span>
  697. <span class="c1">-- Host: localhost Database: database</span>
  698. <span class="o">---------------------------------------------------------</span>
  699. <span class="c1">-- Server version 3.23.54</span>
  700. </pre></div>
  701. </div>
  702. <p>The invalid part of the code is the horizontal line made of dashes
  703. that appears once in every dump created with mysqldump. If you want to
  704. run your dump you have to turn it into valid MySQL. This means, you
  705. have to add a whitespace after the first two dashes of the line or add
  706. a # before it: <code class="docutils literal notranslate"><span class="pre">--</span> <span class="pre">-------------------------------------------------------</span></code> or
  707. <code class="docutils literal notranslate"><span class="pre">#---------------------------------------------------------</span></code></p>
  708. </div>
  709. <div class="section" id="when-using-nested-folders-multiple-hierarchies-are-displayed-in-a-wrong-manner">
  710. <span id="faq3-5"></span><h3>3.5 When using nested folders, multiple hierarchies are displayed in a wrong manner.<a class="headerlink" href="#when-using-nested-folders-multiple-hierarchies-are-displayed-in-a-wrong-manner" title="Permalink to this headline">¶</a></h3>
  711. <p>Please note that you should not use the separating string multiple
  712. times without any characters between them, or at the beginning/end of
  713. your table name. If you have to, think about using another
  714. TableSeparator or disabling that feature.</p>
  715. <div class="admonition seealso">
  716. <p class="admonition-title">See also</p>
  717. <p><span class="target" id="index-13"></span><a class="reference internal" href="config.html#cfg_NavigationTreeTableSeparator"><code class="xref config config-option docutils literal notranslate"><span class="pre">$cfg['NavigationTreeTableSeparator']</span></code></a></p>
  718. </div>
  719. </div>
  720. <div class="section" id="faq3-6">
  721. <span id="id7"></span><h3>3.6 (withdrawn).<a class="headerlink" href="#faq3-6" title="Permalink to this headline">¶</a></h3>
  722. </div>
  723. <div class="section" id="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">
  724. <span id="faq3-7"></span><h3>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?<a class="headerlink" href="#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" title="Permalink to this headline">¶</a></h3>
  725. <p>Your table neither have a <a class="reference internal" href="glossary.html#term-primary-key"><span class="xref std std-term">primary key</span></a> nor an <a class="reference internal" href="glossary.html#term-unique-key"><span class="xref std std-term">unique key</span></a>, so we must
  726. use a long expression to identify this row. This causes problems to
  727. parse_url function. The workaround is to create a <a class="reference internal" href="glossary.html#term-primary-key"><span class="xref std std-term">primary key</span></a>
  728. or <a class="reference internal" href="glossary.html#term-unique-key"><span class="xref std std-term">unique key</span></a>.</p>
  729. </div>
  730. <div class="section" id="i-cannot-use-clickable-html-forms-in-columns-where-i-put-a-mime-transformation-onto">
  731. <span id="faq3-8"></span><h3>3.8 I cannot use (clickable) HTML-forms in columns where I put a MIME-Transformation onto!<a class="headerlink" href="#i-cannot-use-clickable-html-forms-in-columns-where-i-put-a-mime-transformation-onto" title="Permalink to this headline">¶</a></h3>
  732. <p>Due to a surrounding form-container (for multi-row delete checkboxes),
  733. no nested forms can be put inside the table where phpMyAdmin displays
  734. the results. You can, however, use any form inside of a table if keep
  735. the parent form-container with the target to tbl_row_delete.php and
  736. just put your own input-elements inside. If you use a custom submit
  737. input field, the form will submit itself to the displaying page again,
  738. where you can validate the $HTTP_POST_VARS in a transformation. For
  739. a tutorial on how to effectively use transformations, see our <a class="reference external" href="https://www.phpmyadmin.net/docs/">Link
  740. section</a> on the
  741. official phpMyAdmin-homepage.</p>
  742. </div>
  743. <div class="section" id="i-get-error-messages-when-using-sql-mode-ansi-for-the-mysql-server">
  744. <span id="faq3-9"></span><h3>3.9 I get error messages when using “–sql_mode=ANSI” for the MySQL server.<a class="headerlink" href="#i-get-error-messages-when-using-sql-mode-ansi-for-the-mysql-server" title="Permalink to this headline">¶</a></h3>
  745. <p>When MySQL is running in ANSI-compatibility mode, there are some major
  746. differences in how <a class="reference internal" href="glossary.html#term-SQL"><span class="xref std std-term">SQL</span></a> is structured (see
  747. &lt;<a class="reference external" href="https://dev.mysql.com/doc/refman/5.7/en/sql-mode.html">https://dev.mysql.com/doc/refman/5.7/en/sql-mode.html</a>&gt;). Most important of all, the
  748. quote-character (“) is interpreted as an identifier quote character and not as
  749. a string quote character, which makes many internal phpMyAdmin operations into
  750. invalid <a class="reference internal" href="glossary.html#term-SQL"><span class="xref std std-term">SQL</span></a> statements. There is no
  751. workaround to this behaviour. News to this item will be posted in <a class="reference external" href="https://github.com/phpmyadmin/phpmyadmin/issues/7383">issue
  752. #7383</a>.</p>
  753. </div>
  754. <div class="section" id="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">
  755. <span id="faq3-10"></span><h3>3.10 Homonyms and no primary key: When the results of a SELECT display more that one column with the same value (for example <code class="docutils literal notranslate"><span class="pre">SELECT</span> <span class="pre">lastname</span> <span class="pre">from</span> <span class="pre">employees</span> <span class="pre">where</span> <span class="pre">firstname</span> <span class="pre">like</span> <span class="pre">'A%'</span></code> and two “Smith” values are displayed), if I click Edit I cannot be sure that I am editing the intended row.<a class="headerlink" href="#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" title="Permalink to this headline">¶</a></h3>
  756. <p>Please make sure that your table has a <a class="reference internal" href="glossary.html#term-primary-key"><span class="xref std std-term">primary key</span></a>, so that phpMyAdmin
  757. can use it for the Edit and Delete links.</p>
  758. </div>
  759. <div class="section" id="the-number-of-rows-for-innodb-tables-is-not-correct">
  760. <span id="faq3-11"></span><h3>3.11 The number of rows for InnoDB tables is not correct.<a class="headerlink" href="#the-number-of-rows-for-innodb-tables-is-not-correct" title="Permalink to this headline">¶</a></h3>
  761. <p>phpMyAdmin uses a quick method to get the row count, and this method only
  762. returns an approximate count in the case of InnoDB tables. See
  763. <span class="target" id="index-14"></span><a class="reference internal" href="config.html#cfg_MaxExactCount"><code class="xref config config-option docutils literal notranslate"><span class="pre">$cfg['MaxExactCount']</span></code></a> for a way to modify those results, but
  764. this could have a serious impact on performance.
  765. However, one can easily replace the approximate row count with exact count by
  766. simply clicking on the approximate count. This can also be done for all tables
  767. at once by clicking on the rows sum displayed at the bottom.</p>
  768. <div class="admonition seealso">
  769. <p class="admonition-title">See also</p>
  770. <p><span class="target" id="index-15"></span><a class="reference internal" href="config.html#cfg_MaxExactCount"><code class="xref config config-option docutils literal notranslate"><span class="pre">$cfg['MaxExactCount']</span></code></a></p>
  771. </div>
  772. </div>
  773. <div class="section" id="faq3-12">
  774. <span id="id9"></span><h3>3.12 (withdrawn).<a class="headerlink" href="#faq3-12" title="Permalink to this headline">¶</a></h3>
  775. </div>
  776. <div class="section" id="i-get-an-error-when-entering-use-followed-by-a-db-name-containing-an-hyphen">
  777. <span id="faq3-13"></span><h3>3.13 I get an error when entering <code class="docutils literal notranslate"><span class="pre">USE</span></code> followed by a db name containing an hyphen.<a class="headerlink" href="#i-get-an-error-when-entering-use-followed-by-a-db-name-containing-an-hyphen" title="Permalink to this headline">¶</a></h3>
  778. <p>The tests I have made with MySQL 5.1.49 shows that the API does not
  779. accept this syntax for the USE command.</p>
  780. </div>
  781. <div class="section" id="i-am-not-able-to-browse-a-table-when-i-don-t-have-the-right-to-select-one-of-the-columns">
  782. <span id="faq3-14"></span><h3>3.14 I am not able to browse a table when I don’t have the right to SELECT one of the columns.<a class="headerlink" href="#i-am-not-able-to-browse-a-table-when-i-don-t-have-the-right-to-select-one-of-the-columns" title="Permalink to this headline">¶</a></h3>
  783. <p>This has been a known limitation of phpMyAdmin since the beginning and
  784. it’s not likely to be solved in the future.</p>
  785. </div>
  786. <div class="section" id="faq3-15">
  787. <span id="id10"></span><h3>3.15 (withdrawn).<a class="headerlink" href="#faq3-15" title="Permalink to this headline">¶</a></h3>
  788. </div>
  789. <div class="section" id="faq3-16">
  790. <span id="id11"></span><h3>3.16 (withdrawn).<a class="headerlink" href="#faq3-16" title="Permalink to this headline">¶</a></h3>
  791. </div>
  792. <div class="section" id="faq3-17">
  793. <span id="id12"></span><h3>3.17 (withdrawn).<a class="headerlink" href="#faq3-17" title="Permalink to this headline">¶</a></h3>
  794. </div>
  795. <div class="section" id="when-i-import-a-csv-file-that-contains-multiple-tables-they-are-lumped-together-into-a-single-table">
  796. <span id="faq3-18"></span><h3>3.18 When I import a CSV file that contains multiple tables, they are lumped together into a single table.<a class="headerlink" href="#when-i-import-a-csv-file-that-contains-multiple-tables-they-are-lumped-together-into-a-single-table" title="Permalink to this headline">¶</a></h3>
  797. <p>There is no reliable way to differentiate tables in <a class="reference internal" href="glossary.html#term-CSV"><span class="xref std std-term">CSV</span></a> format. For the
  798. time being, you will have to break apart <a class="reference internal" href="glossary.html#term-CSV"><span class="xref std std-term">CSV</span></a> files containing multiple
  799. tables.</p>
  800. </div>
  801. <div class="section" id="when-i-import-a-file-and-have-phpmyadmin-determine-the-appropriate-data-structure-it-only-uses-int-decimal-and-varchar-types">
  802. <span id="faq3-19"></span><h3>3.19 When I import a file and have phpMyAdmin determine the appropriate data structure it only uses int, decimal, and varchar types.<a class="headerlink" href="#when-i-import-a-file-and-have-phpmyadmin-determine-the-appropriate-data-structure-it-only-uses-int-decimal-and-varchar-types" title="Permalink to this headline">¶</a></h3>
  803. <p>Currently, the import type-detection system can only assign these
  804. MySQL types to columns. In future, more will likely be added but for
  805. the time being you will have to edit the structure to your liking
  806. post-import. Also, you should note the fact that phpMyAdmin will use
  807. the size of the largest item in any given column as the column size
  808. for the appropriate type. If you know you will be adding larger items
  809. to that column then you should manually adjust the column sizes
  810. accordingly. This is done for the sake of efficiency.</p>
  811. </div>
  812. <div class="section" id="after-upgrading-some-bookmarks-are-gone-or-their-content-cannot-be-shown">
  813. <span id="faq3-20"></span><h3>3.20 After upgrading, some bookmarks are gone or their content cannot be shown.<a class="headerlink" href="#after-upgrading-some-bookmarks-are-gone-or-their-content-cannot-be-shown" title="Permalink to this headline">¶</a></h3>
  814. <p>At some point, the character set used to store bookmark content has changed.
  815. It’s better to recreate your bookmark from the newer phpMyAdmin version.</p>
  816. </div>
  817. <div class="section" id="i-am-unable-to-log-in-with-a-username-containing-unicode-characters-such-as-a">
  818. <span id="faq3-21"></span><h3>3.21 I am unable to log in with a username containing unicode characters such as á.<a class="headerlink" href="#i-am-unable-to-log-in-with-a-username-containing-unicode-characters-such-as-a" title="Permalink to this headline">¶</a></h3>
  819. <p>This can happen if MySQL server is not configured to use utf-8 as default
  820. charset. This is a limitation of how PHP and the MySQL server interact; there
  821. is no way for PHP to set the charset before authenticating.</p>
  822. <div class="admonition seealso">
  823. <p class="admonition-title">See also</p>
  824. <p><a class="reference external" href="https://github.com/phpmyadmin/phpmyadmin/issues/12232">phpMyAdmin issue 12232</a>,
  825. <a class="reference external" href="https://www.php.net/manual/en/mysqli.real-connect.php#refsect1-mysqli.real-connect-notes">MySQL documentation note</a></p>
  826. </div>
  827. </div>
  828. </div>
  829. <div class="section" id="isps-multi-user-installations">
  830. <span id="faqmultiuser"></span><h2>ISPs, multi-user installations<a class="headerlink" href="#isps-multi-user-installations" title="Permalink to this headline">¶</a></h2>
  831. <div class="section" id="i-m-an-isp-can-i-setup-one-central-copy-of-phpmyadmin-or-do-i-need-to-install-it-for-each-customer">
  832. <span id="faq4-1"></span><h3>4.1 I’m an ISP. Can I setup one central copy of phpMyAdmin or do I need to install it for each customer?<a class="headerlink" href="#i-m-an-isp-can-i-setup-one-central-copy-of-phpmyadmin-or-do-i-need-to-install-it-for-each-customer" title="Permalink to this headline">¶</a></h3>
  833. <p>Since version 2.0.3, you can setup a central copy of phpMyAdmin for all your
  834. users. The development of this feature was kindly sponsored by NetCologne GmbH.
  835. This requires a properly setup MySQL user management and phpMyAdmin
  836. <a class="reference internal" href="glossary.html#term-HTTP"><span class="xref std std-term">HTTP</span></a> or cookie authentication.</p>
  837. <div class="admonition seealso">
  838. <p class="admonition-title">See also</p>
  839. <p><a class="reference internal" href="setup.html#authentication-modes"><span class="std std-ref">Using authentication modes</span></a></p>
  840. </div>
  841. </div>
  842. <div class="section" id="what-s-the-preferred-way-of-making-phpmyadmin-secure-against-evil-access">
  843. <span id="faq4-2"></span><h3>4.2 What’s the preferred way of making phpMyAdmin secure against evil access?<a class="headerlink" href="#what-s-the-preferred-way-of-making-phpmyadmin-secure-against-evil-access" title="Permalink to this headline">¶</a></h3>
  844. <p>This depends on your system. If you’re running a server which cannot be
  845. accessed by other people, it’s sufficient to use the directory protection
  846. bundled with your webserver (with Apache you can use <a class="reference internal" href="glossary.html#term-.htaccess"><span class="xref std std-term">.htaccess</span></a> files,
  847. for example). If other people have telnet access to your server, you should use
  848. phpMyAdmin’s <a class="reference internal" href="glossary.html#term-HTTP"><span class="xref std std-term">HTTP</span></a> or cookie authentication features.</p>
  849. <p>Suggestions:</p>
  850. <ul class="simple">
  851. <li><p>Your <code class="file docutils literal notranslate"><span class="pre">config.inc.php</span></code> file should be <code class="docutils literal notranslate"><span class="pre">chmod</span> <span class="pre">660</span></code>.</p></li>
  852. <li><p>All your phpMyAdmin files should be chown -R phpmy.apache, where phpmy
  853. is a user whose password is only known to you, and apache is the group
  854. under which Apache runs.</p></li>
  855. <li><p>Follow security recommendations for PHP and your webserver.</p></li>
  856. </ul>
  857. </div>
  858. <div class="section" id="i-get-errors-about-not-being-able-to-include-a-file-in-lang-or-in-libraries">
  859. <span id="faq4-3"></span><h3>4.3 I get errors about not being able to include a file in <em>/lang</em> or in <em>/libraries</em>.<a class="headerlink" href="#i-get-errors-about-not-being-able-to-include-a-file-in-lang-or-in-libraries" title="Permalink to this headline">¶</a></h3>
  860. <p>Check <code class="file docutils literal notranslate"><span class="pre">php.ini</span></code>, or ask your sysadmin to check it. The
  861. <code class="docutils literal notranslate"><span class="pre">include_path</span></code> must contain “.” somewhere in it, and
  862. <code class="docutils literal notranslate"><span class="pre">open_basedir</span></code>, if used, must contain “.” and “./lang” to allow
  863. normal operation of phpMyAdmin.</p>
  864. </div>
  865. <div class="section" id="phpmyadmin-always-gives-access-denied-when-using-http-authentication">
  866. <span id="faq4-4"></span><h3>4.4 phpMyAdmin always gives “Access denied” when using HTTP authentication.<a class="headerlink" href="#phpmyadmin-always-gives-access-denied-when-using-http-authentication" title="Permalink to this headline">¶</a></h3>
  867. <p>This could happen for several reasons:</p>
  868. <ul class="simple">
  869. <li><p><span class="target" id="index-16"></span><a class="reference internal" href="config.html#cfg_Servers_controluser"><code class="xref config config-option docutils literal notranslate"><span class="pre">$cfg['Servers'][$i]['controluser']</span></code></a> and/or <span class="target" id="index-17"></span><a class="reference internal" href="config.html#cfg_Servers_controlpass"><code class="xref config config-option docutils literal notranslate"><span class="pre">$cfg['Servers'][$i]['controlpass']</span></code></a> are wrong.</p></li>
  870. <li><p>The username/password you specify in the login dialog are invalid.</p></li>
  871. <li><p>You have already setup a security mechanism for the phpMyAdmin-
  872. directory, eg. a <a class="reference internal" href="glossary.html#term-.htaccess"><span class="xref std std-term">.htaccess</span></a> file. This would interfere with phpMyAdmin’s
  873. authentication, so remove it.</p></li>
  874. </ul>
  875. </div>
  876. <div class="section" id="is-it-possible-to-let-users-create-their-own-databases">
  877. <span id="faq4-5"></span><h3>4.5 Is it possible to let users create their own databases?<a class="headerlink" href="#is-it-possible-to-let-users-create-their-own-databases" title="Permalink to this headline">¶</a></h3>
  878. <p>Starting with 2.2.5, in the user management page, you can enter a
  879. wildcard database name for a user (for example “joe%”), and put the
  880. privileges you want. For example, adding <code class="docutils literal notranslate"><span class="pre">SELECT,</span> <span class="pre">INSERT,</span> <span class="pre">UPDATE,</span>
  881. <span class="pre">DELETE,</span> <span class="pre">CREATE,</span> <span class="pre">DROP,</span> <span class="pre">INDEX,</span> <span class="pre">ALTER</span></code> would let a user create/manage
  882. his/her database(s).</p>
  883. </div>
  884. <div class="section" id="how-can-i-use-the-host-based-authentication-additions">
  885. <span id="faq4-6"></span><h3>4.6 How can I use the Host-based authentication additions?<a class="headerlink" href="#how-can-i-use-the-host-based-authentication-additions" title="Permalink to this headline">¶</a></h3>
  886. <p>If you have existing rules from an old <a class="reference internal" href="glossary.html#term-.htaccess"><span class="xref std std-term">.htaccess</span></a> file, you can take them and
  887. add a username between the <code class="docutils literal notranslate"><span class="pre">'deny'</span></code>/<code class="docutils literal notranslate"><span class="pre">'allow'</span></code> and <code class="docutils literal notranslate"><span class="pre">'from'</span></code>
  888. strings. Using the username wildcard of <code class="docutils literal notranslate"><span class="pre">'%'</span></code> would be a major
  889. benefit here if your installation is suited to using it. Then you can
  890. just add those updated lines into the
  891. <span class="target" id="index-18"></span><a class="reference internal" href="config.html#cfg_Servers_AllowDeny_rules"><code class="xref config config-option docutils literal notranslate"><span class="pre">$cfg['Servers'][$i]['AllowDeny']['rules']</span></code></a> array.</p>
  892. <p>If you want a pre-made sample, you can try this fragment. It stops the
  893. ‘root’ user from logging in from any networks other than the private
  894. network <a class="reference internal" href="glossary.html#term-IP"><span class="xref std std-term">IP</span></a> blocks.</p>
  895. <div class="highlight-php notranslate"><div class="highlight"><pre><span></span><span class="c1">//block root from logging in except from the private networks</span>
  896. <span class="nv">$cfg</span><span class="p">[</span><span class="s1">&#39;Servers&#39;</span><span class="p">][</span><span class="nv">$i</span><span class="p">][</span><span class="s1">&#39;AllowDeny&#39;</span><span class="p">][</span><span class="s1">&#39;order&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="s1">&#39;deny,allow&#39;</span><span class="p">;</span>
  897. <span class="nv">$cfg</span><span class="p">[</span><span class="s1">&#39;Servers&#39;</span><span class="p">][</span><span class="nv">$i</span><span class="p">][</span><span class="s1">&#39;AllowDeny&#39;</span><span class="p">][</span><span class="s1">&#39;rules&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="k">array</span><span class="p">(</span>
  898. <span class="s1">&#39;deny root from all&#39;</span><span class="p">,</span>
  899. <span class="s1">&#39;allow root from localhost&#39;</span><span class="p">,</span>
  900. <span class="s1">&#39;allow root from 10.0.0.0/8&#39;</span><span class="p">,</span>
  901. <span class="s1">&#39;allow root from 192.168.0.0/16&#39;</span><span class="p">,</span>
  902. <span class="s1">&#39;allow root from 172.16.0.0/12&#39;</span><span class="p">,</span>
  903. <span class="p">);</span>
  904. </pre></div>
  905. </div>
  906. </div>
  907. <div class="section" id="authentication-window-is-displayed-more-than-once-why">
  908. <span id="faq4-7"></span><h3>4.7 Authentication window is displayed more than once, why?<a class="headerlink" href="#authentication-window-is-displayed-more-than-once-why" title="Permalink to this headline">¶</a></h3>
  909. <p>This happens if you are using a <a class="reference internal" href="glossary.html#term-URL"><span class="xref std std-term">URL</span></a> to start phpMyAdmin which is
  910. different than the one set in your <span class="target" id="index-19"></span><a class="reference internal" href="config.html#cfg_PmaAbsoluteUri"><code class="xref config config-option docutils literal notranslate"><span class="pre">$cfg['PmaAbsoluteUri']</span></code></a>. For
  911. example, a missing “www”, or entering with an <a class="reference internal" href="glossary.html#term-IP"><span class="xref std std-term">IP</span></a> address while a domain
  912. name is defined in the config file.</p>
  913. </div>
  914. <div class="section" id="which-parameters-can-i-use-in-the-url-that-starts-phpmyadmin">
  915. <span id="faq4-8"></span><h3>4.8 Which parameters can I use in the URL that starts phpMyAdmin?<a class="headerlink" href="#which-parameters-can-i-use-in-the-url-that-starts-phpmyadmin" title="Permalink to this headline">¶</a></h3>
  916. <p>When starting phpMyAdmin, you can use the <code class="docutils literal notranslate"><span class="pre">db</span></code>
  917. and <code class="docutils literal notranslate"><span class="pre">server</span></code> parameters. This last one can contain
  918. either the numeric host index (from <code class="docutils literal notranslate"><span class="pre">$i</span></code> of the configuration file)
  919. or one of the host names present in the configuration file.</p>
  920. <p>For example, to jump directly to a particular database, a URL can be constructed as
  921. <code class="docutils literal notranslate"><span class="pre">https://example.com/phpmyadmin/?db=sakila</span></code>.</p>
  922. <div class="versionchanged">
  923. <p><span class="versionmodified changed">Changed in version 4.9.0: </span>Support for using the <code class="docutils literal notranslate"><span class="pre">pma_username</span></code> and <code class="docutils literal notranslate"><span class="pre">pma_password</span></code> parameters was removed
  924. in phpMyAdmin 4.9.0 (see <a class="reference external" href="https://www.phpmyadmin.net/security/PMASA-2019-4/">PMASA-2019-4</a>).</p>
  925. </div>
  926. </div>
  927. </div>
  928. <div class="section" id="browsers-or-client-os">
  929. <span id="faqbrowsers"></span><h2>Browsers or client OS<a class="headerlink" href="#browsers-or-client-os" title="Permalink to this headline">¶</a></h2>
  930. <div class="section" id="i-get-an-out-of-memory-error-and-my-controls-are-non-functional-when-trying-to-create-a-table-with-more-than-14-columns">
  931. <span id="faq5-1"></span><h3>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.<a class="headerlink" href="#i-get-an-out-of-memory-error-and-my-controls-are-non-functional-when-trying-to-create-a-table-with-more-than-14-columns" title="Permalink to this headline">¶</a></h3>
  932. <p>We could reproduce this problem only under Win98/98SE. Testing under
  933. WinNT4 or Win2K, we could easily create more than 60 columns. A
  934. workaround is to create a smaller number of columns, then come back to
  935. your table properties and add the other columns.</p>
  936. </div>
  937. <div class="section" id="with-xitami-2-5b4-phpmyadmin-won-t-process-form-fields">
  938. <span id="faq5-2"></span><h3>5.2 With Xitami 2.5b4, phpMyAdmin won’t process form fields.<a class="headerlink" href="#with-xitami-2-5b4-phpmyadmin-won-t-process-form-fields" title="Permalink to this headline">¶</a></h3>
  939. <p>This is not a phpMyAdmin problem but a Xitami known bug: you’ll face
  940. it with each script/website that use forms. Upgrade or downgrade your
  941. Xitami server.</p>
  942. </div>
  943. <div class="section" id="i-have-problems-dumping-tables-with-konqueror-phpmyadmin-2-2-2">
  944. <span id="faq5-3"></span><h3>5.3 I have problems dumping tables with Konqueror (phpMyAdmin 2.2.2).<a class="headerlink" href="#i-have-problems-dumping-tables-with-konqueror-phpmyadmin-2-2-2" title="Permalink to this headline">¶</a></h3>
  945. <p>With Konqueror 2.1.1: plain dumps, zip and gzip dumps work ok, except
  946. that the proposed file name for the dump is always ‘tbl_dump.php’.
  947. The bzip2 dumps don’t seem to work. With Konqueror 2.2.1: plain dumps
  948. work; zip dumps are placed into the user’s temporary directory, so
  949. they must be moved before closing Konqueror, or else they disappear.
  950. gzip dumps give an error message. Testing needs to be done for
  951. Konqueror 2.2.2.</p>
  952. </div>
  953. <div class="section" id="i-can-t-use-the-cookie-authentication-mode-because-internet-explorer-never-stores-the-cookies">
  954. <span id="faq5-4"></span><h3>5.4 I can’t use the cookie authentication mode because Internet Explorer never stores the cookies.<a class="headerlink" href="#i-can-t-use-the-cookie-authentication-mode-because-internet-explorer-never-stores-the-cookies" title="Permalink to this headline">¶</a></h3>
  955. <p>MS Internet Explorer seems to be really buggy about cookies, at least
  956. till version 6.</p>
  957. </div>
  958. <div class="section" id="faq5-5">
  959. <span id="id13"></span><h3>5.5 (withdrawn).<a class="headerlink" href="#faq5-5" title="Permalink to this headline">¶</a></h3>
  960. </div>
  961. <div class="section" id="faq5-6">
  962. <span id="id14"></span><h3>5.6 (withdrawn).<a class="headerlink" href="#faq5-6" title="Permalink to this headline">¶</a></h3>
  963. </div>
  964. <div class="section" id="i-refresh-reload-my-browser-and-come-back-to-the-welcome-page">
  965. <span id="faq5-7"></span><h3>5.7 I refresh (reload) my browser, and come back to the welcome page.<a class="headerlink" href="#i-refresh-reload-my-browser-and-come-back-to-the-welcome-page" title="Permalink to this headline">¶</a></h3>
  966. <p>Some browsers support right-clicking into the frame you want to
  967. refresh, just do this in the right frame.</p>
  968. </div>
  969. <div class="section" id="with-mozilla-0-9-7-i-have-problems-sending-a-query-modified-in-the-query-box">
  970. <span id="faq5-8"></span><h3>5.8 With Mozilla 0.9.7 I have problems sending a query modified in the query box.<a class="headerlink" href="#with-mozilla-0-9-7-i-have-problems-sending-a-query-modified-in-the-query-box" title="Permalink to this headline">¶</a></h3>
  971. <p>Looks like a Mozilla bug: 0.9.6 was OK. We will keep an eye on future
  972. Mozilla versions.</p>
  973. </div>
  974. <div class="section" id="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">
  975. <span id="faq5-9"></span><h3>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.<a class="headerlink" href="#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" title="Permalink to this headline">¶</a></h3>
  976. <p>This is a Mozilla bug (see bug #26882 at <a class="reference external" href="https://bugzilla.mozilla.org/">BugZilla</a>).</p>
  977. </div>
  978. <div class="section" id="faq5-10">
  979. <span id="id15"></span><h3>5.10 (withdrawn).<a class="headerlink" href="#faq5-10" title="Permalink to this headline">¶</a></h3>
  980. </div>
  981. <div class="section" id="extended-ascii-characters-like-german-umlauts-are-displayed-wrong">
  982. <span id="faq5-11"></span><h3>5.11 Extended-ASCII characters like German umlauts are displayed wrong.<a class="headerlink" href="#extended-ascii-characters-like-german-umlauts-are-displayed-wrong" title="Permalink to this headline">¶</a></h3>
  983. <p>Please ensure that you have set your browser’s character set to the
  984. one of the language file you have selected on phpMyAdmin’s start page.
  985. Alternatively, you can try the auto detection mode that is supported
  986. by the recent versions of the most browsers.</p>
  987. </div>
  988. <div class="section" id="mac-os-x-safari-browser-changes-special-characters-to">
  989. <span id="faq5-12"></span><h3>5.12 Mac OS X Safari browser changes special characters to “?”.<a class="headerlink" href="#mac-os-x-safari-browser-changes-special-characters-to" title="Permalink to this headline">¶</a></h3>
  990. <p>This issue has been reported by a <a class="reference internal" href="glossary.html#term-Mac-OS-X"><span class="xref std std-term">Mac OS X</span></a> user, who adds that Chimera,
  991. Netscape and Mozilla do not have this problem.</p>
  992. </div>
  993. <div class="section" id="faq5-13">
  994. <span id="id16"></span><h3>5.13 (withdrawn)<a class="headerlink" href="#faq5-13" title="Permalink to this headline">¶</a></h3>
  995. </div>
  996. <div class="section" id="faq5-14">
  997. <span id="id17"></span><h3>5.14 (withdrawn)<a class="headerlink" href="#faq5-14" title="Permalink to this headline">¶</a></h3>
  998. </div>
  999. <div class="section" id="faq5-15">
  1000. <span id="id18"></span><h3>5.15 (withdrawn)<a class="headerlink" href="#faq5-15" title="Permalink to this headline">¶</a></h3>
  1001. </div>
  1002. <div class="section" id="with-internet-explorer-i-get-access-is-denied-javascript-errors-or-i-cannot-make-phpmyadmin-work-under-windows">
  1003. <span id="faq5-16"></span><h3>5.16 With Internet Explorer, I get “Access is denied” Javascript errors. Or I cannot make phpMyAdmin work under Windows.<a class="headerlink" href="#with-internet-explorer-i-get-access-is-denied-javascript-errors-or-i-cannot-make-phpmyadmin-work-under-windows" title="Permalink to this headline">¶</a></h3>
  1004. <p>Please check the following points:</p>
  1005. <ul class="simple">
  1006. <li><p>Maybe you have defined your <span class="target" id="index-20"></span><a class="reference internal" href="config.html#cfg_PmaAbsoluteUri"><code class="xref config config-option docutils literal notranslate"><span class="pre">$cfg['PmaAbsoluteUri']</span></code></a> setting in
  1007. <code class="file docutils literal notranslate"><span class="pre">config.inc.php</span></code> to an <a class="reference internal" href="glossary.html#term-IP"><span class="xref std std-term">IP</span></a> address and you are starting phpMyAdmin
  1008. with a <a class="reference internal" href="glossary.html#term-URL"><span class="xref std std-term">URL</span></a> containing a domain name, or the reverse situation.</p></li>
  1009. <li><p>Security settings in IE and/or Microsoft Security Center are too high,
  1010. thus blocking scripts execution.</p></li>
  1011. <li><p>The Windows Firewall is blocking Apache and MySQL. You must allow
  1012. <a class="reference internal" href="glossary.html#term-HTTP"><span class="xref std std-term">HTTP</span></a> ports (80 or 443) and MySQL
  1013. port (usually 3306) in the “in” and “out” directions.</p></li>
  1014. </ul>
  1015. </div>
  1016. <div class="section" id="with-firefox-i-cannot-delete-rows-of-data-or-drop-a-database">
  1017. <span id="faq5-17"></span><h3>5.17 With Firefox, I cannot delete rows of data or drop a database.<a class="headerlink" href="#with-firefox-i-cannot-delete-rows-of-data-or-drop-a-database" title="Permalink to this headline">¶</a></h3>
  1018. <p>Many users have confirmed that the Tabbrowser Extensions plugin they
  1019. installed in their Firefox is causing the problem.</p>
  1020. </div>
  1021. <div class="section" id="faq5-18">
  1022. <span id="id19"></span><h3>5.18 (withdrawn)<a class="headerlink" href="#faq5-18" title="Permalink to this headline">¶</a></h3>
  1023. </div>
  1024. <div class="section" id="i-get-javascript-errors-in-my-browser">
  1025. <span id="faq5-19"></span><h3>5.19 I get JavaScript errors in my browser.<a class="headerlink" href="#i-get-javascript-errors-in-my-browser" title="Permalink to this headline">¶</a></h3>
  1026. <p>Issues have been reported with some combinations of browser
  1027. extensions. To troubleshoot, disable all extensions then clear your
  1028. browser cache to see if the problem goes away.</p>
  1029. </div>
  1030. <div class="section" id="i-get-errors-about-violating-content-security-policy">
  1031. <span id="faq5-20"></span><h3>5.20 I get errors about violating Content Security Policy.<a class="headerlink" href="#i-get-errors-about-violating-content-security-policy" title="Permalink to this headline">¶</a></h3>
  1032. <p>If you see errors like:</p>
  1033. <div class="highlight-text notranslate"><div class="highlight"><pre><span></span>Refused to apply inline style because it violates the following Content Security Policy directive
  1034. </pre></div>
  1035. </div>
  1036. <p>This is usually caused by some software, which wrongly rewrites
  1037. <em class="mailheader">Content Security Policy</em> headers. Usually this is caused by
  1038. antivirus proxy or browser addons which are causing such errors.</p>
  1039. <p>If you see these errors, try disabling the HTTP proxy in antivirus or disable
  1040. the <em class="mailheader">Content Security Policy</em> rewriting in it. If that doesn’t
  1041. help, try disabling browser extensions.</p>
  1042. <p>Alternatively it can be also server configuration issue (if the webserver is
  1043. configured to emit <em class="mailheader">Content Security Policy</em> headers, they can
  1044. override the ones from phpMyAdmin).</p>
  1045. <p>Programs known to cause these kind of errors:</p>
  1046. <ul class="simple">
  1047. <li><p>Kaspersky Internet Security</p></li>
  1048. </ul>
  1049. </div>
  1050. <div class="section" id="i-get-errors-about-potentially-unsafe-operation-when-browsing-table-or-executing-sql-query">
  1051. <span id="faq5-21"></span><h3>5.21 I get errors about potentially unsafe operation when browsing table or executing SQL query.<a class="headerlink" href="#i-get-errors-about-potentially-unsafe-operation-when-browsing-table-or-executing-sql-query" title="Permalink to this headline">¶</a></h3>
  1052. <p>If you see errors like:</p>
  1053. <div class="highlight-text notranslate"><div class="highlight"><pre><span></span>A potentially unsafe operation has been detected in your request to this site.
  1054. </pre></div>
  1055. </div>
  1056. <p>This is usually caused by web application firewall doing requests filtering. It
  1057. tries to prevent SQL injection, however phpMyAdmin is tool designed to execute
  1058. SQL queries, thus it makes it unusable.</p>
  1059. <p>Please whitelist phpMyAdmin scripts from the web application firewall settings
  1060. or disable it completely for phpMyAdmin path.</p>
  1061. <p>Programs known to cause these kind of errors:</p>
  1062. <ul class="simple">
  1063. <li><p>Wordfence Web Application Firewall</p></li>
  1064. </ul>
  1065. </div>
  1066. </div>
  1067. <div class="section" id="using-phpmyadmin">
  1068. <span id="faqusing"></span><h2>Using phpMyAdmin<a class="headerlink" href="#using-phpmyadmin" title="Permalink to this headline">¶</a></h2>
  1069. <div class="section" id="i-can-t-insert-new-rows-into-a-table-i-can-t-create-a-table-mysql-brings-up-a-sql-error">
  1070. <span id="faq6-1"></span><h3>6.1 I can’t insert new rows into a table / I can’t create a table - MySQL brings up a SQL error.<a class="headerlink" href="#i-can-t-insert-new-rows-into-a-table-i-can-t-create-a-table-mysql-brings-up-a-sql-error" title="Permalink to this headline">¶</a></h3>
  1071. <p>Examine the <a class="reference internal" href="glossary.html#term-SQL"><span class="xref std std-term">SQL</span></a> error with care.
  1072. Often the problem is caused by specifying a wrong column-type. Common
  1073. errors include:</p>
  1074. <ul class="simple">
  1075. <li><p>Using <code class="docutils literal notranslate"><span class="pre">VARCHAR</span></code> without a size argument</p></li>
  1076. <li><p>Using <code class="docutils literal notranslate"><span class="pre">TEXT</span></code> or <code class="docutils literal notranslate"><span class="pre">BLOB</span></code> with a size argument</p></li>
  1077. </ul>
  1078. <p>Also, look at the syntax chapter in the MySQL manual to confirm that
  1079. your syntax is correct.</p>
  1080. </div>
  1081. <div class="section" id="when-i-create-a-table-i-set-an-index-for-two-columns-and-phpmyadmin-generates-only-one-index-with-those-two-columns">
  1082. <span id="faq6-2"></span><h3>6.2 When I create a table, I set an index for two columns and phpMyAdmin generates only one index with those two columns.<a class="headerlink" href="#when-i-create-a-table-i-set-an-index-for-two-columns-and-phpmyadmin-generates-only-one-index-with-those-two-columns" title="Permalink to this headline">¶</a></h3>
  1083. <p>This is the way to create a multi-columns index. If you want two
  1084. indexes, create the first one when creating the table, save, then
  1085. display the table properties and click the Index link to create the
  1086. other index.</p>
  1087. </div>
  1088. <div class="section" id="how-can-i-insert-a-null-value-into-my-table">
  1089. <span id="faq6-3"></span><h3>6.3 How can I insert a null value into my table?<a class="headerlink" href="#how-can-i-insert-a-null-value-into-my-table" title="Permalink to this headline">¶</a></h3>
  1090. <p>Since version 2.2.3, you have a checkbox for each column that can be
  1091. null. Before 2.2.3, you had to enter “null”, without the quotes, as
  1092. the column’s value. Since version 2.5.5, you have to use the checkbox
  1093. to get a real NULL value, so if you enter “NULL” this means you want a
  1094. literal NULL in the column, and not a NULL value (this works in PHP4).</p>
  1095. </div>
  1096. <div class="section" id="how-can-i-backup-my-database-or-table">
  1097. <span id="faq6-4"></span><h3>6.4 How can I backup my database or table?<a class="headerlink" href="#how-can-i-backup-my-database-or-table" title="Permalink to this headline">¶</a></h3>
  1098. <p>Click on a database or table name in the navigation panel, the properties will
  1099. be displayed. Then on the menu, click “Export”, you can dump the structure, the
  1100. data, or both. This will generate standard <a class="reference internal" href="glossary.html#term-SQL"><span class="xref std std-term">SQL</span></a> statements that can be
  1101. used to recreate your database/table. You will need to choose “Save as file”,
  1102. so that phpMyAdmin can transmit the resulting dump to your station. Depending
  1103. on your PHP configuration, you will see options to compress the dump. See also
  1104. the <span class="target" id="index-21"></span><a class="reference internal" href="config.html#cfg_ExecTimeLimit"><code class="xref config config-option docutils literal notranslate"><span class="pre">$cfg['ExecTimeLimit']</span></code></a> configuration variable. For
  1105. additional help on this subject, look for the word “dump” in this document.</p>
  1106. </div>
  1107. <div class="section" id="how-can-i-restore-upload-my-database-or-table-using-a-dump-how-can-i-run-a-sql-file">
  1108. <span id="faq6-5"></span><h3>6.5 How can I restore (upload) my database or table using a dump? How can I run a “.sql” file?<a class="headerlink" href="#how-can-i-restore-upload-my-database-or-table-using-a-dump-how-can-i-run-a-sql-file" title="Permalink to this headline">¶</a></h3>
  1109. <p>Click on a database name in the navigation panel, the properties will
  1110. be displayed. Select “Import” from the list of tabs in the right–hand
  1111. frame (or “<a class="reference internal" href="glossary.html#term-SQL"><span class="xref std std-term">SQL</span></a>” if your phpMyAdmin
  1112. version is previous to 2.7.0). In the “Location of the text file”
  1113. section, type in the path to your dump filename, or use the Browse
  1114. button. Then click Go. With version 2.7.0, the import engine has been
  1115. re–written, if possible it is suggested that you upgrade to take
  1116. advantage of the new features. For additional help on this subject,
  1117. look for the word “upload” in this document.</p>
  1118. <p>Note: For errors while importing of dumps exported from older MySQL versions to newer MySQL versions,
  1119. please check <a class="reference internal" href="#faq6-41"><span class="std std-ref">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 ?</span></a>.</p>
  1120. </div>
  1121. <div class="section" id="how-can-i-use-the-relation-table-in-query-by-example">
  1122. <span id="faq6-6"></span><h3>6.6 How can I use the relation table in Query-by-example?<a class="headerlink" href="#how-can-i-use-the-relation-table-in-query-by-example" title="Permalink to this headline">¶</a></h3>
  1123. <p>Here is an example with the tables persons, towns and countries, all
  1124. located in the database “mydb”. If you don’t have a <code class="docutils literal notranslate"><span class="pre">pma__relation</span></code>
  1125. table, create it as explained in the configuration section. Then
  1126. create the example tables:</p>
  1127. <div class="highlight-mysql notranslate"><div class="highlight"><pre><span></span><span class="k">CREATE</span> <span class="k">TABLE</span> <span class="n">REL_countries</span> <span class="p">(</span>
  1128. <span class="n">country_code</span> <span class="kt">char</span><span class="p">(</span><span class="mi">1</span><span class="p">)</span> <span class="k">NOT</span> <span class="no">NULL</span> <span class="k">default</span> <span class="s1">&#39;&#39;</span><span class="p">,</span>
  1129. <span class="k">description</span> <span class="kt">varchar</span><span class="p">(</span><span class="mi">10</span><span class="p">)</span> <span class="k">NOT</span> <span class="no">NULL</span> <span class="k">default</span> <span class="s1">&#39;&#39;</span><span class="p">,</span>
  1130. <span class="k">PRIMARY</span> <span class="k">KEY</span> <span class="p">(</span><span class="n">country_code</span><span class="p">)</span>
  1131. <span class="p">)</span> <span class="k">ENGINE</span><span class="o">=</span><span class="n">MyISAM</span><span class="p">;</span>
  1132. <span class="k">INSERT</span> <span class="k">INTO</span> <span class="n">REL_countries</span> <span class="k">VALUES</span> <span class="p">(</span><span class="s1">&#39;C&#39;</span><span class="p">,</span> <span class="s1">&#39;Canada&#39;</span><span class="p">);</span>
  1133. <span class="k">CREATE</span> <span class="k">TABLE</span> <span class="n">REL_persons</span> <span class="p">(</span>
  1134. <span class="n">id</span> <span class="kt">tinyint</span><span class="p">(</span><span class="mi">4</span><span class="p">)</span> <span class="k">NOT</span> <span class="no">NULL</span> <span class="k">auto_increment</span><span class="p">,</span>
  1135. <span class="n">person_name</span> <span class="kt">varchar</span><span class="p">(</span><span class="mi">32</span><span class="p">)</span> <span class="k">NOT</span> <span class="no">NULL</span> <span class="k">default</span> <span class="s1">&#39;&#39;</span><span class="p">,</span>
  1136. <span class="n">town_code</span> <span class="kt">varchar</span><span class="p">(</span><span class="mi">5</span><span class="p">)</span> <span class="k">default</span> <span class="s1">&#39;0&#39;</span><span class="p">,</span>
  1137. <span class="n">country_code</span> <span class="kt">char</span><span class="p">(</span><span class="mi">1</span><span class="p">)</span> <span class="k">NOT</span> <span class="no">NULL</span> <span class="k">default</span> <span class="s1">&#39;&#39;</span><span class="p">,</span>
  1138. <span class="k">PRIMARY</span> <span class="k">KEY</span> <span class="p">(</span><span class="n">id</span><span class="p">)</span>
  1139. <span class="p">)</span> <span class="k">ENGINE</span><span class="o">=</span><span class="n">MyISAM</span><span class="p">;</span>
  1140. <span class="k">INSERT</span> <span class="k">INTO</span> <span class="n">REL_persons</span> <span class="k">VALUES</span> <span class="p">(</span><span class="mi">11</span><span class="p">,</span> <span class="s1">&#39;Marc&#39;</span><span class="p">,</span> <span class="s1">&#39;S&#39;</span><span class="p">,</span> <span class="s1">&#39;C&#39;</span><span class="p">);</span>
  1141. <span class="k">INSERT</span> <span class="k">INTO</span> <span class="n">REL_persons</span> <span class="k">VALUES</span> <span class="p">(</span><span class="mi">15</span><span class="p">,</span> <span class="s1">&#39;Paul&#39;</span><span class="p">,</span> <span class="s1">&#39;S&#39;</span><span class="p">,</span> <span class="s1">&#39;C&#39;</span><span class="p">);</span>
  1142. <span class="k">CREATE</span> <span class="k">TABLE</span> <span class="n">REL_towns</span> <span class="p">(</span>
  1143. <span class="n">town_code</span> <span class="kt">varchar</span><span class="p">(</span><span class="mi">5</span><span class="p">)</span> <span class="k">NOT</span> <span class="no">NULL</span> <span class="k">default</span> <span class="s1">&#39;0&#39;</span><span class="p">,</span>
  1144. <span class="k">description</span> <span class="kt">varchar</span><span class="p">(</span><span class="mi">30</span><span class="p">)</span> <span class="k">NOT</span> <span class="no">NULL</span> <span class="k">default</span> <span class="s1">&#39;&#39;</span><span class="p">,</span>
  1145. <span class="k">PRIMARY</span> <span class="k">KEY</span> <span class="p">(</span><span class="n">town_code</span><span class="p">)</span>
  1146. <span class="p">)</span> <span class="k">ENGINE</span><span class="o">=</span><span class="n">MyISAM</span><span class="p">;</span>
  1147. <span class="k">INSERT</span> <span class="k">INTO</span> <span class="n">REL_towns</span> <span class="k">VALUES</span> <span class="p">(</span><span class="s1">&#39;S&#39;</span><span class="p">,</span> <span class="s1">&#39;Sherbrooke&#39;</span><span class="p">);</span>
  1148. <span class="k">INSERT</span> <span class="k">INTO</span> <span class="n">REL_towns</span> <span class="k">VALUES</span> <span class="p">(</span><span class="s1">&#39;M&#39;</span><span class="p">,</span> <span class="s1">&#39;Montréal&#39;</span><span class="p">);</span>
  1149. </pre></div>
  1150. </div>
  1151. <p>To setup appropriate links and display information:</p>
  1152. <ul class="simple">
  1153. <li><p>on table “REL_persons” click Structure, then Relation view</p></li>
  1154. <li><p>for “town_code”, choose from dropdowns, “mydb”, “REL_towns”, “code”
  1155. for foreign database, table and column respectively</p></li>
  1156. <li><p>for “country_code”, choose from dropdowns, “mydb”, “REL_countries”,
  1157. “country_code” for foreign database, table and column respectively</p></li>
  1158. <li><p>on table “REL_towns” click Structure, then Relation view</p></li>
  1159. <li><p>in “Choose column to display”, choose “description”</p></li>
  1160. <li><p>repeat the two previous steps for table “REL_countries”</p></li>
  1161. </ul>
  1162. <p>Then test like this:</p>
  1163. <ul class="simple">
  1164. <li><p>Click on your db name in the navigation panel</p></li>
  1165. <li><p>Choose “Query”</p></li>
  1166. <li><p>Use tables: persons, towns, countries</p></li>
  1167. <li><p>Click “Update query”</p></li>
  1168. <li><p>In the columns row, choose persons.person_name and click the “Show”
  1169. tickbox</p></li>
  1170. <li><p>Do the same for towns.description and countries.descriptions in the
  1171. other 2 columns</p></li>
  1172. <li><p>Click “Update query” and you will see in the query box that the
  1173. correct joins have been generated</p></li>
  1174. <li><p>Click “Submit query”</p></li>
  1175. </ul>
  1176. </div>
  1177. <div class="section" id="how-can-i-use-the-display-column-feature">
  1178. <span id="faqdisplay"></span><h3>6.7 How can I use the “display column” feature?<a class="headerlink" href="#how-can-i-use-the-display-column-feature" title="Permalink to this headline">¶</a></h3>
  1179. <p>Starting from the previous example, create the <code class="docutils literal notranslate"><span class="pre">pma__table_info</span></code> as
  1180. explained in the configuration section, then browse your persons
  1181. table, and move the mouse over a town code or country code. See also
  1182. <a class="reference internal" href="#faq6-21"><span class="std std-ref">6.21 In edit/insert mode, how can I see a list of possible values for a column, based on some foreign table?</span></a> for an additional feature that “display column”
  1183. enables: drop-down list of possible values.</p>
  1184. </div>
  1185. <div class="section" id="how-can-i-produce-a-pdf-schema-of-my-database">
  1186. <span id="faqpdf"></span><h3>6.8 How can I produce a PDF schema of my database?<a class="headerlink" href="#how-can-i-produce-a-pdf-schema-of-my-database" title="Permalink to this headline">¶</a></h3>
  1187. <p>First the configuration variables “relation”, “table_coords” and
  1188. “pdf_pages” have to be filled in. Then you need to think about your
  1189. schema layout. Which tables will go on which pages?</p>
  1190. <ul class="simple">
  1191. <li><p>Select your database in the navigation panel.</p></li>
  1192. <li><p>Choose “Operations” in the navigation bar at the top.</p></li>
  1193. <li><p>Choose “Edit <a class="reference internal" href="glossary.html#term-PDF"><span class="xref std std-term">PDF</span></a> Pages” near the
  1194. bottom of the page.</p></li>
  1195. <li><p>Enter a name for the first <a class="reference internal" href="glossary.html#term-PDF"><span class="xref std std-term">PDF</span></a> page
  1196. and click Go. If you like, you can use the “automatic layout,” which
  1197. will put all your linked tables onto the new page.</p></li>
  1198. <li><p>Select the name of the new page (making sure the Edit radio button is
  1199. selected) and click Go.</p></li>
  1200. <li><p>Select a table from the list, enter its coordinates and click Save.
  1201. Coordinates are relative; your diagram will be automatically scaled to
  1202. fit the page. When initially placing tables on the page, just pick any
  1203. coordinates – say, 50x50. After clicking Save, you can then use the
  1204. <a class="reference internal" href="#wysiwyg"><span class="std std-ref">6.28 How can I easily edit relational schema for export?</span></a> to position the element correctly.</p></li>
  1205. <li><p>When you’d like to look at your <a class="reference internal" href="glossary.html#term-PDF"><span class="xref std std-term">PDF</span></a>, first be sure to click the Save
  1206. button beneath the list of tables and coordinates, to save any changes you
  1207. made there. Then scroll all the way down, select the <a class="reference internal" href="glossary.html#term-PDF"><span class="xref std std-term">PDF</span></a> options you
  1208. want, and click Go.</p></li>
  1209. <li><p>Internet Explorer for Windows may suggest an incorrect filename when
  1210. you try to save a generated <a class="reference internal" href="glossary.html#term-PDF"><span class="xref std std-term">PDF</span></a>.
  1211. When saving a generated <a class="reference internal" href="glossary.html#term-PDF"><span class="xref std std-term">PDF</span></a>, be
  1212. sure that the filename ends in “.pdf”, for example “schema.pdf”.
  1213. Browsers on other operating systems, and other browsers on Windows, do
  1214. not have this problem.</p></li>
  1215. </ul>
  1216. <div class="admonition seealso">
  1217. <p class="admonition-title">See also</p>
  1218. <p><a class="reference internal" href="relations.html#relations"><span class="std std-ref">Relations</span></a></p>
  1219. </div>
  1220. </div>
  1221. <div class="section" id="phpmyadmin-is-changing-the-type-of-one-of-my-columns">
  1222. <span id="faq6-9"></span><h3>6.9 phpMyAdmin is changing the type of one of my columns!<a class="headerlink" href="#phpmyadmin-is-changing-the-type-of-one-of-my-columns" title="Permalink to this headline">¶</a></h3>
  1223. <p>No, it’s MySQL that is doing <a class="reference external" href="https://dev.mysql.com/doc/refman/5.7/en/silent-column-changes.html">silent column type changing</a>.</p>
  1224. </div>
  1225. <div class="section" id="when-creating-a-privilege-what-happens-with-underscores-in-the-database-name">
  1226. <span id="underscore"></span><h3>6.10 When creating a privilege, what happens with underscores in the database name?<a class="headerlink" href="#when-creating-a-privilege-what-happens-with-underscores-in-the-database-name" title="Permalink to this headline">¶</a></h3>
  1227. <p>If you do not put a backslash before the underscore, this is a
  1228. wildcard grant, and the underscore means “any character”. So, if the
  1229. database name is “john_db”, the user would get rights to john1db,
  1230. john2db … If you put a backslash before the underscore, it means
  1231. that the database name will have a real underscore.</p>
  1232. </div>
  1233. <div class="section" id="what-is-the-curious-symbol-o-in-the-statistics-pages">
  1234. <span id="faq6-11"></span><h3>6.11 What is the curious symbol ø in the statistics pages?<a class="headerlink" href="#what-is-the-curious-symbol-o-in-the-statistics-pages" title="Permalink to this headline">¶</a></h3>
  1235. <p>It means “average”.</p>
  1236. </div>
  1237. <div class="section" id="i-want-to-understand-some-export-options">
  1238. <span id="faqexport"></span><h3>6.12 I want to understand some Export options.<a class="headerlink" href="#i-want-to-understand-some-export-options" title="Permalink to this headline">¶</a></h3>
  1239. <p><strong>Structure:</strong></p>
  1240. <ul class="simple">
  1241. <li><p>“Add DROP TABLE” will add a line telling MySQL to <a class="reference external" href="https://dev.mysql.com/doc/refman/5.7/en/drop-table.html">drop the table</a>, if it already
  1242. exists during the import. It does NOT drop the table after your
  1243. export, it only affects the import file.</p></li>
  1244. <li><p>“If Not Exists” will only create the table if it doesn’t exist.
  1245. Otherwise, you may get an error if the table name exists but has a
  1246. different structure.</p></li>
  1247. <li><p>“Add AUTO_INCREMENT value” ensures that AUTO_INCREMENT value (if
  1248. any) will be included in backup.</p></li>
  1249. <li><p>“Enclose table and column names with backquotes” ensures that column
  1250. and table names formed with special characters are protected.</p></li>
  1251. <li><p>“Add into comments” includes column comments, relations, and MIME
  1252. types set in the pmadb in the dump as <a class="reference internal" href="glossary.html#term-SQL"><span class="xref std std-term">SQL</span></a> comments
  1253. (<em>/* xxx */</em>).</p></li>
  1254. </ul>
  1255. <p><strong>Data:</strong></p>
  1256. <ul class="simple">
  1257. <li><p>“Complete inserts” adds the column names on every INSERT command, for
  1258. better documentation (but resulting file is bigger).</p></li>
  1259. <li><p>“Extended inserts” provides a shorter dump file by using only once the
  1260. INSERT verb and the table name.</p></li>
  1261. <li><p>“Delayed inserts” are best explained in the <a class="reference external" href="https://dev.mysql.com/doc/refman/5.7/en/insert-delayed.html">MySQL manual - INSERT DELAYED Syntax</a>.</p></li>
  1262. <li><p>“Ignore inserts” treats errors as a warning instead. Again, more info
  1263. is provided in the <a class="reference external" href="https://dev.mysql.com/doc/refman/5.7/en/insert.html">MySQL manual - INSERT Syntax</a>, but basically with
  1264. this selected, invalid values are adjusted and inserted rather than
  1265. causing the entire statement to fail.</p></li>
  1266. </ul>
  1267. </div>
  1268. <div class="section" id="i-would-like-to-create-a-database-with-a-dot-in-its-name">
  1269. <span id="faq6-13"></span><h3>6.13 I would like to create a database with a dot in its name.<a class="headerlink" href="#i-would-like-to-create-a-database-with-a-dot-in-its-name" title="Permalink to this headline">¶</a></h3>
  1270. <p>This is a bad idea, because in MySQL the syntax “database.table” is
  1271. the normal way to reference a database and table name. Worse, MySQL
  1272. will usually let you create a database with a dot, but then you cannot
  1273. work with it, nor delete it.</p>
  1274. </div>
  1275. <div class="section" id="faqsqlvalidator">
  1276. <span id="id20"></span><h3>6.14 (withdrawn).<a class="headerlink" href="#faqsqlvalidator" title="Permalink to this headline">¶</a></h3>
  1277. </div>
  1278. <div class="section" id="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">
  1279. <span id="faq6-15"></span><h3>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”.<a class="headerlink" href="#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" title="Permalink to this headline">¶</a></h3>
  1280. <p>The right way to do this, is to create the column without any indexes,
  1281. then display the table structure and use the “Create an index” dialog.
  1282. On this page, you will be able to choose your BLOB column, and set a
  1283. size to the index, which is the condition to create an index on a BLOB
  1284. column.</p>
  1285. </div>
  1286. <div class="section" id="how-can-i-simply-move-in-page-with-plenty-editing-fields">
  1287. <span id="faq6-16"></span><h3>6.16 How can I simply move in page with plenty editing fields?<a class="headerlink" href="#how-can-i-simply-move-in-page-with-plenty-editing-fields" title="Permalink to this headline">¶</a></h3>
  1288. <p>You can use <kbd class="kbd docutils literal notranslate"><kbd class="kbd docutils literal notranslate">Ctrl</kbd>+<kbd class="kbd docutils literal notranslate">arrows</kbd></kbd> (<kbd class="kbd docutils literal notranslate"><kbd class="kbd docutils literal notranslate">Option</kbd>+<kbd class="kbd docutils literal notranslate">Arrows</kbd></kbd> in Safari) for moving on
  1289. most pages with many editing fields (table structure changes, row editing,
  1290. etc.).</p>
  1291. </div>
  1292. <div class="section" id="transformations-i-can-t-enter-my-own-mimetype-what-is-this-feature-then-useful-for">
  1293. <span id="faq6-17"></span><h3>6.17 Transformations: I can’t enter my own mimetype! What is this feature then useful for?<a class="headerlink" href="#transformations-i-can-t-enter-my-own-mimetype-what-is-this-feature-then-useful-for" title="Permalink to this headline">¶</a></h3>
  1294. <p>Defining mimetypes is of no use if you can’t put
  1295. transformations on them. Otherwise you could just put a comment on the
  1296. column. Because entering your own mimetype will cause serious syntax
  1297. checking issues and validation, this introduces a high-risk false-
  1298. user-input situation. Instead you have to initialize mimetypes using
  1299. functions or empty mimetype definitions.</p>
  1300. <p>Plus, you have a whole overview of available mimetypes. Who knows all those
  1301. mimetypes by heart so he/she can enter it at will?</p>
  1302. </div>
  1303. <div class="section" id="bookmarks-where-can-i-store-bookmarks-why-can-t-i-see-any-bookmarks-below-the-query-box-what-are-these-variables-for">
  1304. <span id="faqbookmark"></span><h3>6.18 Bookmarks: Where can I store bookmarks? Why can’t I see any bookmarks below the query box? What are these variables for?<a class="headerlink" href="#bookmarks-where-can-i-store-bookmarks-why-can-t-i-see-any-bookmarks-below-the-query-box-what-are-these-variables-for" title="Permalink to this headline">¶</a></h3>
  1305. <p>You need to have configured the <a class="reference internal" href="setup.html#linked-tables"><span class="std std-ref">phpMyAdmin configuration storage</span></a> for using bookmarks
  1306. feature. Once you have done that, you can use bookmarks in the <span class="guilabel">SQL</span> tab.</p>
  1307. <div class="admonition seealso">
  1308. <p class="admonition-title">See also</p>
  1309. <p><a class="reference internal" href="bookmarks.html#bookmarks"><span class="std std-ref">Bookmarks</span></a></p>
  1310. </div>
  1311. </div>
  1312. <div class="section" id="how-can-i-create-simple-latex-document-to-include-exported-table">
  1313. <span id="faq6-19"></span><h3>6.19 How can I create simple LATEX document to include exported table?<a class="headerlink" href="#how-can-i-create-simple-latex-document-to-include-exported-table" title="Permalink to this headline">¶</a></h3>
  1314. <p>You can simply include table in your LATEX documents,
  1315. minimal sample document should look like following one (assuming you
  1316. have table exported in file <code class="file docutils literal notranslate"><span class="pre">table.tex</span></code>):</p>
  1317. <div class="highlight-latex notranslate"><div class="highlight"><pre><span></span><span class="k">\documentclass</span><span class="nb">{</span>article<span class="nb">}</span> <span class="c">% or any class you want</span>
  1318. <span class="k">\usepackage</span><span class="nb">{</span>longtable<span class="nb">}</span> <span class="c">% for displaying table</span>
  1319. <span class="k">\begin</span><span class="nb">{</span>document<span class="nb">}</span> <span class="c">% start of document</span>
  1320. <span class="k">\include</span><span class="nb">{</span>table<span class="nb">}</span> <span class="c">% including exported table</span>
  1321. <span class="k">\end</span><span class="nb">{</span>document<span class="nb">}</span> <span class="c">% end of document</span>
  1322. </pre></div>
  1323. </div>
  1324. </div>
  1325. <div class="section" id="i-see-a-lot-of-databases-which-are-not-mine-and-cannot-access-them">
  1326. <span id="faq6-20"></span><h3>6.20 I see a lot of databases which are not mine, and cannot access them.<a class="headerlink" href="#i-see-a-lot-of-databases-which-are-not-mine-and-cannot-access-them" title="Permalink to this headline">¶</a></h3>
  1327. <p>You have one of these global privileges: CREATE TEMPORARY TABLES, SHOW
  1328. DATABASES, LOCK TABLES. Those privileges also enable users to see all the
  1329. database names. So if your users do not need those privileges, you can remove
  1330. them and their databases list will shorten.</p>
  1331. <div class="admonition seealso">
  1332. <p class="admonition-title">See also</p>
  1333. <p>&lt;<a class="reference external" href="https://bugs.mysql.com/bug.php?id=179">https://bugs.mysql.com/bug.php?id=179</a>&gt;</p>
  1334. </div>
  1335. </div>
  1336. <div class="section" id="in-edit-insert-mode-how-can-i-see-a-list-of-possible-values-for-a-column-based-on-some-foreign-table">
  1337. <span id="faq6-21"></span><h3>6.21 In edit/insert mode, how can I see a list of possible values for a column, based on some foreign table?<a class="headerlink" href="#in-edit-insert-mode-how-can-i-see-a-list-of-possible-values-for-a-column-based-on-some-foreign-table" title="Permalink to this headline">¶</a></h3>
  1338. <p>You have to setup appropriate links between the tables, and also setup
  1339. the “display column” in the foreign table. See <a class="reference internal" href="#faq6-6"><span class="std std-ref">6.6 How can I use the relation table in Query-by-example?</span></a> for an
  1340. example. Then, if there are 100 values or less in the foreign table, a
  1341. drop-down list of values will be available. You will see two lists of
  1342. values, the first list containing the key and the display column, the
  1343. second list containing the display column and the key. The reason for
  1344. this is to be able to type the first letter of either the key or the
  1345. display column. For 100 values or more, a distinct window will appear,
  1346. to browse foreign key values and choose one. To change the default
  1347. limit of 100, see <span class="target" id="index-22"></span><a class="reference internal" href="config.html#cfg_ForeignKeyMaxLimit"><code class="xref config config-option docutils literal notranslate"><span class="pre">$cfg['ForeignKeyMaxLimit']</span></code></a>.</p>
  1348. </div>
  1349. <div class="section" id="bookmarks-can-i-execute-a-default-bookmark-automatically-when-entering-browse-mode-for-a-table">
  1350. <span id="faq6-22"></span><h3>6.22 Bookmarks: Can I execute a default bookmark automatically when entering Browse mode for a table?<a class="headerlink" href="#bookmarks-can-i-execute-a-default-bookmark-automatically-when-entering-browse-mode-for-a-table" title="Permalink to this headline">¶</a></h3>
  1351. <p>Yes. If a bookmark has the same label as a table name and it’s not a
  1352. public bookmark, it will be executed.</p>
  1353. <div class="admonition seealso">
  1354. <p class="admonition-title">See also</p>
  1355. <p><a class="reference internal" href="bookmarks.html#bookmarks"><span class="std std-ref">Bookmarks</span></a></p>
  1356. </div>
  1357. </div>
  1358. <div class="section" id="export-i-heard-phpmyadmin-can-export-microsoft-excel-files">
  1359. <span id="faq6-23"></span><h3>6.23 Export: I heard phpMyAdmin can export Microsoft Excel files?<a class="headerlink" href="#export-i-heard-phpmyadmin-can-export-microsoft-excel-files" title="Permalink to this headline">¶</a></h3>
  1360. <p>You can use <a class="reference internal" href="glossary.html#term-CSV"><span class="xref std std-term">CSV</span></a> for Microsoft Excel,
  1361. which works out of the box.</p>
  1362. <div class="versionchanged">
  1363. <p><span class="versionmodified changed">Changed in version 3.4.5: </span>Since phpMyAdmin 3.4.5 support for direct export to Microsoft Excel version
  1364. 97 and newer was dropped.</p>
  1365. </div>
  1366. </div>
  1367. <div class="section" id="now-that-phpmyadmin-supports-native-mysql-4-1-x-column-comments-what-happens-to-my-column-comments-stored-in-pmadb">
  1368. <span id="faq6-24"></span><h3>6.24 Now that phpMyAdmin supports native MySQL 4.1.x column comments, what happens to my column comments stored in pmadb?<a class="headerlink" href="#now-that-phpmyadmin-supports-native-mysql-4-1-x-column-comments-what-happens-to-my-column-comments-stored-in-pmadb" title="Permalink to this headline">¶</a></h3>
  1369. <p>Automatic migration of a table’s pmadb-style column comments to the
  1370. native ones is done whenever you enter Structure page for this table.</p>
  1371. </div>
  1372. <div class="section" id="faq6-25">
  1373. <span id="id21"></span><h3>6.25 (withdrawn).<a class="headerlink" href="#faq6-25" title="Permalink to this headline">¶</a></h3>
  1374. </div>
  1375. <div class="section" id="how-can-i-select-a-range-of-rows">
  1376. <span id="faq6-26"></span><h3>6.26 How can I select a range of rows?<a class="headerlink" href="#how-can-i-select-a-range-of-rows" title="Permalink to this headline">¶</a></h3>
  1377. <p>Click the first row of the range, hold the shift key and click the
  1378. last row of the range. This works everywhere you see rows, for example
  1379. in Browse mode or on the Structure page.</p>
  1380. </div>
  1381. <div class="section" id="what-format-strings-can-i-use">
  1382. <span id="faq6-27"></span><h3>6.27 What format strings can I use?<a class="headerlink" href="#what-format-strings-can-i-use" title="Permalink to this headline">¶</a></h3>
  1383. <p>In all places where phpMyAdmin accepts format strings, you can use
  1384. <code class="docutils literal notranslate"><span class="pre">&#64;VARIABLE&#64;</span></code> expansion and <a class="reference external" href="https://www.php.net/strftime">strftime</a>
  1385. format strings. The expanded variables depend on a context (for
  1386. example, if you haven’t chosen a table, you can not get the table
  1387. name), but the following variables can be used:</p>
  1388. <dl class="simple">
  1389. <dt><code class="docutils literal notranslate"><span class="pre">&#64;HTTP_HOST&#64;</span></code></dt><dd><p>HTTP host that runs phpMyAdmin</p>
  1390. </dd>
  1391. <dt><code class="docutils literal notranslate"><span class="pre">&#64;SERVER&#64;</span></code></dt><dd><p>MySQL server name</p>
  1392. </dd>
  1393. <dt><code class="docutils literal notranslate"><span class="pre">&#64;VERBOSE&#64;</span></code></dt><dd><p>Verbose MySQL server name as defined in <span class="target" id="index-23"></span><a class="reference internal" href="config.html#cfg_Servers_verbose"><code class="xref config config-option docutils literal notranslate"><span class="pre">$cfg['Servers'][$i]['verbose']</span></code></a></p>
  1394. </dd>
  1395. <dt><code class="docutils literal notranslate"><span class="pre">&#64;VSERVER&#64;</span></code></dt><dd><p>Verbose MySQL server name if set, otherwise normal</p>
  1396. </dd>
  1397. <dt><code class="docutils literal notranslate"><span class="pre">&#64;DATABASE&#64;</span></code></dt><dd><p>Currently opened database</p>
  1398. </dd>
  1399. <dt><code class="docutils literal notranslate"><span class="pre">&#64;TABLE&#64;</span></code></dt><dd><p>Currently opened table</p>
  1400. </dd>
  1401. <dt><code class="docutils literal notranslate"><span class="pre">&#64;COLUMNS&#64;</span></code></dt><dd><p>Columns of the currently opened table</p>
  1402. </dd>
  1403. <dt><code class="docutils literal notranslate"><span class="pre">&#64;PHPMYADMIN&#64;</span></code></dt><dd><p>phpMyAdmin with version</p>
  1404. </dd>
  1405. </dl>
  1406. </div>
  1407. <div class="section" id="how-can-i-easily-edit-relational-schema-for-export">
  1408. <span id="wysiwyg"></span><h3>6.28 How can I easily edit relational schema for export?<a class="headerlink" href="#how-can-i-easily-edit-relational-schema-for-export" title="Permalink to this headline">¶</a></h3>
  1409. <p>By clicking on the button ‘toggle scratchboard’ on the page where you
  1410. edit x/y coordinates of those elements you can activate a scratchboard
  1411. where all your elements are placed. By clicking on an element, you can
  1412. move them around in the pre-defined area and the x/y coordinates will
  1413. get updated dynamically. Likewise, when entering a new position
  1414. directly into the input field, the new position in the scratchboard
  1415. changes after your cursor leaves the input field.</p>
  1416. <p>You have to click on the ‘OK’-button below the tables to save the new
  1417. positions. If you want to place a new element, first add it to the
  1418. table of elements and then you can drag the new element around.</p>
  1419. <p>By changing the paper size and the orientation you can change the size
  1420. of the scratchboard as well. You can do so by just changing the
  1421. dropdown field below, and the scratchboard will resize automatically,
  1422. without interfering with the current placement of the elements.</p>
  1423. <p>If ever an element gets out of range you can either enlarge the paper
  1424. size or click on the ‘reset’ button to place all elements below each
  1425. other.</p>
  1426. </div>
  1427. <div class="section" id="why-can-t-i-get-a-chart-from-my-query-result-table">
  1428. <span id="faq6-29"></span><h3>6.29 Why can’t I get a chart from my query result table?<a class="headerlink" href="#why-can-t-i-get-a-chart-from-my-query-result-table" title="Permalink to this headline">¶</a></h3>
  1429. <p>Not every table can be put to the chart. Only tables with one, two or
  1430. three columns can be visualised as a chart. Moreover the table must be
  1431. in a special format for chart script to understand it. Currently
  1432. supported formats can be found in <a class="reference internal" href="charts.html#charts"><span class="std std-ref">Charts</span></a>.</p>
  1433. </div>
  1434. <div class="section" id="import-how-can-i-import-esri-shapefiles">
  1435. <span id="faq6-30"></span><h3>6.30 Import: How can I import ESRI Shapefiles?<a class="headerlink" href="#import-how-can-i-import-esri-shapefiles" title="Permalink to this headline">¶</a></h3>
  1436. <p>An ESRI Shapefile is actually a set of several files, where .shp file
  1437. contains geometry data and .dbf file contains data related to those
  1438. geometry data. To read data from .dbf file you need to have PHP
  1439. compiled with the dBase extension (–enable-dbase). Otherwise only
  1440. geometry data will be imported.</p>
  1441. <p>To upload these set of files you can use either of the following
  1442. methods:</p>
  1443. <p>Configure upload directory with <span class="target" id="index-24"></span><a class="reference internal" href="config.html#cfg_UploadDir"><code class="xref config config-option docutils literal notranslate"><span class="pre">$cfg['UploadDir']</span></code></a>, upload both .shp and .dbf files with
  1444. the same filename and chose the .shp file from the import page.</p>
  1445. <p>Create a zip archive with .shp and .dbf files and import it. For this
  1446. to work, you need to set <span class="target" id="index-25"></span><a class="reference internal" href="config.html#cfg_TempDir"><code class="xref config config-option docutils literal notranslate"><span class="pre">$cfg['TempDir']</span></code></a> to a place where the web server user can
  1447. write (for example <code class="docutils literal notranslate"><span class="pre">'./tmp'</span></code>).</p>
  1448. <p>To create the temporary directory on a UNIX-based system, you can do:</p>
  1449. <div class="highlight-sh notranslate"><div class="highlight"><pre><span></span><span class="nb">cd</span> phpMyAdmin
  1450. mkdir tmp
  1451. chmod o+rwx tmp
  1452. </pre></div>
  1453. </div>
  1454. </div>
  1455. <div class="section" id="how-do-i-create-a-relation-in-designer">
  1456. <span id="faq6-31"></span><h3>6.31 How do I create a relation in designer?<a class="headerlink" href="#how-do-i-create-a-relation-in-designer" title="Permalink to this headline">¶</a></h3>
  1457. <p>To select relation, click: The display column is shown in pink. To
  1458. set/unset a column as the display column, click the “Choose column to
  1459. display” icon, then click on the appropriate column name.</p>
  1460. </div>
  1461. <div class="section" id="how-can-i-use-the-zoom-search-feature">
  1462. <span id="faq6-32"></span><h3>6.32 How can I use the zoom search feature?<a class="headerlink" href="#how-can-i-use-the-zoom-search-feature" title="Permalink to this headline">¶</a></h3>
  1463. <p>The Zoom search feature is an alternative to table search feature. It allows
  1464. you to explore a table by representing its data in a scatter plot. You can
  1465. locate this feature by selecting a table and clicking the <span class="guilabel">Search</span>
  1466. tab. One of the sub-tabs in the <span class="guilabel">Table Search</span> page is
  1467. <span class="guilabel">Zoom Search</span>.</p>
  1468. <p>Consider the table REL_persons in <a class="reference internal" href="#faq6-6"><span class="std std-ref">6.6 How can I use the relation table in Query-by-example?</span></a> for
  1469. an example. To use zoom search, two columns need to be selected, for
  1470. example, id and town_code. The id values will be represented on one
  1471. axis and town_code values on the other axis. Each row will be
  1472. represented as a point in a scatter plot based on its id and
  1473. town_code. You can include two additional search criteria apart from
  1474. the two fields to display.</p>
  1475. <p>You can choose which field should be
  1476. displayed as label for each point. If a display column has been set
  1477. for the table (see <a class="reference internal" href="#faqdisplay"><span class="std std-ref">6.7 How can I use the “display column” feature?</span></a>), it is taken as the label unless
  1478. you specify otherwise. You can also select the maximum number of rows
  1479. you want to be displayed in the plot by specifing it in the ‘Max rows
  1480. to plot’ field. Once you have decided over your criteria, click ‘Go’
  1481. to display the plot.</p>
  1482. <p>After the plot is generated, you can use the
  1483. mousewheel to zoom in and out of the plot. In addition, panning
  1484. feature is enabled to navigate through the plot. You can zoom-in to a
  1485. certain level of detail and use panning to locate your area of
  1486. interest. Clicking on a point opens a dialogue box, displaying field
  1487. values of the data row represented by the point. You can edit the
  1488. values if required and click on submit to issue an update query. Basic
  1489. instructions on how to use can be viewed by clicking the ‘How to use?’
  1490. link located just above the plot.</p>
  1491. </div>
  1492. <div class="section" id="when-browsing-a-table-how-can-i-copy-a-column-name">
  1493. <span id="faq6-33"></span><h3>6.33 When browsing a table, how can I copy a column name?<a class="headerlink" href="#when-browsing-a-table-how-can-i-copy-a-column-name" title="Permalink to this headline">¶</a></h3>
  1494. <p>Selecting the name of the column within the browse table header cell
  1495. for copying is difficult, as the columns support reordering by
  1496. dragging the header cells as well as sorting by clicking on the linked
  1497. column name. To copy a column name, double-click on the empty area
  1498. next to the column name, when the tooltip tells you to do so. This
  1499. will show you an input box with the column name. You may right-click
  1500. the column name within this input box to copy it to your clipboard.</p>
  1501. </div>
  1502. <div class="section" id="how-can-i-use-the-favorite-tables-feature">
  1503. <span id="faq6-34"></span><h3>6.34 How can I use the Favorite Tables feature?<a class="headerlink" href="#how-can-i-use-the-favorite-tables-feature" title="Permalink to this headline">¶</a></h3>
  1504. <p>Favorite Tables feature is very much similar to Recent Tables feature.
  1505. It allows you to add a shortcut for the frequently used tables of any
  1506. database in the navigation panel . You can easily navigate to any table
  1507. in the list by simply choosing it from the list. These tables are stored
  1508. in your browser’s local storage if you have not configured your
  1509. <cite>phpMyAdmin Configuration Storage</cite>. Otherwise these entries are stored in
  1510. <cite>phpMyAdmin Configuration Storage</cite>.</p>
  1511. <p>IMPORTANT: In absence of <cite>phpMyAdmin Configuration Storage</cite>, your Favorite
  1512. tables may be different in different browsers based on your different
  1513. selections in them.</p>
  1514. <p>To add a table to Favorite list simply click on the <cite>Gray</cite> star in front
  1515. of a table name in the list of tables of a Database and wait until it
  1516. turns to <cite>Yellow</cite>.
  1517. To remove a table from list, simply click on the <cite>Yellow</cite> star and
  1518. wait until it turns <cite>Gray</cite> again.</p>
  1519. <p>Using <span class="target" id="index-26"></span><a class="reference internal" href="config.html#cfg_NumFavoriteTables"><code class="xref config config-option docutils literal notranslate"><span class="pre">$cfg['NumFavoriteTables']</span></code></a> in your <code class="file docutils literal notranslate"><span class="pre">config.inc.php</span></code>
  1520. file, you can define the maximum number of favorite tables shown in the
  1521. navigation panel. Its default value is <cite>10</cite>.</p>
  1522. </div>
  1523. <div class="section" id="how-can-i-use-the-range-search-feature">
  1524. <span id="faq6-35"></span><h3>6.35 How can I use the Range search feature?<a class="headerlink" href="#how-can-i-use-the-range-search-feature" title="Permalink to this headline">¶</a></h3>
  1525. <p>With the help of range search feature, one can specify a range of values for
  1526. particular column(s) while performing search operation on a table from the <cite>Search</cite>
  1527. tab.</p>
  1528. <p>To use this feature simply click on the <cite>BETWEEN</cite> or <cite>NOT BETWEEN</cite> operators
  1529. from the operator select list in front of the column name. On choosing one of the
  1530. above options, a dialog box will show up asking for the <cite>Minimum</cite> and <cite>Maximum</cite>
  1531. value for that column. Only the specified range of values will be included
  1532. in case of <cite>BETWEEN</cite> and excluded in case of <cite>NOT BETWEEN</cite> from the final results.</p>
  1533. <p>Note: The Range search feature will work only <cite>Numeric</cite> and <cite>Date</cite> data type columns.</p>
  1534. </div>
  1535. <div class="section" id="what-is-central-columns-and-how-can-i-use-this-feature">
  1536. <span id="faq6-36"></span><h3>6.36 What is Central columns and how can I use this feature?<a class="headerlink" href="#what-is-central-columns-and-how-can-i-use-this-feature" title="Permalink to this headline">¶</a></h3>
  1537. <p>As the name suggests, the Central columns feature enables to maintain a central list of
  1538. columns per database to avoid similar name for the same data element and bring consistency
  1539. of data type for the same data element. You can use the central list of columns to
  1540. add an element to any table structure in that database which will save from writing
  1541. similar column name and column definition.</p>
  1542. <p>To add a column to central list, go to table structure page, check the columns you want
  1543. to include and then simply click on “Add to central columns”. If you want to add all
  1544. unique columns from more than one table from a database then go to database structure page,
  1545. check the tables you want to include and then select “Add columns to central list”.</p>
  1546. <p>To remove a column from central list, go to Table structure page, check the columns you want
  1547. to remove and then simply click on “Remove from central columns”. If you want to remove all
  1548. columns from more than one tables from a database then go to database structure page,
  1549. check the tables you want to include and then select “Remove columns from central list”.</p>
  1550. <p>To view and manage the central list, select the database you want to manage central columns
  1551. for then from the top menu click on “Central columns”. You will be taken to a page where
  1552. you will have options to edit, delete or add new columns to central list.</p>
  1553. </div>
  1554. <div class="section" id="how-can-i-use-improve-table-structure-feature">
  1555. <span id="faq6-37"></span><h3>6.37 How can I use Improve Table structure feature?<a class="headerlink" href="#how-can-i-use-improve-table-structure-feature" title="Permalink to this headline">¶</a></h3>
  1556. <p>Improve table structure feature helps to bring the table structure upto
  1557. Third Normal Form. A wizard is presented to user which asks questions about the
  1558. elements during the various steps for normalization and a new structure is proposed
  1559. accordingly to bring the table into the First/Second/Third Normal form.
  1560. On startup of the wizard, user gets to select upto what normal form they want to
  1561. normalize the table structure.</p>
  1562. <p>Here is an example table which you can use to test all of the three First, Second and
  1563. Third Normal Form.</p>
  1564. <div class="highlight-mysql notranslate"><div class="highlight"><pre><span></span><span class="k">CREATE</span> <span class="k">TABLE</span> <span class="n">`VetOffice`</span> <span class="p">(</span>
  1565. <span class="n">`petName`</span> <span class="kt">varchar</span><span class="p">(</span><span class="mi">64</span><span class="p">)</span> <span class="k">NOT</span> <span class="no">NULL</span><span class="p">,</span>
  1566. <span class="n">`petBreed`</span> <span class="kt">varchar</span><span class="p">(</span><span class="mi">64</span><span class="p">)</span> <span class="k">NOT</span> <span class="no">NULL</span><span class="p">,</span>
  1567. <span class="n">`petType`</span> <span class="kt">varchar</span><span class="p">(</span><span class="mi">64</span><span class="p">)</span> <span class="k">NOT</span> <span class="no">NULL</span><span class="p">,</span>
  1568. <span class="n">`petDOB`</span> <span class="kt">date</span> <span class="k">NOT</span> <span class="no">NULL</span><span class="p">,</span>
  1569. <span class="n">`ownerLastName`</span> <span class="kt">varchar</span><span class="p">(</span><span class="mi">64</span><span class="p">)</span> <span class="k">NOT</span> <span class="no">NULL</span><span class="p">,</span>
  1570. <span class="n">`ownerFirstName`</span> <span class="kt">varchar</span><span class="p">(</span><span class="mi">64</span><span class="p">)</span> <span class="k">NOT</span> <span class="no">NULL</span><span class="p">,</span>
  1571. <span class="n">`ownerPhone1`</span> <span class="kt">int</span><span class="p">(</span><span class="mi">12</span><span class="p">)</span> <span class="k">NOT</span> <span class="no">NULL</span><span class="p">,</span>
  1572. <span class="n">`ownerPhone2`</span> <span class="kt">int</span><span class="p">(</span><span class="mi">12</span><span class="p">)</span> <span class="k">NOT</span> <span class="no">NULL</span><span class="p">,</span>
  1573. <span class="n">`ownerEmail`</span> <span class="kt">varchar</span><span class="p">(</span><span class="mi">64</span><span class="p">)</span> <span class="k">NOT</span> <span class="no">NULL</span><span class="p">,</span>
  1574. <span class="p">);</span>
  1575. </pre></div>
  1576. </div>
  1577. <p>The above table is not in First normal Form as no <a class="reference internal" href="glossary.html#term-primary-key"><span class="xref std std-term">primary key</span></a> exists. Primary key
  1578. is supposed to be (<cite>petName</cite>,`ownerLastName`,`ownerFirstName`) . If the <a class="reference internal" href="glossary.html#term-primary-key"><span class="xref std std-term">primary key</span></a>
  1579. is chosen as suggested the resultant table won’t be in Second as well as Third Normal
  1580. form as the following dependencies exists.</p>
  1581. <div class="highlight-mysql notranslate"><div class="highlight"><pre><span></span><span class="p">(</span><span class="n">OwnerLastName</span><span class="p">,</span> <span class="n">OwnerFirstName</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">OwnerEmail</span>
  1582. <span class="p">(</span><span class="n">OwnerLastName</span><span class="p">,</span> <span class="n">OwnerFirstName</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">OwnerPhone</span>
  1583. <span class="n">PetBreed</span> <span class="o">-&gt;</span> <span class="n">PetType</span>
  1584. </pre></div>
  1585. </div>
  1586. <p>Which says, OwnerEmail depends on OwnerLastName and OwnerFirstName.
  1587. OwnerPhone depends on OwnerLastName and OwnerFirstName.
  1588. PetType depends on PetBreed.</p>
  1589. </div>
  1590. <div class="section" id="how-can-i-reassign-auto-incremented-values">
  1591. <span id="faq6-38"></span><h3>6.38 How can I reassign auto-incremented values?<a class="headerlink" href="#how-can-i-reassign-auto-incremented-values" title="Permalink to this headline">¶</a></h3>
  1592. <p>Some users prefer their AUTO_INCREMENT values to be consecutive; this is not
  1593. always the case after row deletion.</p>
  1594. <p>Here are the steps to accomplish this. These are manual steps because they
  1595. involve a manual verification at one point.</p>
  1596. <ul class="simple">
  1597. <li><p>Ensure that you have exclusive access to the table to rearrange</p></li>
  1598. <li><p>On your <a class="reference internal" href="glossary.html#term-primary-key"><span class="xref std std-term">primary key</span></a> column (i.e. id), remove the AUTO_INCREMENT setting</p></li>
  1599. <li><p>Delete your primary key in Structure &gt; indexes</p></li>
  1600. <li><p>Create a new column future_id as primary key, AUTO_INCREMENT</p></li>
  1601. <li><p>Browse your table and verify that the new increments correspond to what
  1602. you’re expecting</p></li>
  1603. <li><p>Drop your old id column</p></li>
  1604. <li><p>Rename the future_id column to id</p></li>
  1605. <li><p>Move the new id column via Structure &gt; Move columns</p></li>
  1606. </ul>
  1607. </div>
  1608. <div class="section" id="what-is-the-adjust-privileges-option-when-renaming-copying-or-moving-a-database-table-column-or-procedure">
  1609. <span id="faq6-39"></span><h3>6.39 What is the “Adjust privileges” option when renaming, copying, or moving a database, table, column, or procedure?<a class="headerlink" href="#what-is-the-adjust-privileges-option-when-renaming-copying-or-moving-a-database-table-column-or-procedure" title="Permalink to this headline">¶</a></h3>
  1610. <p>When renaming/copying/moving a database/table/column/procedure,
  1611. MySQL does not adjust the original privileges relating to these objects
  1612. on its own. By selecting this option, phpMyAdmin will adjust the privilege
  1613. table so that users have the same privileges on the new items.</p>
  1614. <p>For example: A user <a class="reference external" href="mailto:'bob'&#37;&#52;&#48;'localhost">‘bob’<span>&#64;</span>’localhost</a>’ has a ‘SELECT’ privilege on a
  1615. column named ‘id’. Now, if this column is renamed to ‘id_new’, MySQL,
  1616. on its own, would <strong>not</strong> adjust the column privileges to the new column name.
  1617. phpMyAdmin can make this adjustment for you automatically.</p>
  1618. <p>Notes:</p>
  1619. <ul class="simple">
  1620. <li><p>While adjusting privileges for a database, the privileges of all
  1621. database-related elements (tables, columns and procedures) are also adjusted
  1622. to the database’s new name.</p></li>
  1623. <li><p>Similarly, while adjusting privileges for a table, the privileges of all
  1624. the columns inside the new table are also adjusted.</p></li>
  1625. <li><p>While adjusting privileges, the user performing the operation <strong>must</strong> have the following
  1626. privileges:</p>
  1627. <ul>
  1628. <li><p>SELECT, INSERT, UPDATE, DELETE privileges on following tables:
  1629. <cite>mysql</cite>.`db`, <cite>mysql</cite>.`columns_priv`, <cite>mysql</cite>.`tables_priv`, <cite>mysql</cite>.`procs_priv`</p></li>
  1630. <li><p>FLUSH privilege (GLOBAL)</p></li>
  1631. </ul>
  1632. </li>
  1633. </ul>
  1634. <p>Thus, if you want to replicate the database/table/column/procedure as it is
  1635. while renaming/copying/moving these objects, make sure you have checked this option.</p>
  1636. </div>
  1637. <div class="section" id="i-see-bind-parameters-checkbox-in-the-sql-page-how-do-i-write-parameterized-sql-queries">
  1638. <span id="faq6-40"></span><h3>6.40 I see “Bind parameters” checkbox in the “SQL” page. How do I write parameterized SQL queries?<a class="headerlink" href="#i-see-bind-parameters-checkbox-in-the-sql-page-how-do-i-write-parameterized-sql-queries" title="Permalink to this headline">¶</a></h3>
  1639. <p>From version 4.5, phpMyAdmin allows users to execute parameterized queries in the “SQL” page.
  1640. Parameters should be prefixed with a colon(:) and when the “Bind parameters” checkbox is checked
  1641. these parameters will be identified and input fields for these parameters will be presented.
  1642. Values entered in these field will be substituted in the query before being executed.</p>
  1643. </div>
  1644. <div class="section" id="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">
  1645. <span id="faq6-41"></span><h3>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 ?<a class="headerlink" href="#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" title="Permalink to this headline">¶</a></h3>
  1646. <p>If you get errors like <em>#1031 - Table storage engine for ‘table_name’ doesn’t have this option</em>
  1647. while importing the dumps exported from pre-5.7.7 MySQL servers into new MySQL server versions 5.7.7+,
  1648. it might be because ROW_FORMAT=FIXED is not supported with InnoDB tables. Moreover, the value of
  1649. <a class="reference external" href="https://dev.mysql.com/doc/refman/5.7/en/innodb-parameters.html#sysvar_innodb_strict_mode">innodb_strict_mode</a> would define if this would be reported as a warning or as an error.</p>
  1650. <p>Since MySQL version 5.7.9, the default value for <cite>innodb_strict_mode</cite> is <cite>ON</cite> and thus would generate
  1651. an error when such a CREATE TABLE or ALTER TABLE statement is encountered.</p>
  1652. <p>There are two ways of preventing such errors while importing:</p>
  1653. <ul class="simple">
  1654. <li><p>Change the value of <cite>innodb_strict_mode</cite> to <cite>OFF</cite> before starting the import and turn it <cite>ON</cite> after
  1655. the import is successfully completed.</p></li>
  1656. <li><p>This can be achieved in two ways:</p>
  1657. <ul>
  1658. <li><p>Go to ‘Variables’ page and edit the value of <cite>innodb_strict_mode</cite></p></li>
  1659. <li><p>Run the query : <cite>SET GLOBAL `innodb_strict_mode</cite> = ‘[value]’`</p></li>
  1660. </ul>
  1661. </li>
  1662. </ul>
  1663. <p>After the import is done, it is suggested that the value of <cite>innodb_strict_mode</cite> should be reset to the
  1664. original value.</p>
  1665. </div>
  1666. </div>
  1667. <div class="section" id="phpmyadmin-project">
  1668. <span id="faqproject"></span><h2>phpMyAdmin project<a class="headerlink" href="#phpmyadmin-project" title="Permalink to this headline">¶</a></h2>
  1669. <div class="section" id="i-have-found-a-bug-how-do-i-inform-developers">
  1670. <span id="faq7-1"></span><h3>7.1 I have found a bug. How do I inform developers?<a class="headerlink" href="#i-have-found-a-bug-how-do-i-inform-developers" title="Permalink to this headline">¶</a></h3>
  1671. <p>Our issues tracker is located at &lt;<a class="reference external" href="https://github.com/phpmyadmin/phpmyadmin/issues">https://github.com/phpmyadmin/phpmyadmin/issues</a>&gt;.
  1672. For security issues, please refer to the instructions at &lt;<a class="reference external" href="https://www.phpmyadmin.net/security">https://www.phpmyadmin.net/security</a>&gt; to email
  1673. the developers directly.</p>
  1674. </div>
  1675. <div class="section" id="i-want-to-translate-the-messages-to-a-new-language-or-upgrade-an-existing-language-where-do-i-start">
  1676. <span id="faq7-2"></span><h3>7.2 I want to translate the messages to a new language or upgrade an existing language, where do I start?<a class="headerlink" href="#i-want-to-translate-the-messages-to-a-new-language-or-upgrade-an-existing-language-where-do-i-start" title="Permalink to this headline">¶</a></h3>
  1677. <p>Translations are very welcome and all you need to have are the
  1678. language skills. The easiest way is to use our <a class="reference external" href="https://hosted.weblate.org/projects/phpmyadmin/">online translation
  1679. service</a>. You can check
  1680. out all the possibilities to translate in the <a class="reference external" href="https://www.phpmyadmin.net/translate/">translate section on
  1681. our website</a>.</p>
  1682. </div>
  1683. <div class="section" id="i-would-like-to-help-out-with-the-development-of-phpmyadmin-how-should-i-proceed">
  1684. <span id="faq7-3"></span><h3>7.3 I would like to help out with the development of phpMyAdmin. How should I proceed?<a class="headerlink" href="#i-would-like-to-help-out-with-the-development-of-phpmyadmin-how-should-i-proceed" title="Permalink to this headline">¶</a></h3>
  1685. <p>We welcome every contribution to the development of phpMyAdmin. You
  1686. can check out all the possibilities to contribute in the <a class="reference external" href="https://www.phpmyadmin.net/contribute/">contribute
  1687. section on our website</a>.</p>
  1688. <div class="admonition seealso">
  1689. <p class="admonition-title">See also</p>
  1690. <p><a class="reference internal" href="developers.html#developers"><span class="std std-ref">Developers Information</span></a></p>
  1691. </div>
  1692. </div>
  1693. </div>
  1694. <div class="section" id="security">
  1695. <span id="faqsecurity"></span><h2>Security<a class="headerlink" href="#security" title="Permalink to this headline">¶</a></h2>
  1696. <div class="section" id="where-can-i-get-information-about-the-security-alerts-issued-for-phpmyadmin">
  1697. <span id="faq8-1"></span><h3>8.1 Where can I get information about the security alerts issued for phpMyAdmin?<a class="headerlink" href="#where-can-i-get-information-about-the-security-alerts-issued-for-phpmyadmin" title="Permalink to this headline">¶</a></h3>
  1698. <p>Please refer to &lt;<a class="reference external" href="https://www.phpmyadmin.net/security/">https://www.phpmyadmin.net/security/</a>&gt;.</p>
  1699. </div>
  1700. <div class="section" id="how-can-i-protect-phpmyadmin-against-brute-force-attacks">
  1701. <span id="faq8-2"></span><h3>8.2 How can I protect phpMyAdmin against brute force attacks?<a class="headerlink" href="#how-can-i-protect-phpmyadmin-against-brute-force-attacks" title="Permalink to this headline">¶</a></h3>
  1702. <p>If you use Apache web server, phpMyAdmin exports information about
  1703. authentication to the Apache environment and it can be used in Apache
  1704. logs. Currently there are two variables available:</p>
  1705. <dl class="simple">
  1706. <dt><code class="docutils literal notranslate"><span class="pre">userID</span></code></dt><dd><p>User name of currently active user (he does not have to be logged in).</p>
  1707. </dd>
  1708. <dt><code class="docutils literal notranslate"><span class="pre">userStatus</span></code></dt><dd><p>Status of currently active user, one of <code class="docutils literal notranslate"><span class="pre">ok</span></code> (user is logged in),
  1709. <code class="docutils literal notranslate"><span class="pre">mysql-denied</span></code> (MySQL denied user login), <code class="docutils literal notranslate"><span class="pre">allow-denied</span></code> (user denied
  1710. by allow/deny rules), <code class="docutils literal notranslate"><span class="pre">root-denied</span></code> (root is denied in configuration),
  1711. <code class="docutils literal notranslate"><span class="pre">empty-denied</span></code> (empty password is denied).</p>
  1712. </dd>
  1713. </dl>
  1714. <p><code class="docutils literal notranslate"><span class="pre">LogFormat</span></code> directive for Apache can look like following:</p>
  1715. <div class="highlight-apache notranslate"><div class="highlight"><pre><span></span><span class="nb">LogFormat</span> <span class="s2">&quot;%h %l %u %t \&quot;%r\&quot; %&gt;s %b \&quot;%{Referer}i\&quot; \&quot;%{User-Agent}i\&quot; %{userID}n %{userStatus}n&quot;</span> pma_combined
  1716. </pre></div>
  1717. </div>
  1718. <p>You can then use any log analyzing tools to detect possible break-in
  1719. attempts.</p>
  1720. </div>
  1721. <div class="section" id="why-are-there-path-disclosures-when-directly-loading-certain-files">
  1722. <span id="faq8-3"></span><h3>8.3 Why are there path disclosures when directly loading certain files?<a class="headerlink" href="#why-are-there-path-disclosures-when-directly-loading-certain-files" title="Permalink to this headline">¶</a></h3>
  1723. <p>This is a server configuration problem. Never enable <code class="docutils literal notranslate"><span class="pre">display_errors</span></code> on a production site.</p>
  1724. </div>
  1725. <div class="section" id="csv-files-exported-from-phpmyadmin-could-allow-a-formula-injection-attack">
  1726. <span id="faq8-4"></span><h3>8.4 CSV files exported from phpMyAdmin could allow a formula injection attack.<a class="headerlink" href="#csv-files-exported-from-phpmyadmin-could-allow-a-formula-injection-attack" title="Permalink to this headline">¶</a></h3>
  1727. <p>It is possible to generate a <a class="reference internal" href="glossary.html#term-CSV"><span class="xref std std-term">CSV</span></a> file that, when imported to a spreadsheet program such as Microsoft Excel,
  1728. could potentially allow the execution of arbitrary commands.</p>
  1729. <p>The CSV files generated by phpMyAdmin could potentially contain text that would be interpreted by a spreadsheet program as
  1730. a formula, but we do not believe escaping those fields is the proper behavior. There is no means to properly escape and
  1731. differentiate between a desired text output and a formula that should be escaped, and CSV is a text format where function
  1732. definitions should not be interpreted anyway. We have discussed this at length and feel it is the responsibility of the
  1733. spreadsheet program to properly parse and sanitize such data on input instead.</p>
  1734. <p>Google also has a <a class="reference external" href="https://sites.google.com/site/bughunteruniversity/nonvuln/csv-excel-formula-injection">similar view</a>.</p>
  1735. </div>
  1736. </div>
  1737. <div class="section" id="synchronization">
  1738. <span id="faqsynchronization"></span><h2>Synchronization<a class="headerlink" href="#synchronization" title="Permalink to this headline">¶</a></h2>
  1739. <div class="section" id="faq9-1">
  1740. <span id="id22"></span><h3>9.1 (withdrawn).<a class="headerlink" href="#faq9-1" title="Permalink to this headline">¶</a></h3>
  1741. </div>
  1742. <div class="section" id="faq9-2">
  1743. <span id="id23"></span><h3>9.2 (withdrawn).<a class="headerlink" href="#faq9-2" title="Permalink to this headline">¶</a></h3>
  1744. </div>
  1745. </div>
  1746. </div>
  1747. <div class="clearer"></div>
  1748. </div>
  1749. </div>
  1750. </div>
  1751. <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
  1752. <div class="sphinxsidebarwrapper">
  1753. <h3><a href="index.html">Table of Contents</a></h3>
  1754. <ul>
  1755. <li><a class="reference internal" href="#">FAQ - Frequently Asked Questions</a><ul>
  1756. <li><a class="reference internal" href="#server">Server</a><ul>
  1757. <li><a class="reference internal" href="#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">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?</a></li>
  1758. <li><a class="reference internal" href="#my-apache-server-crashes-when-using-phpmyadmin">1.2 My Apache server crashes when using phpMyAdmin.</a></li>
  1759. <li><a class="reference internal" href="#withdrawn">1.3 (withdrawn).</a></li>
  1760. <li><a class="reference internal" href="#using-phpmyadmin-on-iis-i-m-displayed-the-error-message-the-specified-cgi-application-misbehaved-by-not-returning-a-complete-set-of-http-headers">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 …”.</a></li>
  1761. <li><a class="reference internal" href="#using-phpmyadmin-on-iis-i-m-facing-crashes-and-or-many-error-messages-with-the-http">1.5 Using phpMyAdmin on IIS, I’m facing crashes and/or many error messages with the HTTP.</a></li>
  1762. <li><a class="reference internal" href="#i-can-t-use-phpmyadmin-on-pws-nothing-is-displayed">1.6 I can’t use phpMyAdmin on PWS: nothing is displayed!</a></li>
  1763. <li><a class="reference internal" href="#how-can-i-gzip-a-dump-or-a-csv-export-it-does-not-seem-to-work">1.7 How can I gzip a dump or a CSV export? It does not seem to work.</a></li>
  1764. <li><a class="reference internal" href="#i-cannot-insert-a-text-file-in-a-table-and-i-get-an-error-about-safe-mode-being-in-effect">1.8 I cannot insert a text file in a table, and I get an error about safe mode being in effect.</a></li>
  1765. <li><a class="reference internal" href="#faq1-9">1.9 (withdrawn).</a></li>
  1766. <li><a class="reference internal" href="#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">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.</a></li>
  1767. <li><a class="reference internal" href="#i-get-an-open-basedir-restriction-while-uploading-a-file-from-the-import-tab">1.11 I get an ‘open_basedir restriction’ while uploading a file from the import tab.</a></li>
  1768. <li><a class="reference internal" href="#i-have-lost-my-mysql-root-password-what-can-i-do">1.12 I have lost my MySQL root password, what can I do?</a></li>
  1769. <li><a class="reference internal" href="#faq1-13">1.13 (withdrawn).</a></li>
  1770. <li><a class="reference internal" href="#faq1-14">1.14 (withdrawn).</a></li>
  1771. <li><a class="reference internal" href="#i-have-problems-with-mysql-user-column-names">1.15 I have problems with <em>mysql.user</em> column names.</a></li>
  1772. <li><a class="reference internal" href="#i-cannot-upload-big-dump-files-memory-http-or-timeout-problems">1.16 I cannot upload big dump files (memory, HTTP or timeout problems).</a></li>
  1773. <li><a class="reference internal" href="#which-database-versions-does-phpmyadmin-support">1.17 Which Database versions does phpMyAdmin support?</a></li>
  1774. <li><a class="reference internal" href="#a-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">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”</a></li>
  1775. <li><a class="reference internal" href="#faq1-18">1.18 (withdrawn).</a></li>
  1776. <li><a class="reference internal" href="#i-can-t-run-the-display-relations-feature-because-the-script-seems-not-to-know-the-font-face-i-m-using">1.19 I can’t run the “display relations” feature because the script seems not to know the font face I’m using!</a></li>
  1777. <li><a class="reference internal" href="#i-receive-an-error-about-missing-mysqli-and-mysql-extensions">1.20 I receive an error about missing mysqli and mysql extensions.</a></li>
  1778. <li><a class="reference internal" href="#i-am-running-the-cgi-version-of-php-under-unix-and-i-cannot-log-in-using-cookie-auth">1.21 I am running the CGI version of PHP under Unix, and I cannot log in using cookie auth.</a></li>
  1779. <li><a class="reference internal" href="#i-don-t-see-the-location-of-text-file-field-so-i-cannot-upload">1.22 I don’t see the “Location of text file” field, so I cannot upload.</a></li>
  1780. <li><a class="reference internal" href="#i-m-running-mysql-on-a-win32-machine-each-time-i-create-a-new-table-the-table-and-column-names-are-changed-to-lowercase">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!</a></li>
  1781. <li><a class="reference internal" href="#faq1-24">1.24 (withdrawn).</a></li>
  1782. <li><a class="reference internal" href="#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">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.</a></li>
  1783. <li><a class="reference internal" href="#i-just-installed-phpmyadmin-in-my-document-root-of-iis-but-i-get-the-error-no-input-file-specified-when-trying-to-run-phpmyadmin">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.</a></li>
  1784. <li><a class="reference internal" href="#i-get-empty-page-when-i-want-to-view-huge-page-eg-db-structure-php-with-plenty-of-tables">1.27 I get empty page when I want to view huge page (eg. db_structure.php with plenty of tables).</a></li>
  1785. <li><a class="reference internal" href="#my-mysql-server-sometimes-refuses-queries-and-returns-the-message-errorcode-13-what-does-this-mean">1.28 My MySQL server sometimes refuses queries and returns the message ‘Errorcode: 13’. What does this mean?</a></li>
  1786. <li><a class="reference internal" href="#when-i-create-a-table-or-modify-a-column-i-get-an-error-and-the-columns-are-duplicated">1.29 When I create a table or modify a column, I get an error and the columns are duplicated.</a></li>
  1787. <li><a class="reference internal" href="#i-get-the-error-navigation-php-missing-hash">1.30 I get the error “navigation.php: Missing hash”.</a></li>
  1788. <li><a class="reference internal" href="#which-php-versions-does-phpmyadmin-support">1.31 Which PHP versions does phpMyAdmin support?</a></li>
  1789. <li><a class="reference internal" href="#can-i-use-http-authentication-with-iis">1.32 Can I use HTTP authentication with IIS?</a></li>
  1790. <li><a class="reference internal" href="#faq1-33">1.33 (withdrawn).</a></li>
  1791. <li><a class="reference internal" href="#can-i-access-directly-to-database-or-table-pages">1.34 Can I access directly to database or table pages?</a></li>
  1792. <li><a class="reference internal" href="#can-i-use-http-authentication-with-apache-cgi">1.35 Can I use HTTP authentication with Apache CGI?</a></li>
  1793. <li><a class="reference internal" href="#i-get-an-error-500-internal-server-error">1.36 I get an error “500 Internal Server Error”.</a></li>
  1794. <li><a class="reference internal" href="#i-run-phpmyadmin-on-cluster-of-different-machines-and-password-encryption-in-cookie-auth-doesn-t-work">1.37 I run phpMyAdmin on cluster of different machines and password encryption in cookie auth doesn’t work.</a></li>
  1795. <li><a class="reference internal" href="#can-i-use-phpmyadmin-on-a-server-on-which-suhosin-is-enabled">1.38 Can I use phpMyAdmin on a server on which Suhosin is enabled?</a></li>
  1796. <li><a class="reference internal" href="#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">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?</a></li>
  1797. <li><a class="reference internal" href="#when-accessing-phpmyadmin-via-an-apache-reverse-proxy-cookie-login-does-not-work">1.40 When accessing phpMyAdmin via an Apache reverse proxy, cookie login does not work.</a></li>
  1798. <li><a class="reference internal" href="#when-i-view-a-database-and-ask-to-see-its-privileges-i-get-an-error-about-an-unknown-column">1.41 When I view a database and ask to see its privileges, I get an error about an unknown column.</a></li>
  1799. <li><a class="reference internal" href="#how-can-i-prevent-robots-from-accessing-phpmyadmin">1.42 How can I prevent robots from accessing phpMyAdmin?</a></li>
  1800. <li><a class="reference internal" href="#why-can-t-i-display-the-structure-of-my-table-containing-hundreds-of-columns">1.43 Why can’t I display the structure of my table containing hundreds of columns?</a></li>
  1801. <li><a class="reference internal" href="#how-can-i-reduce-the-installed-size-of-phpmyadmin-on-disk">1.44 How can I reduce the installed size of phpMyAdmin on disk?</a></li>
  1802. </ul>
  1803. </li>
  1804. <li><a class="reference internal" href="#configuration">Configuration</a><ul>
  1805. <li><a class="reference internal" href="#the-error-message-warning-cannot-add-header-information-headers-already-sent-by-is-displayed-what-s-the-problem">2.1 The error message “Warning: Cannot add header information - headers already sent by …” is displayed, what’s the problem?</a></li>
  1806. <li><a class="reference internal" href="#phpmyadmin-can-t-connect-to-mysql-what-s-wrong">2.2 phpMyAdmin can’t connect to MySQL. What’s wrong?</a></li>
  1807. <li><a class="reference internal" href="#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">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?</a></li>
  1808. <li><a class="reference internal" href="#nothing-is-displayed-by-my-browser-when-i-try-to-run-phpmyadmin-what-can-i-do">2.4 Nothing is displayed by my browser when I try to run phpMyAdmin, what can I do?</a></li>
  1809. <li><a class="reference internal" href="#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">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?</a></li>
  1810. <li><a class="reference internal" href="#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">2.6 I get an “Access denied for user: ‘root&#64;localhost’ (Using password: YES)”-error when trying to access a MySQL-Server on a host which is port-forwarded for my localhost.</a></li>
  1811. <li><a class="reference internal" href="#using-and-creating-themes">2.7 Using and creating themes</a></li>
  1812. <li><a class="reference internal" href="#i-get-missing-parameters-errors-what-can-i-do">2.8 I get “Missing parameters” errors, what can I do?</a></li>
  1813. <li><a class="reference internal" href="#seeing-an-upload-progress-bar">2.9 Seeing an upload progress bar</a></li>
  1814. </ul>
  1815. </li>
  1816. <li><a class="reference internal" href="#known-limitations">Known limitations</a><ul>
  1817. <li><a class="reference internal" href="#when-using-http-authentication-a-user-who-logged-out-can-not-log-in-again-in-with-the-same-nick">3.1 When using HTTP authentication, a user who logged out can not log in again in with the same nick.</a></li>
  1818. <li><a class="reference internal" href="#when-dumping-a-large-table-in-compressed-mode-i-get-a-memory-limit-error-or-a-time-limit-error">3.2 When dumping a large table in compressed mode, I get a memory limit error or a time limit error.</a></li>
  1819. <li><a class="reference internal" href="#with-innodb-tables-i-lose-foreign-key-relationships-when-i-rename-a-table-or-a-column">3.3 With InnoDB tables, I lose foreign key relationships when I rename a table or a column.</a></li>
  1820. <li><a class="reference internal" href="#i-am-unable-to-import-dumps-i-created-with-the-mysqldump-tool-bundled-with-the-mysql-server-distribution">3.4 I am unable to import dumps I created with the mysqldump tool bundled with the MySQL server distribution.</a></li>
  1821. <li><a class="reference internal" href="#when-using-nested-folders-multiple-hierarchies-are-displayed-in-a-wrong-manner">3.5 When using nested folders, multiple hierarchies are displayed in a wrong manner.</a></li>
  1822. <li><a class="reference internal" href="#faq3-6">3.6 (withdrawn).</a></li>
  1823. <li><a class="reference internal" href="#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">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?</a></li>
  1824. <li><a class="reference internal" href="#i-cannot-use-clickable-html-forms-in-columns-where-i-put-a-mime-transformation-onto">3.8 I cannot use (clickable) HTML-forms in columns where I put a MIME-Transformation onto!</a></li>
  1825. <li><a class="reference internal" href="#i-get-error-messages-when-using-sql-mode-ansi-for-the-mysql-server">3.9 I get error messages when using “–sql_mode=ANSI” for the MySQL server.</a></li>
  1826. <li><a class="reference internal" href="#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">3.10 Homonyms and no primary key: When the results of a SELECT display more that one column with the same value (for example <code class="docutils literal notranslate"><span class="pre">SELECT</span> <span class="pre">lastname</span> <span class="pre">from</span> <span class="pre">employees</span> <span class="pre">where</span> <span class="pre">firstname</span> <span class="pre">like</span> <span class="pre">'A%'</span></code> and two “Smith” values are displayed), if I click Edit I cannot be sure that I am editing the intended row.</a></li>
  1827. <li><a class="reference internal" href="#the-number-of-rows-for-innodb-tables-is-not-correct">3.11 The number of rows for InnoDB tables is not correct.</a></li>
  1828. <li><a class="reference internal" href="#faq3-12">3.12 (withdrawn).</a></li>
  1829. <li><a class="reference internal" href="#i-get-an-error-when-entering-use-followed-by-a-db-name-containing-an-hyphen">3.13 I get an error when entering <code class="docutils literal notranslate"><span class="pre">USE</span></code> followed by a db name containing an hyphen.</a></li>
  1830. <li><a class="reference internal" href="#i-am-not-able-to-browse-a-table-when-i-don-t-have-the-right-to-select-one-of-the-columns">3.14 I am not able to browse a table when I don’t have the right to SELECT one of the columns.</a></li>
  1831. <li><a class="reference internal" href="#faq3-15">3.15 (withdrawn).</a></li>
  1832. <li><a class="reference internal" href="#faq3-16">3.16 (withdrawn).</a></li>
  1833. <li><a class="reference internal" href="#faq3-17">3.17 (withdrawn).</a></li>
  1834. <li><a class="reference internal" href="#when-i-import-a-csv-file-that-contains-multiple-tables-they-are-lumped-together-into-a-single-table">3.18 When I import a CSV file that contains multiple tables, they are lumped together into a single table.</a></li>
  1835. <li><a class="reference internal" href="#when-i-import-a-file-and-have-phpmyadmin-determine-the-appropriate-data-structure-it-only-uses-int-decimal-and-varchar-types">3.19 When I import a file and have phpMyAdmin determine the appropriate data structure it only uses int, decimal, and varchar types.</a></li>
  1836. <li><a class="reference internal" href="#after-upgrading-some-bookmarks-are-gone-or-their-content-cannot-be-shown">3.20 After upgrading, some bookmarks are gone or their content cannot be shown.</a></li>
  1837. <li><a class="reference internal" href="#i-am-unable-to-log-in-with-a-username-containing-unicode-characters-such-as-a">3.21 I am unable to log in with a username containing unicode characters such as á.</a></li>
  1838. </ul>
  1839. </li>
  1840. <li><a class="reference internal" href="#isps-multi-user-installations">ISPs, multi-user installations</a><ul>
  1841. <li><a class="reference internal" href="#i-m-an-isp-can-i-setup-one-central-copy-of-phpmyadmin-or-do-i-need-to-install-it-for-each-customer">4.1 I’m an ISP. Can I setup one central copy of phpMyAdmin or do I need to install it for each customer?</a></li>
  1842. <li><a class="reference internal" href="#what-s-the-preferred-way-of-making-phpmyadmin-secure-against-evil-access">4.2 What’s the preferred way of making phpMyAdmin secure against evil access?</a></li>
  1843. <li><a class="reference internal" href="#i-get-errors-about-not-being-able-to-include-a-file-in-lang-or-in-libraries">4.3 I get errors about not being able to include a file in <em>/lang</em> or in <em>/libraries</em>.</a></li>
  1844. <li><a class="reference internal" href="#phpmyadmin-always-gives-access-denied-when-using-http-authentication">4.4 phpMyAdmin always gives “Access denied” when using HTTP authentication.</a></li>
  1845. <li><a class="reference internal" href="#is-it-possible-to-let-users-create-their-own-databases">4.5 Is it possible to let users create their own databases?</a></li>
  1846. <li><a class="reference internal" href="#how-can-i-use-the-host-based-authentication-additions">4.6 How can I use the Host-based authentication additions?</a></li>
  1847. <li><a class="reference internal" href="#authentication-window-is-displayed-more-than-once-why">4.7 Authentication window is displayed more than once, why?</a></li>
  1848. <li><a class="reference internal" href="#which-parameters-can-i-use-in-the-url-that-starts-phpmyadmin">4.8 Which parameters can I use in the URL that starts phpMyAdmin?</a></li>
  1849. </ul>
  1850. </li>
  1851. <li><a class="reference internal" href="#browsers-or-client-os">Browsers or client OS</a><ul>
  1852. <li><a class="reference internal" href="#i-get-an-out-of-memory-error-and-my-controls-are-non-functional-when-trying-to-create-a-table-with-more-than-14-columns">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.</a></li>
  1853. <li><a class="reference internal" href="#with-xitami-2-5b4-phpmyadmin-won-t-process-form-fields">5.2 With Xitami 2.5b4, phpMyAdmin won’t process form fields.</a></li>
  1854. <li><a class="reference internal" href="#i-have-problems-dumping-tables-with-konqueror-phpmyadmin-2-2-2">5.3 I have problems dumping tables with Konqueror (phpMyAdmin 2.2.2).</a></li>
  1855. <li><a class="reference internal" href="#i-can-t-use-the-cookie-authentication-mode-because-internet-explorer-never-stores-the-cookies">5.4 I can’t use the cookie authentication mode because Internet Explorer never stores the cookies.</a></li>
  1856. <li><a class="reference internal" href="#faq5-5">5.5 (withdrawn).</a></li>
  1857. <li><a class="reference internal" href="#faq5-6">5.6 (withdrawn).</a></li>
  1858. <li><a class="reference internal" href="#i-refresh-reload-my-browser-and-come-back-to-the-welcome-page">5.7 I refresh (reload) my browser, and come back to the welcome page.</a></li>
  1859. <li><a class="reference internal" href="#with-mozilla-0-9-7-i-have-problems-sending-a-query-modified-in-the-query-box">5.8 With Mozilla 0.9.7 I have problems sending a query modified in the query box.</a></li>
  1860. <li><a class="reference internal" href="#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">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.</a></li>
  1861. <li><a class="reference internal" href="#faq5-10">5.10 (withdrawn).</a></li>
  1862. <li><a class="reference internal" href="#extended-ascii-characters-like-german-umlauts-are-displayed-wrong">5.11 Extended-ASCII characters like German umlauts are displayed wrong.</a></li>
  1863. <li><a class="reference internal" href="#mac-os-x-safari-browser-changes-special-characters-to">5.12 Mac OS X Safari browser changes special characters to “?”.</a></li>
  1864. <li><a class="reference internal" href="#faq5-13">5.13 (withdrawn)</a></li>
  1865. <li><a class="reference internal" href="#faq5-14">5.14 (withdrawn)</a></li>
  1866. <li><a class="reference internal" href="#faq5-15">5.15 (withdrawn)</a></li>
  1867. <li><a class="reference internal" href="#with-internet-explorer-i-get-access-is-denied-javascript-errors-or-i-cannot-make-phpmyadmin-work-under-windows">5.16 With Internet Explorer, I get “Access is denied” Javascript errors. Or I cannot make phpMyAdmin work under Windows.</a></li>
  1868. <li><a class="reference internal" href="#with-firefox-i-cannot-delete-rows-of-data-or-drop-a-database">5.17 With Firefox, I cannot delete rows of data or drop a database.</a></li>
  1869. <li><a class="reference internal" href="#faq5-18">5.18 (withdrawn)</a></li>
  1870. <li><a class="reference internal" href="#i-get-javascript-errors-in-my-browser">5.19 I get JavaScript errors in my browser.</a></li>
  1871. <li><a class="reference internal" href="#i-get-errors-about-violating-content-security-policy">5.20 I get errors about violating Content Security Policy.</a></li>
  1872. <li><a class="reference internal" href="#i-get-errors-about-potentially-unsafe-operation-when-browsing-table-or-executing-sql-query">5.21 I get errors about potentially unsafe operation when browsing table or executing SQL query.</a></li>
  1873. </ul>
  1874. </li>
  1875. <li><a class="reference internal" href="#using-phpmyadmin">Using phpMyAdmin</a><ul>
  1876. <li><a class="reference internal" href="#i-can-t-insert-new-rows-into-a-table-i-can-t-create-a-table-mysql-brings-up-a-sql-error">6.1 I can’t insert new rows into a table / I can’t create a table - MySQL brings up a SQL error.</a></li>
  1877. <li><a class="reference internal" href="#when-i-create-a-table-i-set-an-index-for-two-columns-and-phpmyadmin-generates-only-one-index-with-those-two-columns">6.2 When I create a table, I set an index for two columns and phpMyAdmin generates only one index with those two columns.</a></li>
  1878. <li><a class="reference internal" href="#how-can-i-insert-a-null-value-into-my-table">6.3 How can I insert a null value into my table?</a></li>
  1879. <li><a class="reference internal" href="#how-can-i-backup-my-database-or-table">6.4 How can I backup my database or table?</a></li>
  1880. <li><a class="reference internal" href="#how-can-i-restore-upload-my-database-or-table-using-a-dump-how-can-i-run-a-sql-file">6.5 How can I restore (upload) my database or table using a dump? How can I run a “.sql” file?</a></li>
  1881. <li><a class="reference internal" href="#how-can-i-use-the-relation-table-in-query-by-example">6.6 How can I use the relation table in Query-by-example?</a></li>
  1882. <li><a class="reference internal" href="#how-can-i-use-the-display-column-feature">6.7 How can I use the “display column” feature?</a></li>
  1883. <li><a class="reference internal" href="#how-can-i-produce-a-pdf-schema-of-my-database">6.8 How can I produce a PDF schema of my database?</a></li>
  1884. <li><a class="reference internal" href="#phpmyadmin-is-changing-the-type-of-one-of-my-columns">6.9 phpMyAdmin is changing the type of one of my columns!</a></li>
  1885. <li><a class="reference internal" href="#when-creating-a-privilege-what-happens-with-underscores-in-the-database-name">6.10 When creating a privilege, what happens with underscores in the database name?</a></li>
  1886. <li><a class="reference internal" href="#what-is-the-curious-symbol-o-in-the-statistics-pages">6.11 What is the curious symbol ø in the statistics pages?</a></li>
  1887. <li><a class="reference internal" href="#i-want-to-understand-some-export-options">6.12 I want to understand some Export options.</a></li>
  1888. <li><a class="reference internal" href="#i-would-like-to-create-a-database-with-a-dot-in-its-name">6.13 I would like to create a database with a dot in its name.</a></li>
  1889. <li><a class="reference internal" href="#faqsqlvalidator">6.14 (withdrawn).</a></li>
  1890. <li><a class="reference internal" href="#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">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”.</a></li>
  1891. <li><a class="reference internal" href="#how-can-i-simply-move-in-page-with-plenty-editing-fields">6.16 How can I simply move in page with plenty editing fields?</a></li>
  1892. <li><a class="reference internal" href="#transformations-i-can-t-enter-my-own-mimetype-what-is-this-feature-then-useful-for">6.17 Transformations: I can’t enter my own mimetype! What is this feature then useful for?</a></li>
  1893. <li><a class="reference internal" href="#bookmarks-where-can-i-store-bookmarks-why-can-t-i-see-any-bookmarks-below-the-query-box-what-are-these-variables-for">6.18 Bookmarks: Where can I store bookmarks? Why can’t I see any bookmarks below the query box? What are these variables for?</a></li>
  1894. <li><a class="reference internal" href="#how-can-i-create-simple-latex-document-to-include-exported-table">6.19 How can I create simple LATEX document to include exported table?</a></li>
  1895. <li><a class="reference internal" href="#i-see-a-lot-of-databases-which-are-not-mine-and-cannot-access-them">6.20 I see a lot of databases which are not mine, and cannot access them.</a></li>
  1896. <li><a class="reference internal" href="#in-edit-insert-mode-how-can-i-see-a-list-of-possible-values-for-a-column-based-on-some-foreign-table">6.21 In edit/insert mode, how can I see a list of possible values for a column, based on some foreign table?</a></li>
  1897. <li><a class="reference internal" href="#bookmarks-can-i-execute-a-default-bookmark-automatically-when-entering-browse-mode-for-a-table">6.22 Bookmarks: Can I execute a default bookmark automatically when entering Browse mode for a table?</a></li>
  1898. <li><a class="reference internal" href="#export-i-heard-phpmyadmin-can-export-microsoft-excel-files">6.23 Export: I heard phpMyAdmin can export Microsoft Excel files?</a></li>
  1899. <li><a class="reference internal" href="#now-that-phpmyadmin-supports-native-mysql-4-1-x-column-comments-what-happens-to-my-column-comments-stored-in-pmadb">6.24 Now that phpMyAdmin supports native MySQL 4.1.x column comments, what happens to my column comments stored in pmadb?</a></li>
  1900. <li><a class="reference internal" href="#faq6-25">6.25 (withdrawn).</a></li>
  1901. <li><a class="reference internal" href="#how-can-i-select-a-range-of-rows">6.26 How can I select a range of rows?</a></li>
  1902. <li><a class="reference internal" href="#what-format-strings-can-i-use">6.27 What format strings can I use?</a></li>
  1903. <li><a class="reference internal" href="#how-can-i-easily-edit-relational-schema-for-export">6.28 How can I easily edit relational schema for export?</a></li>
  1904. <li><a class="reference internal" href="#why-can-t-i-get-a-chart-from-my-query-result-table">6.29 Why can’t I get a chart from my query result table?</a></li>
  1905. <li><a class="reference internal" href="#import-how-can-i-import-esri-shapefiles">6.30 Import: How can I import ESRI Shapefiles?</a></li>
  1906. <li><a class="reference internal" href="#how-do-i-create-a-relation-in-designer">6.31 How do I create a relation in designer?</a></li>
  1907. <li><a class="reference internal" href="#how-can-i-use-the-zoom-search-feature">6.32 How can I use the zoom search feature?</a></li>
  1908. <li><a class="reference internal" href="#when-browsing-a-table-how-can-i-copy-a-column-name">6.33 When browsing a table, how can I copy a column name?</a></li>
  1909. <li><a class="reference internal" href="#how-can-i-use-the-favorite-tables-feature">6.34 How can I use the Favorite Tables feature?</a></li>
  1910. <li><a class="reference internal" href="#how-can-i-use-the-range-search-feature">6.35 How can I use the Range search feature?</a></li>
  1911. <li><a class="reference internal" href="#what-is-central-columns-and-how-can-i-use-this-feature">6.36 What is Central columns and how can I use this feature?</a></li>
  1912. <li><a class="reference internal" href="#how-can-i-use-improve-table-structure-feature">6.37 How can I use Improve Table structure feature?</a></li>
  1913. <li><a class="reference internal" href="#how-can-i-reassign-auto-incremented-values">6.38 How can I reassign auto-incremented values?</a></li>
  1914. <li><a class="reference internal" href="#what-is-the-adjust-privileges-option-when-renaming-copying-or-moving-a-database-table-column-or-procedure">6.39 What is the “Adjust privileges” option when renaming, copying, or moving a database, table, column, or procedure?</a></li>
  1915. <li><a class="reference internal" href="#i-see-bind-parameters-checkbox-in-the-sql-page-how-do-i-write-parameterized-sql-queries">6.40 I see “Bind parameters” checkbox in the “SQL” page. How do I write parameterized SQL queries?</a></li>
  1916. <li><a class="reference internal" href="#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">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 ?</a></li>
  1917. </ul>
  1918. </li>
  1919. <li><a class="reference internal" href="#phpmyadmin-project">phpMyAdmin project</a><ul>
  1920. <li><a class="reference internal" href="#i-have-found-a-bug-how-do-i-inform-developers">7.1 I have found a bug. How do I inform developers?</a></li>
  1921. <li><a class="reference internal" href="#i-want-to-translate-the-messages-to-a-new-language-or-upgrade-an-existing-language-where-do-i-start">7.2 I want to translate the messages to a new language or upgrade an existing language, where do I start?</a></li>
  1922. <li><a class="reference internal" href="#i-would-like-to-help-out-with-the-development-of-phpmyadmin-how-should-i-proceed">7.3 I would like to help out with the development of phpMyAdmin. How should I proceed?</a></li>
  1923. </ul>
  1924. </li>
  1925. <li><a class="reference internal" href="#security">Security</a><ul>
  1926. <li><a class="reference internal" href="#where-can-i-get-information-about-the-security-alerts-issued-for-phpmyadmin">8.1 Where can I get information about the security alerts issued for phpMyAdmin?</a></li>
  1927. <li><a class="reference internal" href="#how-can-i-protect-phpmyadmin-against-brute-force-attacks">8.2 How can I protect phpMyAdmin against brute force attacks?</a></li>
  1928. <li><a class="reference internal" href="#why-are-there-path-disclosures-when-directly-loading-certain-files">8.3 Why are there path disclosures when directly loading certain files?</a></li>
  1929. <li><a class="reference internal" href="#csv-files-exported-from-phpmyadmin-could-allow-a-formula-injection-attack">8.4 CSV files exported from phpMyAdmin could allow a formula injection attack.</a></li>
  1930. </ul>
  1931. </li>
  1932. <li><a class="reference internal" href="#synchronization">Synchronization</a><ul>
  1933. <li><a class="reference internal" href="#faq9-1">9.1 (withdrawn).</a></li>
  1934. <li><a class="reference internal" href="#faq9-2">9.2 (withdrawn).</a></li>
  1935. </ul>
  1936. </li>
  1937. </ul>
  1938. </li>
  1939. </ul>
  1940. <h4>Previous topic</h4>
  1941. <p class="topless"><a href="other.html"
  1942. title="previous chapter">Other sources of information</a></p>
  1943. <h4>Next topic</h4>
  1944. <p class="topless"><a href="developers.html"
  1945. title="next chapter">Developers Information</a></p>
  1946. <div role="note" aria-label="source link">
  1947. <h3>This Page</h3>
  1948. <ul class="this-page-menu">
  1949. <li><a href="_sources/faq.rst.txt"
  1950. rel="nofollow">Show Source</a></li>
  1951. </ul>
  1952. </div>
  1953. <div id="searchbox" style="display: none" role="search">
  1954. <h3 id="searchlabel">Quick search</h3>
  1955. <div class="searchformwrapper">
  1956. <form class="search" action="search.html" method="get">
  1957. <input type="text" name="q" aria-labelledby="searchlabel" />
  1958. <input type="submit" value="Go" />
  1959. </form>
  1960. </div>
  1961. </div>
  1962. <script>$('#searchbox').show(0);</script>
  1963. </div>
  1964. </div>
  1965. <div class="clearer"></div>
  1966. </div>
  1967. <div class="related" role="navigation" aria-label="related navigation">
  1968. <h3>Navigation</h3>
  1969. <ul>
  1970. <li class="right" style="margin-right: 10px">
  1971. <a href="genindex.html" title="General Index"
  1972. >index</a></li>
  1973. <li class="right" >
  1974. <a href="developers.html" title="Developers Information"
  1975. >next</a> |</li>
  1976. <li class="right" >
  1977. <a href="other.html" title="Other sources of information"
  1978. >previous</a> |</li>
  1979. <li class="nav-item nav-item-0"><a href="index.html">phpMyAdmin 4.9.10 documentation</a> &#187;</li>
  1980. <li class="nav-item nav-item-this"><a href="">FAQ - Frequently Asked Questions</a></li>
  1981. </ul>
  1982. </div>
  1983. <div class="footer" role="contentinfo">
  1984. &#169; <a href="copyright.html">Copyright</a> 2012 - 2018, The phpMyAdmin devel team.
  1985. Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 3.4.3.
  1986. </div>
  1987. </body>
  1988. </html>