Translated using Weblate (Traditional Chinese)
[phpmyadmin.git] / doc / faq.rst
bloba59f2fe20477fe423046ab026dcdf85a4e9d1cf6
1 .. _faq:
3 FAQ - Frequently Asked Questions
4 ================================
6 Please have a look at our `Link section
7 <http://www.phpmyadmin.net/home_page/docs.php>`_ on the official
8 phpMyAdmin homepage for in-depth coverage of phpMyAdmin's features and
9 or interface.
11 .. _faqserver:
13 Server
14 ++++++
16 .. _faq1_1:
18 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?
19 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
21 Try to set the :config:option:`$cfg['OBGzip']`  directive to ``false`` in your
22 :file:`config.inc.php` file and the ``zlib.output_compression`` directive to
23 ``Off`` in your php configuration file.
25 .. _faq1_2:
27 1.2 My Apache server crashes when using phpMyAdmin.
28 ---------------------------------------------------
30 You should first try the latest versions of Apache (and possibly MySQL). If
31 your server keeps crashing, please ask for help in the various Apache support
32 groups.
34 .. seealso:: :ref:`faq1_1`
36 .. _faq1_3:
38 1.3 (withdrawn).
39 ----------------
41 .. _faq1_4:
43 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 ...".
44 -------------------------------------------------------------------------------------------------------------------------------------------------------------
46 You just forgot to read the *install.txt* file from the PHP
47 distribution. Have a look at the last message in this `PHP bug report #12061
48 <http://bugs.php.net/bug.php?id=12061>`_ from the official PHP bug
49 database.
51 .. _faq1_5:
53 1.5 Using phpMyAdmin on IIS, I'm facing crashes and/or many error messages with the HTTP.
54 -----------------------------------------------------------------------------------------
56 This is a known problem with the PHP :term:`ISAPI` filter: it's not so stable.
57 Please use instead the cookie authentication mode.
59 .. _faq1_6:
61 1.6 I can't use phpMyAdmin on PWS: nothing is displayed!
62 --------------------------------------------------------
64 This seems to be a PWS bug. Filippo Simoncini found a workaround (at
65 this time there is no better fix): remove or comment the ``DOCTYPE``
66 declarations (2 lines) from the scripts :file:`libraries/Header.class.php`
67 and :file:`index.php`.
69 .. _faq1_7:
71 1.7 How can I GZip or Bzip a dump or a CSV export? It does not seem to work.
72 ----------------------------------------------------------------------------
74 These features are based on the ``gzencode()`` and ``bzcompress()``
75 PHP functions to be more independent of the platform (Unix/Windows,
76 Safe Mode or not, and so on). So, you must have Zlib/Bzip2 support
77 (``--with-zlib`` and ``--with-bz2``).
79 .. _faq1_8:
81 1.8 I cannot insert a text file in a table, and I get an error about safe mode being in effect.
82 -----------------------------------------------------------------------------------------------
84 Your uploaded file is saved by PHP in the "upload dir", as defined in
85 :file:`php.ini` by the variable ``upload_tmp_dir`` (usually the system
86 default is */tmp*). We recommend the following setup for Apache
87 servers running in safe mode, to enable uploads of files while being
88 reasonably secure:
90 * create a separate directory for uploads: :command:`mkdir /tmp/php`
91 * give ownership to the Apache server's user.group: :command:`chown
92   apache.apache /tmp/php`
93 * give proper permission: :command:`chmod 600 /tmp/php`
94 * put ``upload_tmp_dir = /tmp/php`` in :file:`php.ini`
95 * restart Apache
97 .. _faq1_9:
99 1.9 (withdrawn).
100 ----------------
102 .. _faq1_10:
104 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.
105 ----------------------------------------------------------------------------------------------------------------------------------------------------------
107 As suggested by "Rob M" in the phpWizard forum, add this line to your
108 *httpd.conf*:
110 .. code-block:: apache
112     SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
114 It seems to clear up many problems between Internet Explorer and SSL.
116 .. _faq1_11:
118 1.11 I get an 'open\_basedir restriction' while uploading a file from the query box.
119 ------------------------------------------------------------------------------------
121 Since version 2.2.4, phpMyAdmin supports servers with open\_basedir
122 restrictions. However you need to create temporary directory and configure it
123 as :config:option:`$cfg['TempDir']`. The uploaded files will be moved there,
124 and after execution of your :term:`SQL` commands, removed.
126 .. _faq1_12:
128 1.12 I have lost my MySQL root password, what can I do?
129 -------------------------------------------------------
131 The MySQL manual explains how to `reset the permissions
132 <http://dev.mysql.com/doc/mysql/en/resetting-permissions.html>`_.
134 .. _faq1_13:
136 1.13 (withdrawn).
137 -----------------
139 .. _faq1_14:
141 1.14 (withdrawn).
142 -----------------
144 .. _faq1_15:
146 1.15 I have problems with *mysql.user* column names.
147 ----------------------------------------------------
149 In previous MySQL versions, the ``User`` and ``Password``columns were
150 named ``user`` and ``password``. Please modify your column names to
151 align with current standards.
153 .. _faq1_16:
155 1.16 I cannot upload big dump files (memory, HTTP or timeout problems).
156 -----------------------------------------------------------------------
158 Starting with version 2.7.0, the import engine has been re–written and
159 these problems should not occur. If possible, upgrade your phpMyAdmin
160 to the latest version to take advantage of the new import features.
162 The first things to check (or ask your host provider to check) are the
163 values of ``upload_max_filesize``, ``memory_limit`` and
164 ``post_max_size`` in the :file:`php.ini` configuration file. All of these
165 three settings limit the maximum size of data that can be submitted
166 and handled by PHP. One user also said that ``post_max_size`` and
167 ``memory_limit`` need to be larger than ``upload_max_filesize``.
168 There exist several workarounds if your upload is too big or your
169 hosting provider is unwilling to change the settings:
171 * Look at the :config:option:`$cfg['UploadDir']` feature. This allows one to upload a file to the server
172   via scp, ftp, or your favorite file transfer method. PhpMyAdmin is
173   then able to import the files from the temporary directory. More
174   information is available in the :ref:`config`  of this document.
175 * Using a utility (such as `BigDump
176   <http://www.ozerov.de/bigdump.php>`_) to split the files before
177   uploading. We cannot support this or any third party applications, but
178   are aware of users having success with it.
179 * If you have shell (command line) access, use MySQL to import the files
180   directly. You can do this by issuing the "source" command from within
181   MySQL:
183   .. code-block:: mysql
185     source filename.sql;
187 .. _faq1_17:
189 1.17 Which MySQL versions does phpMyAdmin support?
190 --------------------------------------------------
192 Since phpMyAdmin 3.0.x, only MySQL 5.0.1 and newer are supported. For
193 older MySQL versions, you need to use the latest 2.x branch.
194 phpMyAdmin can connect to your MySQL server using PHP's classic `MySQL
195 extension <http://php.net/mysql>`_ as well as the `improved MySQL
196 extension (MySQLi) <http://php.net/mysqli>`_ that is available in PHP
197 5.0. The latter one should be used unless you have a good reason not
198 to do so. When compiling PHP, we strongly recommend that you manually
199 link the MySQL extension of your choice to a MySQL client library of
200 at least the same minor version since the one that is bundled with
201 some PHP distributions is rather old and might cause problems see
202 :ref:`faq1_17a`. `MariaDB <http://mariadb.org/>`_ is also supported
203 (versions 5.1 and 5.2 were tested). 
205 .. versionchanged:: 3.5
206     Since phpMyAdmin 3.5 `Drizzle <http://www.drizzle.org/>`_ is supported.
208 .. _faq1_17a:
210 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"
211 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
213 You tried to access MySQL with an old MySQL client library. The
214 version of your MySQL client library can be checked in your phpinfo()
215 output. In general, it should have at least the same minor version as
216 your server - as mentioned in :ref:`faq1_17`. This problem is
217 generally caused by using MySQL version 4.1 or newer. MySQL changed
218 the authentication hash and your PHP is trying to use the old method.
219 The proper solution is to use the `mysqli extension
220 <http://www.php.net/mysqli>`_ with the proper client library to match
221 your MySQL installation. Your chosen extension is specified in 
222 :config:option:`$cfg['Servers'][$i]['extension']`. More
223 information (and several workarounds) are located in the `MySQL
224 Documentation <http://dev.mysql.com/doc/mysql/en/old-client.html>`_.
226 .. _faq1_18:
228 1.18 (withdrawn).
229 -----------------
231 .. _faq1_19:
233 1.19 I can't run the "display relations" feature because the script seems not to know the font face I'm using!
234 --------------------------------------------------------------------------------------------------------------
236 The :term:`TCPDF` library we're using for this feature requires some special
237 files to use font faces. Please refers to the `TCPDF manual
238 <http://www.tcpdf.org/>`_ to build these files.
240 .. _faqmysql:
242 1.20 I receive the error "cannot load MySQL extension, please check PHP Configuration".
243 ---------------------------------------------------------------------------------------
245 To connect to a MySQL server, PHP needs a set of MySQL functions
246 called "MySQL extension". This extension may be part of the PHP
247 distribution (compiled-in), otherwise it needs to be loaded
248 dynamically. Its name is probably *mysql.so* or *php\_mysql.dll*.
249 phpMyAdmin tried to load the extension but failed. Usually, the
250 problem is solved by installing a software package called "PHP-MySQL"
251 or something similar.
253 There are currently two interfaces PHP provides as MySQL extensions - ``mysql``
254 and ``mysqli`` and you can change which of then is being used by
255 :config:option:`$cfg['Servers'][$i]['extension']`.
257 .. _faq1_21:
259 1.21 I am running the CGI version of PHP under Unix, and I cannot log in using cookie auth.
260 -------------------------------------------------------------------------------------------
262 In :file:`php.ini`, set ``mysql.max_links`` higher than 1.
264 .. _faq1_22:
266 1.22 I don't see the "Location of text file" field, so I cannot upload.
267 -----------------------------------------------------------------------
269 This is most likely because in :file:`php.ini`, your ``file_uploads``
270 parameter is not set to "on".
272 .. _faq1_23:
274 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!
275 ------------------------------------------------------------------------------------------------------------------------------
277 This happens because the MySQL directive ``lower_case_table_names``
278 defaults to 1 (``ON``) in the Win32 version of MySQL. You can change
279 this behavior by simply changing the directive to 0 (``OFF``): Just
280 edit your ``my.ini`` file that should be located in your Windows
281 directory and add the following line to the group [mysqld]:
283 .. code-block:: ini
285     set-variable = lower_case_table_names=0
287 Next, save the file and restart the MySQL service. You can always
288 check the value of this directive using the query
290 .. code-block:: mysql
292     SHOW VARIABLES LIKE 'lower_case_table_names';
294 .. _faq1_24:
296 1.24 (withdrawn).
297 -----------------
299 .. _faq1_25:
301 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.
302 ----------------------------------------------------------------------------------------------------------------------------------------
304 A tip from Jose Fandos: put a comment on the following two lines in
305 httpd.conf, like this:
307 .. code-block:: apache
309     
310     # mod_gzip_item_include file \.php$
311     # mod_gzip_item_include mime "application/x-httpd-php.*"
313 as this version of mod\_gzip on Apache (Windows) has problems handling
314 PHP scripts. Of course you have to restart Apache.
316 .. _faq1_26:
318 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.
319 ----------------------------------------------------------------------------------------------------------------------------------------
321 This is a permission problem. Right-click on the phpmyadmin folder and
322 choose properties. Under the tab Security, click on "Add" and select
323 the user "IUSR\_machine" from the list. Now set his permissions and it
324 should work.
326 .. _faq1_27:
328 1.27 I get empty page when I want to view huge page (eg. db\_structure.php with plenty of tables).
329 --------------------------------------------------------------------------------------------------
331 This was caused by a `PHP bug <http://bugs.php.net/21079>`_ that occur when
332 GZIP output buffering is enabled. If you turn off it (by
333 :config:option:`$cfg['OBGzip']` in :file:`config.inc.php`), it should work.
334 This bug will has been fixed in PHP 5.0.0.
336 .. _faq1_28:
338 1.28 My MySQL server sometimes refuses queries and returns the message 'Errorcode: 13'. What does this mean?
339 ------------------------------------------------------------------------------------------------------------
341 This can happen due to a MySQL bug when having database / table names
342 with upper case characters although ``lower_case_table_names`` is
343 set to 1. To fix this, turn off this directive, convert all database
344 and table names to lower case and turn it on again. Alternatively,
345 there's a bug-fix available starting with MySQL 3.23.56 /
346 4.0.11-gamma.
348 .. _faq1_29:
350 1.29 When I create a table or modify a column, I get an error and the columns are duplicated.
351 ---------------------------------------------------------------------------------------------
353 It is possible to configure Apache in such a way that PHP has problems
354 interpreting .php files.
356 The problems occur when two different (and conflicting) set of
357 directives are used:
359 .. code-block:: apache
361     
362     SetOutputFilter PHP
363     SetInputFilter PHP
367 .. code-block:: apache
369     AddType application/x-httpd-php .php
371 In the case we saw, one set of directives was in
372 ``/etc/httpd/conf/httpd.conf``, while the other set was in
373 ``/etc/httpd/conf/addon-modules/php.conf``. The recommended way is
374 with ``AddType``, so just comment out the first set of lines and
375 restart Apache:
377 .. code-block:: apache
379     
380     #SetOutputFilter PHP
381     #SetInputFilter PHP
383 .. _faq1_30:
385 1.30 I get the error "navigation.php: Missing hash".
386 ----------------------------------------------------
388 This problem is known to happen when the server is running Turck
389 MMCache but upgrading MMCache to version 2.3.21 solves the problem.
391 .. _faq1_31:
393 1.31 Does phpMyAdmin support PHP 5?
394 -----------------------------------
396 Yes.
398 Since release 4.1 phpMyAdmin supports only PHP 5.3 and newer. For PHP 5.2 you
399 can use 4.0.x releases.
401 .. _faq1_32:
403 1.32 Can I use HTTP authentication with IIS?
404 --------------------------------------------
406 Yes. This procedure was tested with phpMyAdmin 2.6.1, PHP 4.3.9 in
407 :term:`ISAPI` mode under :term:`IIS` 5.1.
409 #. In your :file:`php.ini` file, set ``cgi.rfc2616_headers = 0``
410 #. In ``Web Site Properties -> File/Directory Security -> Anonymous
411    Access`` dialog box, check the ``Anonymous access`` checkbox and
412    uncheck any other checkboxes (i.e. uncheck ``Basic authentication``,
413    ``Integrated Windows authentication``, and ``Digest`` if it's
414    enabled.) Click ``OK``.
415 #. In ``Custom Errors``, select the range of ``401;1`` through ``401;5``
416    and click the ``Set to Default`` button.
418 .. seealso:: :rfc:`2616`
420 .. _faq1_33:
422 1.33 (withdrawn).
423 -----------------
425 .. _faq1_34:
427 1.34 Can I access directly to database or table pages?
428 ------------------------------------------------------
430 Yes. Out of the box, you can use :term:`URL` like
431 http://server/phpMyAdmin/index.php?server=X&db=database&table=table&target=script.
432 For ``server`` you use the server number
433 which refers to the order of the server paragraph in
434 :file:`config.inc.php`. Table and script parts are optional. If you want
435 http://server/phpMyAdmin/database[/table][/script] :term:`URL`, you need to do some configuration. Following
436 lines apply only for `Apache <http://httpd.apache.org>`_ web server.
437 First make sure, that you have enabled some features within global
438 configuration. You need ``Options FollowSymLinks`` and ``AllowOverride
439 FileInfo`` enabled for directory where phpMyAdmin is installed and you
440 need mod\_rewrite to be enabled. Then you just need to create
441 following :term:`.htaccess` file in root folder of phpMyAdmin installation (don't
442 forget to change directory name inside of it):
444 .. code-block:: apache
446     
447     RewriteEngine On
448     RewriteBase /path_to_phpMyAdmin
449     RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/([a-z_]+\.php)$ index.php?db=$1&table=$2&target=$3 [R]
450     RewriteRule ^([a-zA-Z0-9_]+)/([a-z_]+\.php)$ index.php?db=$1&target=$2 [R]
451     RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)$ index.php?db=$1&table=$2 [R]
452     RewriteRule ^([a-zA-Z0-9_]+)$ index.php?db=$1 [R]
454 .. _faq1_35:
456 1.35 Can I use HTTP authentication with Apache CGI?
457 ---------------------------------------------------
459 Yes. However you need to pass authentication variable to :term:`CGI` using
460 following rewrite rule:
462 .. code-block:: apache
464     
465     RewriteEngine On
466     RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization},L]
468 .. _faq1_36:
470 1.36 I get an error "500 Internal Server Error".
471 ------------------------------------------------
473 There can be many explanations to this and a look at your server's
474 error log file might give a clue.
476 .. _faq1_37:
478 1.37 I run phpMyAdmin on cluster of different machines and password encryption in cookie auth doesn't work.
479 -----------------------------------------------------------------------------------------------------------
481 If your cluster consist of different architectures, PHP code used for
482 encryption/decryption won't work correct. This is caused by use of
483 pack/unpack functions in code. Only solution is to use mcrypt
484 extension which works fine in this case.
486 .. _faq1_38:
488 1.38 Can I use phpMyAdmin on a server on which Suhosin is enabled?
489 ------------------------------------------------------------------
491 Yes but the default configuration values of Suhosin are known to cause
492 problems with some operations, for example editing a table with many
493 columns and no primary key or with textual primary key.
495 Suhosin configuration might lead to malfunction in some cases and it
496 can not be fully avoided as phpMyAdmin is kind of application which
497 needs to transfer big amounts of columns in single HTTP request, what
498 is something what Suhosin tries to prevent. Generally all
499 ``suhosin.request.*``, ``suhosin.post.*`` and ``suhosin.get.*``
500 directives can have negative effect on phpMyAdmin usability. You can
501 always find in your error logs which limit did cause dropping of
502 variable, so you can diagnose the problem and adjust matching
503 configuration variable.
505 The default values for most Suhosin configuration options will work in
506 most scenarios, however you might want to adjust at least following
507 parameters:
509 * `suhosin.request.max\_vars <http://www.hardened-
510   php.net/suhosin/configuration.html#suhosin.request.max_vars>`_ should
511   be increased (eg. 2048)
512 * `suhosin.post.max\_vars <http://www.hardened-
513   php.net/suhosin/configuration.html#suhosin.post.max_vars>`_ should be
514   increased (eg. 2048)
515 * `suhosin.request.max\_array\_index\_length <http://www.hardened-php.ne
516   t/suhosin/configuration.html#suhosin.request.max_array_index_length>`_
517   should be increased (eg. 256)
518 * `suhosin.post.max\_array\_index\_length <http://www.hardened-php.net/s
519   uhosin/configuration.html#suhosin.post.max_array_index_length>`_
520   should be increased (eg. 256)
521 * `suhosin.request.max\_totalname\_length <http://www.hardened-php.net/s
522   uhosin/configuration.html#suhosin.request.max_totalname_length>`_
523   should be increased (eg. 8192)
524 * `suhosin.post.max\_totalname\_length <http://www.hardened-php.net/suho
525   sin/configuration.html#suhosin.post.max_totalname_length>`_ should be
526   increased (eg. 8192)
527 * `suhosin.get.max\_value\_length <http://www.hardened-
528   php.net/suhosin/configuration.html#suhosin.get.max_value_length>`_
529   should be increased (eg. 1024)
530 * `suhosin.sql.bailout\_on\_error <http://www.hardened-
531   php.net/suhosin/configuration.html#suhosin.sql.bailout_on_error>`_
532   needs to be disabled (the default)
533 * `suhosin.log.\* <http://www.hardened-
534   php.net/suhosin/configuration.html#logging_configuration>`_ should not
535   include :term:`SQL`, otherwise you get big
536   slowdown
538 You can also disable the warning using the :config:option:`$cfg['SuhosinDisableWarning']`.
540 .. _faq1_39:
542 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?
543 ------------------------------------------------------------------------------------------------------------------------------------
545 Be sure that you have enabled ``SSLOptions`` and ``StdEnvVars`` in
546 your Apache configuration. 
548 .. seealso:: <http://httpd.apache.org/docs/2.0/mod/mod_ssl.html#ssloptions>
550 .. _faq1_40:
552 1.40 When accessing phpMyAdmin via an Apache reverse proxy, cookie login does not work.
553 ---------------------------------------------------------------------------------------
555 To be able to use cookie auth Apache must know that it has to rewrite
556 the set-cookie headers. Example from the Apache 2.2 documentation:
558 .. code-block:: apache
560     
561     ProxyPass /mirror/foo/ http://backend.example.com/
562     ProxyPassReverse /mirror/foo/ http://backend.example.com/
563     ProxyPassReverseCookieDomain backend.example.com public.example.com
564     ProxyPassReverseCookiePath / /mirror/foo/
566 Note: if the backend url looks like http://host/~user/phpmyadmin, the
567 tilde (~) must be url encoded as %7E in the ProxyPassReverse\* lines.
568 This is not specific to phpmyadmin, it's just the behavior of Apache.
570 .. code-block:: apache
572     
573     ProxyPass /mirror/foo/ http://backend.example.com/~user/phpmyadmin
574     ProxyPassReverse /mirror/foo/ http://backend.example.com/%7Euser/phpmyadmin
575     ProxyPassReverseCookiePath /%7Euser/phpmyadmin /mirror/foo
577 .. seealso:: <http://httpd.apache.org/docs/2.2/mod/mod_proxy.html>
579 .. _faq1_41:
581 1.41 When I view a database and ask to see its privileges, I get an error about an unknown column.
582 --------------------------------------------------------------------------------------------------
584 The MySQL server's privilege tables are not up to date, you need to
585 run the :command:`mysql_upgrade` command on the server.
587 .. _faq1_42:
589 1.42 How can I prevent robots from accessing phpMyAdmin?
590 --------------------------------------------------------
592 You can add various rules to :term:`.htaccess` to filter access based on user agent
593 field. This is quite easy to circumvent, but could prevent at least
594 some robots accessing your installation.
596 .. code-block:: apache
598     
599     RewriteEngine on
600     
601     # Allow only GET and POST verbs
602     RewriteCond %{REQUEST_METHOD} !^(GET|POST)$ [NC,OR]
603     
604     # Ban Typical Vulnerability Scanners and others
605     # Kick out Script Kiddies
606     RewriteCond %{HTTP_USER_AGENT} ^(java|curl|wget).* [NC,OR]
607     RewriteCond %{HTTP_USER_AGENT} ^.*(libwww-perl|curl|wget|python|nikto|wkito|pikto|scan|acunetix).* [NC,OR]
608     RewriteCond %{HTTP_USER_AGENT} ^.*(winhttp|HTTrack|clshttp|archiver|loader|email|harvest|extract|grab|miner).* [NC,OR]
609     
610     # Ban Search Engines, Crawlers to your administrative panel
611     # No reasons to access from bots
612     # Ultimately Better than the useless robots.txt
613     # Did google respect robots.txt?
614     # Try google: intitle:phpMyAdmin intext:"Welcome to phpMyAdmin *.*.*" intext:"Log in" -wiki -forum -forums -questions intext:"Cookies must be enabled"
615     RewriteCond %{HTTP_USER_AGENT} ^.*(AdsBot-Google|ia_archiver|Scooter|Ask.Jeeves|Baiduspider|Exabot|FAST.Enterprise.Crawler|FAST-WebCrawler|www\.neomo\.de|Gigabot|Mediapartners-Google|Google.Desktop|Feedfetcher-Google|Googlebot|heise-IT-Markt-Crawler|heritrix|ibm.com\cs/crawler|ICCrawler|ichiro|MJ12bot|MetagerBot|msnbot-NewsBlogs|msnbot|msnbot-media|NG-Search|lucene.apache.org|NutchCVS|OmniExplorer_Bot|online.link.validator|psbot0|Seekbot|Sensis.Web.Crawler|SEO.search.Crawler|Seoma.\[SEO.Crawler\]|SEOsearch|Snappy|www.urltrends.com|www.tkl.iis.u-tokyo.ac.jp/~crawler|SynooBot|crawleradmin.t-info@telekom.de|TurnitinBot|voyager|W3.SiteSearch.Crawler|W3C-checklink|W3C_Validator|www.WISEnutbot.com|yacybot|Yahoo-MMCrawler|Yahoo\!.DE.Slurp|Yahoo\!.Slurp|YahooSeeker).* [NC]
616     RewriteRule .* - [F]
618 .. _faq1_43:
620 1.43 Why can't I display the structure of my table containing hundreds of columns? 
621 ----------------------------------------------------------------------------------
623 Because your PHP's ``memory_limit`` is too low; adjust it in :file:`php.ini`.
625 .. _faqconfig:
627 Configuration
628 +++++++++++++
630 .. _faq2_1:
632 2.1 The error message "Warning: Cannot add header information - headers already sent by ..." is displayed, what's the problem?
633 ------------------------------------------------------------------------------------------------------------------------------
635 Edit your :file:`config.inc.php` file and ensure there is nothing (I.E. no
636 blank lines, no spaces, no characters...) neither before the ``<?php`` tag at
637 the beginning, neither after the ``?>`` tag at the end. We also got a report
638 from a user under :term:`IIS`, that used a zipped distribution kit: the file
639 :file:`libraries/Config.class.php` contained an end-of-line character (hex 0A)
640 at the end; removing this character cleared his errors.
642 .. _faq2_2:
644 2.2 phpMyAdmin can't connect to MySQL. What's wrong?
645 ----------------------------------------------------
647 Either there is an error with your PHP setup or your username/password
648 is wrong. Try to make a small script which uses mysql\_connect and see
649 if it works. If it doesn't, it may be you haven't even compiled MySQL
650 support into PHP.
652 .. _faq2_3:
654 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?
655 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
657 For RedHat users, Harald Legner suggests this on the mailing list:
659 On my RedHat-Box the socket of MySQL is */var/lib/mysql/mysql.sock*.
660 In your :file:`php.ini` you will find a line
662 .. code-block:: ini
664     mysql.default_socket = /tmp/mysql.sock
666 change it to
668 .. code-block:: ini
670     mysql.default_socket = /var/lib/mysql/mysql.sock
672 Then restart apache and it will work.
674 Here is a fix suggested by Brad Ummer:
676 * First, you need to determine what socket is being used by MySQL. To do
677   this, telnet to your server and go to the MySQL bin directory. In this
678   directory there should be a file named *mysqladmin*. Type
679   ``./mysqladmin variables``, and this should give you a bunch of info
680   about your MySQL server, including the socket (*/tmp/mysql.sock*, for
681   example).
682 * Then, you need to tell PHP to use this socket. To do this in
683   phpMyAdmin, you need to complete the socket information in the
684   :file:`config.inc.php`. For example:
685   :config:option:`$cfg['Servers'][$i]['socket']`  Please also make sure that
686   the permissions of this file allow to be readable by your webserver (i.e.
687   '0755').
689 Have also a look at the `corresponding section of the MySQL
690 documentation <http://dev.mysql.com/doc/en/can-not-connect-to-
691 server.html>`_.
693 .. _faq2_4:
695 2.4 Nothing is displayed by my browser when I try to run phpMyAdmin, what can I do?
696 -----------------------------------------------------------------------------------
698 Try to set the :config:option:`$cfg['OBGzip']` directive to ``false`` in the phpMyAdmin configuration
699 file. It helps sometime. Also have a look at your PHP version number:
700 if it contains "b" or "alpha" it means you're running a testing
701 version of PHP. That's not a so good idea, please upgrade to a plain
702 revision.
704 .. _faq2_5:
706 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?
707 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
709 Check the value you set for the :config:option:`$cfg['PmaAbsoluteUri']` directive in the phpMyAdmin
710 configuration file.
712 .. _faq2_6:
714 2.6 I get an "Access denied for user: 'root@localhost' (Using password: YES)"-error when trying to access a MySQL-Server on a host which is port-forwarded for my localhost.
715 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
717 When you are using a port on your localhost, which you redirect via
718 port-forwarding to another host, MySQL is not resolving the localhost
719 as expected. Erik Wasser explains: The solution is: if your host is
720 "localhost" MySQL (the command line tool :command:`mysql` as well) always
721 tries to use the socket connection for speeding up things. And that
722 doesn't work in this configuration with port forwarding. If you enter
723 "127.0.0.1" as hostname, everything is right and MySQL uses the
724 :term:`TCP` connection.
726 .. _faqthemes:
728 2.7 Using and creating themes
729 -----------------------------
731 Themes are configured with :config:option:`$cfg['ThemePath']`,
732 :config:option:`$cfg['ThemeManager']` and :config:option:`$cfg['ThemeDefault']`.  
733 Under :config:option:`$cfg['ThemePath']`, you should not delete the
734 directory ``pmahomme`` or its underlying structure, because this is the
735 system theme used by phpMyAdmin. ``pmahomme`` contains all images and
736 styles, for backwards compatibility and for all themes that would not
737 include images or css-files.  If :config:option:`$cfg['ThemeManager']`
738 is enabled, you can select your favorite theme on the main page. Your selected
739 theme will be stored in a cookie.
741 To create a theme:
743 * make a new subdirectory (for example "your\_theme\_name") under :config:option:`$cfg['ThemePath']` (by
744   default ``themes``)
745 * copy the files and directories from ``pmahomme`` to "your\_theme\_name"
746 * edit the css-files in "your\_theme\_name/css"
747 * put your new images in "your\_theme\_name/img"
748 * edit :file:`layout.inc.php` in "your\_theme\_name"
749 * edit :file:`info.inc.php` in "your\_theme\_name" to contain your chosen
750   theme name, that will be visible in user interface
751 * make a new screenshot of your theme and save it under
752   "your\_theme\_name/screen.png"
754 In theme directory there is file :file:`info.inc.php` which contains theme
755 verbose name, theme generation and theme version. These versions and
756 generations are enumerated from 1 and do not have any direct
757 dependence on phpMyAdmin version. Themes within same generation should
758 be backwards compatible - theme with version 2 should work in
759 phpMyAdmin requiring version 1. Themes with different generation are
760 incompatible.
762 If you do not want to use your own symbols and buttons, remove the
763 directory "img" in "your\_theme\_name". phpMyAdmin will use the
764 default icons and buttons (from the system-theme ``pmahomme``).
766 .. _faqmissingparameters:
768 2.8 I get "Missing parameters" errors, what can I do?
769 -----------------------------------------------------
771 Here are a few points to check:
773 * In :file:`config.inc.php`, try to leave the :config:option:`$cfg['PmaAbsoluteUri']` directive empty. See also
774   :ref:`faq4_7`.
775 * Maybe you have a broken PHP installation or you need to upgrade your
776   Zend Optimizer. See <http://bugs.php.net/bug.php?id=31134>.
777 * If you are using Hardened PHP with the ini directive
778   ``varfilter.max_request_variables`` set to the default (200) or
779   another low value, you could get this error if your table has a high
780   number of columns. Adjust this setting accordingly. (Thanks to Klaus
781   Dorninger for the hint).
782 * In the :file:`php.ini` directive ``arg_separator.input``, a value of ";"
783   will cause this error. Replace it with "&;".
784 * If you are using `Hardened-PHP <http://www.hardened-php.net/>`_, you
785   might want to increase `request limits <http://www.hardened-
786   php.net/hphp/troubleshooting.html>`_.
787 * The directory specified in the :file:`php.ini` directive
788   ``session.save_path`` does not exist or is read-only.
790 .. _faq2_9:
792 2.9 Seeing an upload progress bar
793 ---------------------------------
795 To be able to see a progress bar during your uploads, your server must
796 have the `APC <http://pecl.php.net/package/APC>`_ extension, the
797 `uploadprogress <http://pecl.php.net/package/uploadprogress>`_ one, or
798 you must be running PHP 5.4.0 or higher. Moreover, the JSON extension
799 has to be enabled in your PHP.
801 If using APC, you must set ``apc.rfc1867`` to ``on`` in your :file:`php.ini`.
803 If using PHP 5.4.0 or higher, you must set
804 ``session.upload_progress.enabled`` to ``1`` in your :file:`php.ini`. However,
805 starting from phpMyAdmin version 4.0.4, session-based upload progress has
806 been temporarily deactivated due to its problematic behavior. 
808 .. seealso:: :rfc:`1867`
810 .. _faqlimitations:
812 Known limitations
813 +++++++++++++++++
815 .. _login_bug:
817 3.1 When using HTTP authentication, a user who logged out can not log in again in with the same nick.
818 -----------------------------------------------------------------------------------------------------
820 This is related to the authentication mechanism (protocol) used by
821 phpMyAdmin. To bypass this problem: just close all the opened browser
822 windows and then go back to phpMyAdmin. You should be able to log in
823 again.
825 .. _faq3_2:
827 3.2 When dumping a large table in compressed mode, I get a memory limit error or a time limit error.
828 ----------------------------------------------------------------------------------------------------
830 Compressed dumps are built in memory and because of this are limited
831 to php's memory limit. For GZip/BZip2 exports this can be overcome
832 since 2.5.4 using :config:option:`$cfg['CompressOnFly']` (enabled by default).
833 Zip exports can not be handled this way, so if you need Zip files for larger
834 dump, you have to use another way.
836 .. _faq3_3:
838 3.3 With InnoDB tables, I lose foreign key relationships when I rename a table or a column.
839 -------------------------------------------------------------------------------------------
841 This is an InnoDB bug, see <http://bugs.mysql.com/bug.php?id=21704>.
843 .. _faq3_4:
845 3.4 I am unable to import dumps I created with the mysqldump tool bundled with the MySQL server distribution.
846 -------------------------------------------------------------------------------------------------------------
848 The problem is that older versions of ``mysqldump`` created invalid
849 comments like this:
851 .. code-block:: mysql
853     
854     -- MySQL dump 8.22
855     --
856     -- Host: localhost Database: database
857     ---------------------------------------------------------
858     -- Server version 3.23.54
860 The invalid part of the code is the horizontal line made of dashes
861 that appears once in every dump created with mysqldump. If you want to
862 run your dump you have to turn it into valid MySQL. This means, you
863 have to add a whitespace after the first two dashes of the line or add
864 a # before it:  ``-- -------------------------------------------------------`` or
865 ``#---------------------------------------------------------``
867 .. _faq3_5:
869 3.5 When using nested folders, multiple hierarchies are displayed in a wrong manner.
870 ------------------------------------------------------------------------------------
872 Please note that you should not use the separating string multiple
873 times without any characters between them, or at the beginning/end of
874 your table name. If you have to, think about using another
875 TableSeparator or disabling that feature.
877 .. seealso:: :config:option:`$cfg['NavigationTreeTableSeparator']`
879 .. _faq3_6:
881 3.6 What is currently not supported in phpMyAdmin about InnoDB?
882 ---------------------------------------------------------------
884 In Relation view, having more than one index column in the foreign key. In Query-by-
885 example (Query), automatic generation of the query LEFT JOIN from the
886 foreign table.
888 .. _faq3_7:
890 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?
891 -----------------------------------------------------------------------------------------------------------------------------------------------------------
893 Your table neither have a primary key nor an unique one, so we must
894 use a long expression to identify this row. This causes problems to
895 parse\_url function. The workaround is to create a primary or unique
896 key.
898 .. _faq3_8:
900 3.8 I cannot use (clickable) HTML-forms in columns where I put a MIME-Transformation onto!
901 ------------------------------------------------------------------------------------------
903 Due to a surrounding form-container (for multi-row delete checkboxes),
904 no nested forms can be put inside the table where phpMyAdmin displays
905 the results. You can, however, use any form inside of a table if keep
906 the parent form-container with the target to tbl\_row\_delete.php and
907 just put your own input-elements inside. If you use a custom submit
908 input field, the form will submit itself to the displaying page again,
909 where you can validate the $HTTP\_POST\_VARS in a transformation. For
910 a tutorial on how to effectively use transformations, see our `Link
911 section <http://www.phpmyadmin.net/home_page/docs.php>`_ on the
912 official phpMyAdmin-homepage.
914 .. _faq3_9:
916 3.9 I get error messages when using "--sql\_mode=ANSI" for the MySQL server.
917 ----------------------------------------------------------------------------
919 When MySQL is running in ANSI-compatibility mode, there are some major
920 differences in how :term:`SQL` is structured (see
921 <http://dev.mysql.com/doc/mysql/en/ansi-mode.html>). Most important of all, the
922 quote-character (") is interpreted as an identifier quote character and not as
923 a string quote character, which makes many internal phpMyAdmin operations into
924 invalid :term:`SQL` statements. There is no
925 workaround to this behaviour.  News to this item will be posted in `Bug report
926 #1013 <https://sourceforge.net/p/phpmyadmin/bugs/1013/>`_.
928 .. _faq3_10:
930 3.10 Homonyms and no primary key: When the results of a SELECT display more that one column with the same value (for example ``SELECT lastname from employees where firstname like 'A%'`` and two "Smith" values are displayed), if I click Edit I cannot be sure that I am editing the intended row.
931 -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
933 Please make sure that your table has a primary key, so that phpMyAdmin
934 can use it for the Edit and Delete links.
936 .. _faq3_11:
938 3.11 The number of rows for InnoDB tables is not correct.
939 ---------------------------------------------------------
941 phpMyAdmin uses a quick method to get the row count, and this method only
942 returns an approximate count in the case of InnoDB tables. See
943 :config:option:`$cfg['MaxExactCount']` for a way to modify those results, but
944 this could have a serious impact on performance.
946 .. _faq3_12:
948 3.12 (withdrawn).
949 -----------------
951 .. _faq3_13:
953 3.13 I get an error when entering ``USE`` followed by a db name containing an hyphen.
954 -------------------------------------------------------------------------------------
956 The tests I have made with MySQL 5.1.49 shows that the API does not
957 accept this syntax for the USE command.
959 .. _faq3_14:
961 3.14 I am not able to browse a table when I don't have the right to SELECT one of the columns.
962 ----------------------------------------------------------------------------------------------
964 This has been a known limitation of phpMyAdmin since the beginning and
965 it's not likely to be solved in the future.
967 .. _faq3_15:
969 3.15 (withdrawn).
970 -----------------
972 .. _faq3_16:
974 3.16 (withdrawn).
975 -----------------
977 .. _faq3_17:
979 3.17 (withdrawn).
980 -----------------
982 .. _faq3_18:
984 3.18 When I import a CSV file that contains multiple tables, they are lumped together into a single table.
985 ----------------------------------------------------------------------------------------------------------
987 There is no reliable way to differentiate tables in :term:`CSV` format. For the
988 time being, you will have to break apart :term:`CSV` files containing multiple
989 tables.
991 .. _faq3_19:
993 3.19 When I import a file and have phpMyAdmin determine the appropriate data structure it only uses int, decimal, and varchar types.
994 ------------------------------------------------------------------------------------------------------------------------------------
996 Currently, the import type-detection system can only assign these
997 MySQL types to columns. In future, more will likely be added but for
998 the time being you will have to edit the structure to your liking
999 post-import.  Also, you should note the fact that phpMyAdmin will use
1000 the size of the largest item in any given column as the column size
1001 for the appropriate type. If you know you will be adding larger items
1002 to that column then you should manually adjust the column sizes
1003 accordingly. This is done for the sake of efficiency.
1005 .. _faqmultiuser:
1007 ISPs, multi-user installations
1008 ++++++++++++++++++++++++++++++
1010 .. _faq4_1:
1012 4.1 I'm an ISP. Can I setup one central copy of phpMyAdmin or do I need to install it for each customer?
1013 --------------------------------------------------------------------------------------------------------
1015 Since version 2.0.3, you can setup a central copy of phpMyAdmin for all your
1016 users. The development of this feature was kindly sponsored by NetCologne GmbH.
1017 This requires a properly setup MySQL user management and phpMyAdmin
1018 :term:`HTTP` or cookie authentication. 
1020 .. seealso:: :ref:`authentication_modes`
1022 .. _faq4_2:
1024 4.2 What's the preferred way of making phpMyAdmin secure against evil access?
1025 -----------------------------------------------------------------------------
1027 This depends on your system. If you're running a server which cannot be
1028 accessed by other people, it's sufficient to use the directory protection
1029 bundled with your webserver (with Apache you can use :term:`.htaccess` files,
1030 for example). If other people have telnet access to your server, you should use
1031 phpMyAdmin's :term:`HTTP` or cookie authentication features.  
1032     
1033 Suggestions:
1035 * Your :file:`config.inc.php` file should be ``chmod 660``.
1036 * All your phpMyAdmin files should be chown -R phpmy.apache, where phpmy
1037   is a user whose password is only known to you, and apache is the group
1038   under which Apache runs.
1039 * Follow security recommendations for PHP and your webserver.
1041 .. _faq4_3:
1043 4.3 I get errors about not being able to include a file in */lang* or in */libraries*.
1044 --------------------------------------------------------------------------------------
1046 Check :file:`php.ini`, or ask your sysadmin to check it. The
1047 ``include_path`` must contain "." somewhere in it, and
1048 ``open_basedir``, if used, must contain "." and "./lang" to allow
1049 normal operation of phpMyAdmin.
1051 .. _faq4_4:
1053 4.4 phpMyAdmin always gives "Access denied" when using HTTP authentication.
1054 ---------------------------------------------------------------------------
1056 This could happen for several reasons:
1058 * :config:option:`$cfg['Servers'][$i]['controluser']` and/or :config:option:`$cfg['Servers'][$i]['controlpass']`  are wrong.
1059 * The username/password you specify in the login dialog are invalid.
1060 * You have already setup a security mechanism for the phpMyAdmin-
1061   directory, eg. a :term:`.htaccess` file. This would interfere with phpMyAdmin's
1062   authentication, so remove it.
1064 .. _faq4_5:
1066 4.5 Is it possible to let users create their own databases?
1067 -----------------------------------------------------------
1069 Starting with 2.2.5, in the user management page, you can enter a
1070 wildcard database name for a user (for example "joe%"), and put the
1071 privileges you want. For example, adding ``SELECT, INSERT, UPDATE,
1072 DELETE, CREATE, DROP, INDEX, ALTER`` would let a user create/manage
1073 his/her database(s).
1075 .. _faq4_6:
1077 4.6 How can I use the Host-based authentication additions?
1078 ----------------------------------------------------------
1080 If you have existing rules from an old :term:`.htaccess` file, you can take them and
1081 add a username between the ``'deny'``/``'allow'`` and ``'from'``
1082 strings. Using the username wildcard of ``'%'`` would be a major
1083 benefit here if your installation is suited to using it. Then you can
1084 just add those updated lines into the
1085 :config:option:`$cfg['Servers'][$i]['AllowDeny']['rules']` array.
1087 If you want a pre-made sample, you can try this fragment. It stops the
1088 'root' user from logging in from any networks other than the private
1089 network :term:`IP` blocks.
1091 .. code-block:: php
1093     
1094     //block root from logging in except from the private networks
1095     $cfg['Servers'][$i]['AllowDeny']['order'] = 'deny,allow';
1096     $cfg['Servers'][$i]['AllowDeny']['rules'] = array(
1097         'deny root from all',
1098         'allow root from localhost',
1099         'allow root from 10.0.0.0/8',
1100         'allow root from 192.168.0.0/16',
1101         'allow root from 172.16.0.0/12',
1102     );
1104 .. _faq4_7:
1106 4.7 Authentication window is displayed more than once, why?
1107 -----------------------------------------------------------
1109 This happens if you are using a :term:`URL` to start phpMyAdmin which is
1110 different than the one set in your :config:option:`$cfg['PmaAbsoluteUri']`. For
1111 example, a missing "www", or entering with an :term:`IP` address while a domain
1112 name is defined in the config file.
1114 .. _faq4_8:
1116 4.8 Which parameters can I use in the URL that starts phpMyAdmin?
1117 -----------------------------------------------------------------
1119 When starting phpMyAdmin, you can use the ``db``, ``pma_username``,
1120 ``pma_password`` and ``server`` parameters. This last one can contain
1121 either the numeric host index (from ``$i`` of the configuration file)
1122 or one of the host names present in the configuration file. Using
1123 ``pma_username`` and ``pma_password`` has been tested along with the
1124 usage of 'cookie' ``auth_type``.
1126 .. _faqbrowsers:
1128 Browsers or client OS
1129 +++++++++++++++++++++
1131 .. _faq5_1:
1133 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.
1134 ------------------------------------------------------------------------------------------------------------------------------
1136 We could reproduce this problem only under Win98/98SE. Testing under
1137 WinNT4 or Win2K, we could easily create more than 60 columns.  A
1138 workaround is to create a smaller number of columns, then come back to
1139 your table properties and add the other columns.
1141 .. _faq5_2:
1143 5.2 With Xitami 2.5b4, phpMyAdmin won't process form fields.
1144 ------------------------------------------------------------
1146 This is not a phpMyAdmin problem but a Xitami known bug: you'll face
1147 it with each script/website that use forms. Upgrade or downgrade your
1148 Xitami server.
1150 .. _faq5_3:
1152 5.3 I have problems dumping tables with Konqueror (phpMyAdmin 2.2.2).
1153 ---------------------------------------------------------------------
1155 With Konqueror 2.1.1: plain dumps, zip and GZip dumps work ok, except
1156 that the proposed file name for the dump is always 'tbl\_dump.php'.
1157 Bzip2 dumps don't seem to work. With Konqueror 2.2.1: plain dumps
1158 work; zip dumps are placed into the user's temporary directory, so
1159 they must be moved before closing Konqueror, or else they disappear.
1160 GZip dumps give an error message. Testing needs to be done for
1161 Konqueror 2.2.2.
1163 .. _faq5_4:
1165 5.4 I can't use the cookie authentication mode because Internet Explorer never stores the cookies.
1166 --------------------------------------------------------------------------------------------------
1168 MS Internet Explorer seems to be really buggy about cookies, at least
1169 till version 6.
1171 .. _faq5_5:
1173 5.5 In Internet Explorer 5.0, I get JavaScript errors when browsing my rows.
1174 ----------------------------------------------------------------------------
1176 Upgrade to at least Internet Explorer 5.5 SP2.
1178 .. _faq5_6:
1180 5.6 In Internet Explorer 5.0, 5.5 or 6.0, I get an error (like "Page not found") when trying to modify a row in a table with many columns, or with a text column.
1181 -----------------------------------------------------------------------------------------------------------------------------------------------------------------
1183 Your table neither have a primary key nor an unique one, so we must use a long
1184 :term:`URL` to identify this row. There is a limit on the length of the
1185 :term:`URL` in those browsers, and this not happen in Netscape, for example.
1186 The workaround is to create a primary or unique key, or use another browser.
1188 .. _faq5_7:
1190 5.7 I refresh (reload) my browser, and come back to the welcome page.
1191 ---------------------------------------------------------------------
1193 Some browsers support right-clicking into the frame you want to
1194 refresh, just do this in the right frame.
1196 .. _faq5_8:
1198 5.8 With Mozilla 0.9.7 I have problems sending a query modified in the query box.
1199 ---------------------------------------------------------------------------------
1201 Looks like a Mozilla bug: 0.9.6 was OK. We will keep an eye on future
1202 Mozilla versions.
1204 .. _faq5_9:
1206 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.
1207 -------------------------------------------------------------------------------------------------------------------------------
1209 This is a Mozilla bug (see bug #26882 at `BugZilla
1210 <http://bugzilla.mozilla.org/>`_).
1212 .. _faq5_10:
1214 5.10 With Netscape 4.75 I get empty rows between each row of data in a CSV exported file.
1215 -----------------------------------------------------------------------------------------
1217 This is a known Netscape 4.75 bug: it adds some line feeds when
1218 exporting data in octet-stream mode. Since we can't detect the
1219 specific Netscape version, we cannot workaround this bug.
1221 .. _faq5_11:
1223 5.11 Extended-ASCII characters like German umlauts are displayed wrong.
1224 -----------------------------------------------------------------------
1226 Please ensure that you have set your browser's character set to the
1227 one of the language file you have selected on phpMyAdmin's start page.
1228 Alternatively, you can try the auto detection mode that is supported
1229 by the recent versions of the most browsers.
1231 .. _faq5_12:
1233 5.12 Mac OS X Safari browser changes special characters to "?".
1234 ---------------------------------------------------------------
1236 This issue has been reported by a :term:`Mac OS X` user, who adds that Chimera,
1237 Netscape and Mozilla do not have this problem.
1239 .. _faq5_13:
1241 5.13 With Internet Explorer 5.5 or 6, and HTTP authentication type, I cannot manage two servers: I log in to the first one, then the other one, but if I switch back to the first, I have to log in on each operation.
1242 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1244 This is a bug in Internet Explorer, other browsers do not behave this
1245 way.
1247 .. _faq5_14:
1249 5.14 Using Opera6, I can manage to get to the authentication, but nothing happens after that, only a blank screen.
1250 ------------------------------------------------------------------------------------------------------------------
1252 Please upgrade to Opera7 at least.
1254 .. _faq5_15:
1256 5.15 I have display problems with Safari.
1257 -----------------------------------------
1259 Please upgrade to at least version 1.2.3.
1261 .. _faq5_16:
1263 5.16 With Internet Explorer, I get "Access is denied" Javascript errors. Or I cannot make phpMyAdmin work under Windows.
1264 ------------------------------------------------------------------------------------------------------------------------
1266 Please check the following points:
1268 * Maybe you have defined your :config:option:`$cfg['PmaAbsoluteUri']` setting in
1269   :file:`config.inc.php` to an :term:`IP` address and you are starting phpMyAdmin
1270   with a :term:`URL` containing a domain name, or the reverse situation.
1271 * Security settings in IE and/or Microsoft Security Center are too high,
1272   thus blocking scripts execution.
1273 * The Windows Firewall is blocking Apache and MySQL. You must allow
1274   :term:`HTTP` ports (80 or 443) and MySQL
1275   port (usually 3306) in the "in" and "out" directions.
1277 .. _faq5_17:
1279 5.17 With Firefox, I cannot delete rows of data or drop a database.
1280 -------------------------------------------------------------------
1282 Many users have confirmed that the Tabbrowser Extensions plugin they
1283 installed in their Firefox is causing the problem.
1285 .. _faq5_18:
1287 5.18 With Konqueror 4.2.x an invalid ``LIMIT`` clause is generated when I browse a table.
1288 -----------------------------------------------------------------------------------------
1290 This happens only when both of these conditions are met: using the
1291 ``http`` authentication mode and ``register_globals`` being set to
1292 ``On`` on the server. It seems to be a browser-specific problem;
1293 meanwhile use the ``cookie`` authentication mode.
1295 .. _faq5_19:
1297 5.19 I get JavaScript errors in my browser.
1298 -------------------------------------------
1300 Issues have been reported with some combinations of browser
1301 extensions. To troubleshoot, disable all extensions then clear your
1302 browser cache to see if the problem goes away.
1304 .. _faqusing:
1306 Using phpMyAdmin
1307 ++++++++++++++++
1309 .. _faq6_1:
1311 6.1 I can't insert new rows into a table / I can't create a table - MySQL brings up a SQL error.
1312 ------------------------------------------------------------------------------------------------
1314 Examine the :term:`SQL` error with care.
1315 Often the problem is caused by specifying a wrong column-type. Common
1316 errors include:
1318 * Using ``VARCHAR`` without a size argument
1319 * Using ``TEXT`` or ``BLOB`` with a size argument
1321 Also, look at the syntax chapter in the MySQL manual to confirm that
1322 your syntax is correct.
1324 .. _faq6_2:
1326 6.2 When I create a table, I set an index for two columns and phpMyAdmin generates only one index with those two columns.
1327 -------------------------------------------------------------------------------------------------------------------------
1329 This is the way to create a multi-columns index. If you want two
1330 indexes, create the first one when creating the table, save, then
1331 display the table properties and click the Index link to create the
1332 other index.
1334 .. _faq6_3:
1336 6.3 How can I insert a null value into my table?
1337 ------------------------------------------------
1339 Since version 2.2.3, you have a checkbox for each column that can be
1340 null. Before 2.2.3, you had to enter "null", without the quotes, as
1341 the column's value. Since version 2.5.5, you have to use the checkbox
1342 to get a real NULL value, so if you enter "NULL" this means you want a
1343 literal NULL in the column, and not a NULL value (this works in PHP4).
1345 .. _faq6_4:
1347 6.4 How can I backup my database or table?
1348 ------------------------------------------
1350 Click on a database or table name in the navigation panel, the properties will
1351 be displayed. Then on the menu, click "Export", you can dump the structure, the
1352 data, or both. This will generate standard :term:`SQL` statements that can be
1353 used to recreate your database/table.  You will need to choose "Save as file",
1354 so that phpMyAdmin can transmit the resulting dump to your station.  Depending
1355 on your PHP configuration, you will see options to compress the dump. See also
1356 the :config:option:`$cfg['ExecTimeLimit']` configuration variable. For
1357 additional help on this subject, look for the word "dump" in this document.
1359 .. _faq6_5:
1361 6.5 How can I restore (upload) my database or table using a dump? How can I run a ".sql" file?
1362 ----------------------------------------------------------------------------------------------
1364 Click on a database name in the navigation panel, the properties will
1365 be displayed. Select "Import" from the list of tabs in the right–hand
1366 frame (or ":term:`SQL`" if your phpMyAdmin
1367 version is previous to 2.7.0). In the "Location of the text file"
1368 section, type in the path to your dump filename, or use the Browse
1369 button. Then click Go.  With version 2.7.0, the import engine has been
1370 re–written, if possible it is suggested that you upgrade to take
1371 advantage of the new features.  For additional help on this subject,
1372 look for the word "upload" in this document.
1374 .. _faq6_6:
1376 6.6 How can I use the relation table in Query-by-example?
1377 ---------------------------------------------------------
1379 Here is an example with the tables persons, towns and countries, all
1380 located in the database "mydb". If you don't have a ``pma__relation``
1381 table, create it as explained in the configuration section. Then
1382 create the example tables:
1384 .. code-block:: mysql
1386     
1387     CREATE TABLE REL_countries (
1388     country_code char(1) NOT NULL default '',
1389     description varchar(10) NOT NULL default '',
1390     PRIMARY KEY (country_code)
1391     ) TYPE=MyISAM;
1392     
1393     INSERT INTO REL_countries VALUES ('C', 'Canada');
1394     
1395     CREATE TABLE REL_persons (
1396     id tinyint(4) NOT NULL auto_increment,
1397     person_name varchar(32) NOT NULL default '',
1398     town_code varchar(5) default '0',
1399     country_code char(1) NOT NULL default '',
1400     PRIMARY KEY (id)
1401     ) TYPE=MyISAM;
1402     
1403     INSERT INTO REL_persons VALUES (11, 'Marc', 'S', '');
1404     INSERT INTO REL_persons VALUES (15, 'Paul', 'S', 'C');
1405     
1406     CREATE TABLE REL_towns (
1407     town_code varchar(5) NOT NULL default '0',
1408     description varchar(30) NOT NULL default '',
1409     PRIMARY KEY (town_code)
1410     ) TYPE=MyISAM;
1411     
1412     INSERT INTO REL_towns VALUES ('S', 'Sherbrooke');
1413     INSERT INTO REL_towns VALUES ('M', 'MontrĂ©al');
1415 To setup appropriate links and display information:
1417 * on table "REL\_persons" click Structure, then Relation view
1418 * for "town\_code", choose from dropdowns, "mydb", "REL\_towns", "code"
1419   for foreign database, table and column respectively
1420 * for "country\_code", choose  from dropdowns, "mydb", "REL\_countries",
1421   "country\_code" for foreign database, table and column respectively
1422 * on table "REL\_towns" click Structure, then Relation view
1423 * in "Choose column to display", choose "description"
1424 * repeat the two previous steps for table "REL\_countries"
1426 Then test like this:
1428 * Click on your db name in the navigation panel
1429 * Choose "Query"
1430 * Use tables: persons, towns, countries
1431 * Click "Update query"
1432 * In the columns row, choose persons.person\_name and click the "Show"
1433   tickbox
1434 * Do the same for towns.description and countries.descriptions in the
1435   other 2 columns
1436 * Click "Update query" and you will see in the query box that the
1437   correct joins have been generated
1438 * Click "Submit query"
1440 .. _faqdisplay:
1442 6.7 How can I use the "display column" feature?
1443 -----------------------------------------------
1445 Starting from the previous example, create the ``pma__table_info`` as
1446 explained in the configuration section, then browse your persons
1447 table, and move the mouse over a town code or country code.  See also
1448 :ref:`faq6_21` for an additional feature that "display column"
1449 enables: drop-down list of possible values.
1451 .. _faqpdf:
1453 6.8 How can I produce a PDF schema of my database?
1454 --------------------------------------------------
1456 First the configuration variables "relation", "table\_coords" and
1457 "pdf\_pages" have to be filled in.  Then you need to think about your
1458 schema layout. Which tables will go on which pages?
1460 * Select your database in the navigation panel.
1461 * Choose "Operations" in the navigation bar at the top.
1462 * Choose "Edit :term:`PDF` Pages" near the
1463   bottom of the page.
1464 * Enter a name for the first :term:`PDF` page
1465   and click Go. If you like, you can use the "automatic layout," which
1466   will put all your linked tables onto the new page.
1467 * Select the name of the new page (making sure the Edit radio button is
1468   selected) and click Go.
1469 * Select a table from the list, enter its coordinates and click Save.
1470   Coordinates are relative; your diagram will be automatically scaled to
1471   fit the page. When initially placing tables on the page, just pick any
1472   coordinates -- say, 50x50. After clicking Save, you can then use the
1473   :ref:`wysiwyg` to position the element correctly.
1474 * When you'd like to look at your :term:`PDF`, first be sure to click the Save 
1475   button beneath the list of tables and coordinates, to save any changes you 
1476   made there. Then scroll all the way down, select the :term:`PDF` options you 
1477   want, and click Go.
1478 * Internet Explorer for Windows may suggest an incorrect filename when
1479   you try to save a generated :term:`PDF`.
1480   When saving a generated :term:`PDF`, be
1481   sure that the filename ends in ".pdf", for example "schema.pdf".
1482   Browsers on other operating systems, and other browsers on Windows, do
1483   not have this problem.
1485 .. _faq6_9:
1487 6.9 phpMyAdmin is changing the type of one of my columns!
1488 ---------------------------------------------------------
1490 No, it's MySQL that is doing `silent column type changing
1491 <http://dev.mysql.com/doc/en/silent-column-changes.html>`_.
1493 .. _underscore:
1495 6.10 When creating a privilege, what happens with underscores in the database name?
1496 -----------------------------------------------------------------------------------
1498 If you do not put a backslash before the underscore, this is a
1499 wildcard grant, and the underscore means "any character". So, if the
1500 database name is "john\_db", the user would get rights to john1db,
1501 john2db ... If you put a backslash before the underscore, it means
1502 that the database name will have a real underscore.
1504 .. _faq6_11:
1506 6.11 What is the curious symbol Ă¸ in the statistics pages?
1507 ----------------------------------------------------------
1509 It means "average".
1511 .. _faqexport:
1513 6.12 I want to understand some Export options.
1514 ----------------------------------------------
1516 **Structure:**
1518 * "Add DROP TABLE" will add a line telling MySQL to `drop the table
1519   <http://dev.mysql.com/doc/mysql/en/drop-table.html>`_, if it already
1520   exists during the import. It does NOT drop the table after your
1521   export, it only affects the import file.
1522 * "If Not Exists" will only create the table if it doesn't exist.
1523   Otherwise, you may get an error if the table name exists but has a
1524   different structure.
1525 * "Add AUTO\_INCREMENT value" ensures that AUTO\_INCREMENT value (if
1526   any) will be included in backup.
1527 * "Enclose table and column names with backquotes" ensures that column
1528   and table names formed with special characters are protected.
1529 * "Add into comments" includes column comments, relations, and MIME
1530   types set in the pmadb in the dump as :term:`SQL` comments 
1531   (*/\* xxx \*/*).
1533 **Data:**
1535 * "Complete inserts" adds the column names on every INSERT command, for
1536   better documentation (but resulting file is bigger).
1537 * "Extended inserts" provides a shorter dump file by using only once the
1538   INSERT verb and the table name.
1539 * "Delayed inserts" are best explained in the `MySQL manual - INSERT DELAYED Syntax
1540   <http://dev.mysql.com/doc/mysql/en/insert-delayed.html>`_.
1541 * "Ignore inserts" treats errors as a warning instead. Again, more info
1542   is provided in the `MySQL manual - INSERT Syntax
1543   <http://dev.mysql.com/doc/mysql/en/insert.html>`_, but basically with
1544   this selected, invalid values are adjusted and inserted rather than
1545   causing the entire statement to fail.
1547 .. _faq6_13:
1549 6.13 I would like to create a database with a dot in its name.
1550 --------------------------------------------------------------
1552 This is a bad idea, because in MySQL the syntax "database.table" is
1553 the normal way to reference a database and table name. Worse, MySQL
1554 will usually let you create a database with a dot, but then you cannot
1555 work with it, nor delete it.
1557 .. _faqsqlvalidator:
1559 6.14 How do I set up the SQL Validator?
1560 ---------------------------------------
1562 To use SQL Validator, you need PHP with :term:`XML`, :term:`PCRE` and
1563 :term:`PEAR` support. In addition you need a :term:`SOAP` support, either as a
1564 PHP extension or as a PEAR SOAP module.
1566 To install :term:`PEAR` :term:`SOAP` module, run :command:`pear install
1567 Net_Socket Net_URL HTTP_Request Mail_Mime Net_DIME SOAP` to get the necessary
1568 :term:`PEAR` modules for usage.
1570 If you use the Validator, you should be aware that any :term:`SQL` statement
1571 you submit will be stored anonymously (database/table/column names, strings,
1572 numbers replaced with generic values). The Mimer :term:`SQL` Validator itself,
1573 is Â© 2001 Upright Database Technology. We utilize it as free SOAP service.
1575 .. _faq6_15:
1577 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".
1578 -------------------------------------------------------------------------------------------------------------------------------------------
1580 The right way to do this, is to create the column without any indexes,
1581 then display the table structure and use the "Create an index" dialog.
1582 On this page, you will be able to choose your BLOB column, and set a
1583 size to the index, which is the condition to create an index on a BLOB
1584 column.
1586 .. _faq6_16:
1588 6.16 How can I simply move in page with plenty editing fields?
1589 --------------------------------------------------------------
1591 You can use :kbd:`Ctrl+arrows` (:kbd:`Option+Arrows` in Safari) for moving on
1592 most pages with many editing fields (table structure changes, row editing,
1593 etc.).
1595 .. _faq6_17:
1597 6.17 Transformations: I can't enter my own mimetype! WTF is this feature then useful for?
1598 -----------------------------------------------------------------------------------------
1600 Slow down :). Defining mimetypes is of no use, if you can't put
1601 transformations on them. Otherwise you could just put a comment on the
1602 column. Because entering your own mimetype will cause serious syntax
1603 checking issues and validation, this introduces a high-risk false-
1604 user-input situation. Instead you have to initialize mimetypes using
1605 functions or empty mimetype definitions. 
1607 Plus, you have a whole overview of available mimetypes. Who knows all those
1608 mimetypes by heart so he/she can enter it at will?
1610 .. _faqbookmark:
1612 6.18 Bookmarks: Where can I store bookmarks? Why can't I see any bookmarks below the query box? What is this variable for?
1613 --------------------------------------------------------------------------------------------------------------------------
1615 Any query you have executed can be stored as a bookmark on the page
1616 where the results are displayed. You will find a button labeled
1617 'Bookmark this query' just at the end of the page. As soon as you have
1618 stored a bookmark, it is related to the database you run the query on.
1619 You can now access a bookmark dropdown on each page, the query box
1620 appears on for that database.
1622 You can also have, inside the query, a placeholder for a variable.
1623 This is done by inserting into the query a SQL comment between ``/*`` and 
1624 ``*/``. Inside the comment, the special string ``[VARIABLE]`` is used. 
1625 Be aware that the whole query minus the SQL comment must be
1626 valid by itself, otherwise you won't be able to store it as a bookmark.
1628 When you execute the bookmark, everything typed into the *value* 
1629 input box on the query box page will replace the string ``/*[VARIABLE]*/`` in 
1630 your stored query.
1632 Also remember, that everything else inside the ``/*[VARIABLE]*/`` string for
1633 your query will remain the way it is, but will be stripped of the ``/**/``
1634 chars. So you can use:
1636 .. code-block:: mysql
1638     /*, [VARIABLE] AS myname */
1639     
1640 which will be expanded to 
1642 .. code-block:: mysql
1644     , VARIABLE as myname
1645     
1646 in your query, where VARIABLE is the string you entered in the input box. If an
1647 empty string is provided, no replacements are made. 
1649 A more complex example. Say you have stored
1650 this query: 
1652 .. code-block:: mysql
1654     SELECT Name, Address FROM addresses WHERE 1 /* AND Name LIKE '%[VARIABLE]%' */
1655     
1656 Say, you now enter "phpMyAdmin" as the variable for the stored query, the full
1657 query will be: 
1659 .. code-block:: mysql
1661     SELECT Name, Address FROM addresses WHERE 1 AND Name LIKE '%phpMyAdmin%'
1663 You can use multiple occurrences of ``/*[VARIABLE]*/`` in a single query
1664 (that is, multiple occurrences of the *same* variable). 
1666 **NOTE THE ABSENCE OF SPACES** inside the ``/**/`` construct. Any spaces
1667 inserted there will be later also inserted as spaces in your query and may lead
1668 to unexpected results especially when using the variable expansion inside of a
1669 "LIKE ''" expression. 
1671 Your initial query which is going to be stored as a bookmark has to yield at
1672 least one result row so you can store the bookmark. You may have that to work
1673 around using well positioned ``/**/`` comments.
1675 .. _faq6_19:
1677 6.19 How can I create simple LATEX document to include exported table?
1678 ----------------------------------------------------------------------
1680 You can simply include table in your LATEX documents,
1681 minimal sample document should look like following one (assuming you
1682 have table exported in file :file:`table.tex`):
1684 .. code-block:: latex
1686     
1687     \documentclass{article} % or any class you want
1688     \usepackage{longtable}  % for displaying table
1689     \begin{document}        % start of document
1690     \include{table}         % including exported table
1691     \end{document}          % end of document
1693 .. _faq6_20:
1695 6.20 I see a lot of databases which are not mine, and cannot access them.
1696 -------------------------------------------------------------------------
1698 You have one of these global privileges: CREATE TEMPORARY TABLES, SHOW
1699 DATABASES, LOCK TABLES. Those privileges also enable users to see all the
1700 database names. So if your users do not need those privileges, you can remove
1701 them and their databases list will shorten.
1703 .. seealso:: <http://bugs.mysql.com/179>
1705 .. _faq6_21:
1707 6.21 In edit/insert mode, how can I see a list of possible values for a column, based on some foreign table?
1708 ------------------------------------------------------------------------------------------------------------
1710 You have to setup appropriate links between the tables, and also setup
1711 the "display column" in the foreign table. See :ref:`faq6_6` for an
1712 example. Then, if there are 100 values or less in the foreign table, a
1713 drop-down list of values will be available. You will see two lists of
1714 values, the first list containing the key and the display column, the
1715 second list containing the display column and the key. The reason for
1716 this is to be able to type the first letter of either the key or the
1717 display column. For 100 values or more, a distinct window will appear,
1718 to browse foreign key values and choose one. To change the default
1719 limit of 100, see :config:option:`$cfg['ForeignKeyMaxLimit']`.
1722 .. _faq6_22:
1724 6.22 Bookmarks: Can I execute a default bookmark automatically when entering Browse mode for a table?
1725 -----------------------------------------------------------------------------------------------------
1727 Yes. If a bookmark has the same label as a table name and it's not a
1728 public bookmark, it will be executed.
1730 .. _faq6_23:
1732 6.23 Export: I heard phpMyAdmin can export Microsoft Excel files?
1733 -----------------------------------------------------------------
1735 You can use :term:`CSV` for Microsoft Excel,
1736 which works out of the box. 
1738 .. versionchanged:: 3.4.5
1739     Since phpMyAdmin 3.4.5 support for direct export to Microsoft Excel version
1740     97 and newer was dropped.
1742 .. _faq6_24:
1744 6.24 Now that phpMyAdmin supports native MySQL 4.1.x column comments, what happens to my column comments stored in pmadb?
1745 -------------------------------------------------------------------------------------------------------------------------
1747 Automatic migration of a table's pmadb-style column comments to the
1748 native ones is done whenever you enter Structure page for this table.
1750 .. _faq6_25:
1752 6.25 (withdrawn).
1753 -----------------
1755 .. _faq6_26:
1757 6.26 How can I select a range of rows?
1758 --------------------------------------
1760 Click the first row of the range, hold the shift key and click the
1761 last row of the range. This works everywhere you see rows, for example
1762 in Browse mode or on the Structure page.
1764 .. _faq6_27:
1766 6.27 What format strings can I use?
1767 -----------------------------------
1769 In all places where phpMyAdmin accepts format strings, you can use
1770 ``@VARIABLE@`` expansion and `strftime <http://php.net/strftime>`_
1771 format strings. The expanded variables depend on a context (for
1772 example, if you haven't chosen a table, you can not get the table
1773 name), but the following variables can be used:
1775 ``@HTTP_HOST@``
1776     HTTP host that runs phpMyAdmin
1777 ``@SERVER@``
1778     MySQL server name
1779 ``@VERBOSE@``
1780     Verbose MySQL server name as defined in :config:option:`$cfg['Servers'][$i]['verbose']`
1781 ``@VSERVER@``
1782     Verbose MySQL server name if set, otherwise normal
1783 ``@DATABASE@``
1784     Currently opened database
1785 ``@TABLE@``
1786     Currently opened table
1787 ``@COLUMNS@``
1788     Columns of the currently opened table
1789 ``@PHPMYADMIN@``
1790     phpMyAdmin with version
1792 .. _wysiwyg:
1794 6.28 How can I easily edit relational schema for export?
1795 --------------------------------------------------------
1797 By clicking on the button 'toggle scratchboard' on the page where you
1798 edit x/y coordinates of those elements you can activate a scratchboard
1799 where all your elements are placed. By clicking on an element, you can
1800 move them around in the pre-defined area and the x/y coordinates will
1801 get updated dynamically. Likewise, when entering a new position
1802 directly into the input field, the new position in the scratchboard
1803 changes after your cursor leaves the input field.
1805 You have to click on the 'OK'-button below the tables to save the new
1806 positions. If you want to place a new element, first add it to the
1807 table of elements and then you can drag the new element around.
1809 By changing the paper size and the orientation you can change the size
1810 of the scratchboard as well. You can do so by just changing the
1811 dropdown field below, and the scratchboard will resize automatically,
1812 without interfering with the current placement of the elements.
1814 If ever an element gets out of range you can either enlarge the paper
1815 size or click on the 'reset' button to place all elements below each
1816 other.
1818 .. _faq6_29:
1820 6.29 Why can't I get a chart from my query result table?
1821 --------------------------------------------------------
1823 Not every table can be put to the chart. Only tables with one, two or
1824 three columns can be visualised as a chart. Moreover the table must be
1825 in a special format for chart script to understand it. Currently
1826 supported formats can be found in the `wiki <http://wiki.phpmyadmin.ne
1827 t/pma/Charts#Data_formats_for_query_results_chart>`_.
1829 .. _faq6_30:
1831 6.30 Import: How can I import ESRI Shapefiles?
1832 ----------------------------------------------
1834 An ESRI Shapefile is actually a set of several files, where .shp file
1835 contains geometry data and .dbf file contains data related to those
1836 geometry data. To read data from .dbf file you need to have PHP
1837 compiled with the dBase extension (--enable-dbase). Otherwise only
1838 geometry data will be imported.
1840 To upload these set of files you can use either of the following
1841 methods:
1843 Configure upload directory with :config:option:`$cfg['UploadDir']`, upload both .shp and .dbf files with
1844 the same filename and chose the .shp file from the import page.
1846 Create a Zip archive with .shp and .dbf files and import it. For this
1847 to work, you need to set :config:option:`$cfg['TempDir']` to a place where the web server user can
1848 write (for example ``'./tmp'``).
1850 To create the temporary directory on a UNIX-based system, you can do:
1852 .. code-block:: sh
1854     cd phpMyAdmin
1855     mkdir tmp
1856     chmod o+rwx tmp
1858 .. _faq6_31:
1860 6.31 How do I create a relation in designer?
1861 --------------------------------------------
1863 To select relation, click:  The display column is shown in pink. To
1864 set/unset a column as the display column, click the "Choose column to
1865 display" icon, then click on the appropriate column name.
1867 .. _faq6_32:
1869 6.32 How can I use the zoom search feature?
1870 -------------------------------------------
1872 The Zoom search feature is an alternative to table search feature. It allows
1873 you to explore a table by representing its data in a scatter plot. You can
1874 locate this feature by selecting a table and clicking the :guilabel:`Search`
1875 tab. One of the sub-tabs in the :guilabel:`Table Search` page is
1876 :guilabel:`Zoom Search`.  
1878 Consider the table REL\_persons in :ref:`faq6_6` for
1879 an example. To use zoom search, two columns need to be selected, for
1880 example, id and town\_code. The id values will be represented on one
1881 axis and town\_code values on the other axis. Each row will be
1882 represented as a point in a scatter plot based on its id and
1883 town\_code. You can include two additional search criteria apart from
1884 the two fields to display. 
1886 You can choose which field should be
1887 displayed as label for each point. If a display column has been set
1888 for the table (see :ref:`faqdisplay`), it is taken as the label unless
1889 you specify otherwise. You can also select the maximum number of rows
1890 you want to be displayed in the plot by specifing it in the 'Max rows
1891 to plot' field. Once you have decided over your criteria, click 'Go'
1892 to display the plot. 
1894 After the plot is generated, you can use the
1895 mousewheel to zoom in and out of the plot. In addition, panning
1896 feature is enabled to navigate through the plot. You can zoom-in to a
1897 certail level of detail and use panning to locate your area of
1898 interest. Clicking on a point opens a dialogue box, displaying field
1899 values of the data row represented by the point. You can edit the
1900 values if required and click on submit to issue an update query. Basic
1901 instructions on how to use can be viewed by clicking the 'How to use?'
1902 link located just above the plot.
1904 .. _faq6_33:
1906 6.33 When browsing a table, how can I copy a column name?
1907 ---------------------------------------------------------
1909 Selecting the name of the column within the browse table header cell
1910 for copying is difficult, as the columns support reordering by
1911 dragging the header cells as well as sorting by clicking on the linked
1912 column name. To copy a column name, double-click on the empty area
1913 next to the column name, when the tooltip tells you to do so. This
1914 will show you an input box with the column name. You may right-click
1915 the column name within this input box to copy it to your clipboard.
1917 .. _faqproject:
1919 phpMyAdmin project
1920 ++++++++++++++++++
1922 .. _faq7_1:
1924 7.1 I have found a bug. How do I inform developers?
1925 ---------------------------------------------------
1927 Our Bug Tracker is located at <http://sf.net/projects/phpmyadmin/> under the
1928 Bugs section. But please first discuss your bug with other users:
1929 <https://sourceforge.net/projects/phpmyadmin/forums>.
1931 .. _faq7_2:
1933 7.2 I want to translate the messages to a new language or upgrade an existing language, where do I start?
1934 ---------------------------------------------------------------------------------------------------------
1936 Translations are very welcome and all you need to have are the
1937 language skills. The easiest way is to use our `online translation
1938 service <https://l10n.cihar.com/projects/phpmyadmin/>`_. You can check
1939 out all the possibilities to translate in the `translate section on
1940 our website <http://www.phpmyadmin.net/home_page/translate.php>`_.
1942 .. _faq7_3:
1944 7.3 I would like to help out with the development of phpMyAdmin. How should I proceed?
1945 --------------------------------------------------------------------------------------
1947 We welcome every contribution to the development of phpMyAdmin. You
1948 can check out all the possibilities to contribute in the `contribute
1949 section on our website
1950 <http://www.phpmyadmin.net/home_page/improve.php>`_.
1952 .. seealso:: :ref:`developers`
1954 .. _faqsecurity:
1956 Security
1957 ++++++++
1959 .. _faq8_1:
1961 8.1 Where can I get information about the security alerts issued for phpMyAdmin?
1962 --------------------------------------------------------------------------------
1964 Please refer to <http://www.phpmyadmin.net/home_page/security.php>.
1966 .. _faq8_2:
1968 8.2 How can I protect phpMyAdmin against brute force attacks?
1969 -------------------------------------------------------------
1971 If you use Apache web server, phpMyAdmin exports information about
1972 authentication to the Apache environment and it can be used in Apache
1973 logs. Currently there are two variables available:
1976 ``userID``
1977     User name of currently active user (he does not have to be logged in).
1978 ``userStatus``
1979     Status of currently active user, one of ``ok`` (user is logged in),
1980     ``mysql-denied`` (MySQL denied user login), ``allow-denied`` (user denied
1981     by allow/deny rules), ``root-denied`` (root is denied in configuration),
1982     ``empty-denied`` (empty password is denied).
1984 ``LogFormat`` directive for Apache can look like following:
1986 .. code-block:: apache
1988     LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %{userID}n %{userStatus}n"   pma_combined
1990 You can then use any log analyzing tools to detect possible break-in
1991 attempts.
1993 .. _faqsynchronization:
1995 Synchronization
1996 +++++++++++++++
1998 .. _faq9_1:
2000 9.1 (withdrawn). 
2001 ----------------
2003 .. _faq9_2:
2005 9.2 (withdrawn). 
2006 ----------------