1 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns=
"http://www.w3.org/1999/xhtml" xml:
lang=
"en-US" lang=
"en-US">
7 <meta http-equiv=
"Content-Type" content=
"text/html; charset=iso-8859-1" />
8 <title>phpMyAdmin
2.2.6 - Documentation
</title>
9 <style type=
"text/css">
12 font-family: Verdana
, Arial
, Helvetica
, sans-serif
;
13 text-decoration: none
;
19 background-color: #99CCFF;
23 font-family: Verdana
, Arial
, Helvetica
, sans-serif
;
24 text-decoration: none
;
30 background-color: #99CCFF;
34 font-family: Verdana
, Arial
, Helvetica
, sans-serif
;
40 font-family: Arial
, Helvetica
, sans-serif
;
45 font-family: Arial
, Helvetica
, sans-serif
;
49 font-family: Arial
, Helvetica
, sans-serif
;
53 font-family: Arial
, Helvetica
, sans-serif
;
57 font-family: Arial
, Helvetica
, sans-serif
;
61 font-family: Arial
, Helvetica
, sans-serif
;
65 font-family: Verdana
, Arial
, Helvetica
, sans-serif
;
69 page-break-before: right
;
75 <body bgcolor=
"#FFFFFF">
77 <h1>phpMyAdmin
2.2.6 Documentation
</h1>
82 <li><a class=
"navigation" href=
"http://www.phpmyadmin.net/">Sourceforge phpMyAdmin project page
[ http://www.phpmyadmin.net/ ]
</a></li>
85 <li>Version history:
<a class=
"navigation" href=
"ChangeLog">ChangeLog
</a></li>
86 <li>General notes:
<a class=
"navigation" href=
"README">README
</a></li>
87 <li>License:
<a class=
"navigation" href=
"LICENSE">LICENSE
</a></li>
90 <li>Documentation version:
<i>$Id$
</i></li>
95 <a name=
"require"></a><br />
96 <hr noshade=
"noshade" width=
"100%" />
98 <a class=
"navigation2" href=
"#top">Top
</a> -
99 <a class=
"navigation2" href=
"#require">Requirements
</a> -
100 <a class=
"navigation2" href=
"#intro">Introduction
</a> -
101 <a class=
"navigation2" href=
"#setup">Installation
</a> -
102 <a class=
"navigation2" href=
"#config">Configuration
</a> -
103 <a class=
"navigation2" href=
"#faq">FAQ
</a> -
104 <a class=
"navigation2" href=
"#developers">Developers
</a> -
105 <a class=
"navigation2" href=
"#credits">Credits
</a>
107 <hr noshade=
"noshade" width=
"100%" />
109 <h2>Requirements
</h2>
113 PHP3 or PHP4: phpMyAdmin widely uses the 'str_replace()' php function
114 that was added in PHP
3.0.6, but was buggy up until
116 Then
<font color=
"#bb0000">you should not run this script with
117 PHP3
< 3.0.8</font>.
<br />
118 Furthermore, we encountered crashes of the php module / binary when
119 working with PHP
4.2.0 (tested with PHP
4.2.0 RC1 to RC4) and trying to
120 download a (zipped) dump file using MS Internet Explorer. That is why
121 <font color=
"#bb0000">we recommend not to run phpMyAdmin with PHP
124 PHP also needs to be
<font color=
"#bb0000">compiled with MySQL
128 MySQL (tested with
3.21.x,
3.22.x,
3.23.x and
4.0.x);
131 a web-browser (doh!).
136 <!-- INTRODUCTION -->
137 <a name=
"intro"></a><br />
138 <hr noshade=
"noshade" width=
"100%" />
140 <a class=
"navigation2" href=
"#top">Top
</a> -
141 <a class=
"navigation2" href=
"#require">Requirements
</a> -
142 <a class=
"navigation2" href=
"#intro">Introduction
</a> -
143 <a class=
"navigation2" href=
"#setup">Installation
</a> -
144 <a class=
"navigation2" href=
"#config">Configuration
</a> -
145 <a class=
"navigation2" href=
"#faq">FAQ
</a> -
146 <a class=
"navigation2" href=
"#developers">Developers
</a> -
147 <a class=
"navigation2" href=
"#credits">Credits
</a>
149 <hr noshade=
"noshade" width=
"100%" />
151 <h2>Introduction
</h2>
154 phpMyAdmin can manage a whole MySQL-server (needs a super-user)
155 but also a single database. To accomplish the latter you'll need
156 a properly set up MySQL-user who can read/write only the desired
157 database. It's up to you to look up the appropriate part in the
158 MySQL manual. Currently phpMyAdmin can:
162 <li>create and drop databases
</li>
163 <li>create, copy, drop and alter tables
</li>
164 <li>delete, edit and add fields
</li>
165 <li>execute any SQL-statement, even batch-queries
</li>
166 <li>manage keys on fields
</li>
167 <li>load text files into tables
</li>
168 <li>create (*) and read dumps of tables
</li>
169 <li>export (*) and import data to CSV values
</li>
170 <li>administer multiple servers and single databases
</li>
171 <li>check referential integrity
</li>
172 <li>communicate in more than
38 different languages
</li>
175 <table border=
"0" cellspacing=
"0" cellpadding=
"0">
177 <td valign=
"top">(*)
</td>
179 phpMyAdmin can compress (Zip, GZip -RFC
1952- or Bzip2 formats) dumps
180 and CSV exports if you use PHP4
>=
4.0.4 with Zlib support
181 (
<tt>--with-zlib
</tt>) and/or Bzip2 support (
<tt>--with-bz2
</tt>).
187 <!-- INSTALLATION -->
188 <a name=
"setup"></a><br />
189 <hr noshade=
"noshade" width=
"100%" />
191 <a class=
"navigation2" href=
"#top">Top
</a> -
192 <a class=
"navigation2" href=
"#require">Requirements
</a> -
193 <a class=
"navigation2" href=
"#intro">Introduction
</a> -
194 <a class=
"navigation2" href=
"#setup">Installation
</a> -
195 <a class=
"navigation2" href=
"#config">Configuration
</a> -
196 <a class=
"navigation2" href=
"#faq">FAQ
</a> -
197 <a class=
"navigation2" href=
"#developers">Developers
</a> -
198 <a class=
"navigation2" href=
"#credits">Credits
</a>
200 <hr noshade=
"noshade" width=
"100%" />
202 <h2>Installation
</h2>
205 <font color=
"#bb0000">NOTE: phpMyAdmin does not apply any special security
206 methods to the MySQL database server. It is still the sysadmin's job to
207 grant permissions on the MySQL databases properly.
</font>
211 <font color=
"#bb0000">Warning for Mac users:
</font> php seems not to like
212 Mac end of lines character (
"<tt>\r
</tt>") and Stuffit unstuffs
213 with Mac formats, of course.
<br />
214 So you'll have to resave as in Bbedit to unix style ALL phpMyAdmin scripts
215 before uploading them to your server.
219 <font color=
"#bb0000">Documentation warning:
</font> when you see in this
220 document a
<i>.php3
</i> file extension, please transpose to
<i>.php
</i>
221 if you are using a kit with files having this extension.
224 <p><b>Quick Install:
</b></p>
226 <li> Use a distribution kit with the files having the extension
227 (
<i>.php3
</i> or
<i>.php
</i>) depending on the way your web/PHP server
228 interprets those extensions.
</li>
229 <li> Untar or unzip the distribution (be sure to unzip the subdirectories):
230 <tt>tar xzvf phpMyAdmin_x.x.x.tar.gz
</tt> in your webserver's
232 <li> Open the file config.inc.php3 in your favourite editor and change
233 the values for host, user, password and authentication mode to fit
235 Also insert the correct value for
<tt>$cfgPmaAbsoluteUri
</tt>.
237 <a class=
"navigation" href=
"#config">Configuration section
</a> for an
238 explanation of all values.
</li>
239 <li> It is recommended that you protect the directory in which you
240 installed phpMyAdmin (unless it's on a closed intranet, or you wish to
241 use http or cookie authentication), for example with HTTP-AUTH (in a
242 <i>.htaccess
</i> file). See the
243 <a class=
"navigation" href=
"#faq">FAQ section
</a> for additional
246 <i><www.your-host.com
>/
<your-install-dir
>/index.php3
</i>
247 in your browser. phpMyAdmin should now display a welcome screen
248 and your databases, or a login dialog if using http or cookie
249 authentication mode.
</li>
252 <p><b>Upgrading from an older version:
</b></p>
254 <li>Please do not copy your older config.inc.php3 over the new one: it may
255 offer new configuration variables, and the new version may depend on
256 these for normal behavior. It is suggested instead to insert your site
257 values in the new one.
</li>
260 <p><b>Using authentication modes:
</b></p>
262 <li>Http and cookie authentication modes are recommended in a multi-user
263 environment where you want to give users access to their own database
264 and don't want them to play around with others.
266 Nevertheless be aware that MS Internet Explorer seems to be really
267 buggy about cookies, at least till version
6. And php
4.1.1 is also a
268 bit buggy in this area!
<br /><br /></li>
270 <li>Http and cookie authentication modes are secure: the MySQL password
271 does not need to be set in the phpMyAdmin configuration file. (except
272 for the
"controluser
" -see the Configuration section-).
274 In cookie mode, we send the password in a temporary cookie, so most
275 browsers should not store the password in their cookie file.
279 For 'http' and 'cookie' modes, phpMyAdmin needs a controluser that has
280 <b>only
</b> the
<tt>SELECT
</tt> privilege on the
<i>mysql.user (all
281 columns except
"Password
")
</i>,
<i>mysql.db (all columns)
</i>
282 & <i>mysql.tables_priv (all columns except
"Grantor
"
283 & "Timestamp
")
</i>tables.
<br />
284 You must specify the details for the controluser in the
285 <i>config.inc.php3
</i> file under the
286 <tt>$cfgServers[$i]['controluser']
</tt>&
287 <tt>$cfgServers[$i]['controlpass']
</tt> settings.
<br />
288 This example assumes you want to use
<tt>pma
</tt> as the controluser
289 and
<tt>pmapass
</tt> as the controlpass:
<br />
292 <td> </td>
294 <tt>GRANT USAGE ON mysql.* TO 'pma'@'localhost' IDENTIFIED BY 'pmapass';
</tt><br />
295 <tt>GRANT SELECT (Host, User, Select_priv, Insert_priv, Update_priv, Delete_priv, Create_priv, Drop_priv, Reload_priv, Shutdown_priv, Process_priv, File_priv, Grant_priv, References_priv, Index_priv, Alter_priv) ON mysql.user TO 'pma'@'localhost';
</tt><br />
296 <tt>GRANT SELECT ON mysql.db TO 'pma'@'localhost';
</tt><br />
297 <tt>GRANT SELECT (Host, Db, User, Table_name, Table_priv, Column_priv) ON mysql.tables_priv TO 'pma'@'localhost';
</tt>
302 ... and if you want to use the bookmark feature:
306 <td> </td>
308 <tt>GRANT SELECT, INSERT, DELETE ON
<bookmark_db
>.
<bookmark_table
> TO 'pma'@'localhost';
</tt>
315 Then each of the
<i>true
</i> users should be granted of a set of
316 privileges on a set of perticular databases but shouldn't have any
317 global privileges. For example, to grant the user
<i>real_user
</i> with
318 all privileges on the database
<i>user_base
</i>:
<br />
319 <tt>GRANT ALL PRIVILEGES ON user_base.* TO 'real_user'@localhost IDENTIFIED BY 'real_password';
</tt>
321 What the user may now do is controlled entirely by the MySQL user
322 management system.
<br />
323 With http or cookie auth mode, you don't need to fill the user/password
324 fields inside the
<tt>$cfgServers
</tt> array.
<br />
328 <p><b>'http' authentication mode:
</b></p>
330 <li>Was called 'advanced' in versions before
2.2.3.
</li>
331 <li>Introduced in
1.3.0, it uses Basic HTTP authentication method and
332 allows you to login as any valid MySQL user.
</li>
333 <li>Is only supported with PHP running as an Apache module, not with cgi.
</li>
336 <p><b>'cookie' authentication mode:
</b></p>
338 <li>You can use this method as a replacement for the http
339 authentication (for example, if you're running IIS).
341 <li>Obviously, the user must enable cookies in the browser.
</li>
342 <li>With this mode, the use can truly logout of phpMyAdmin and login back
343 with the same username.
</li>
346 <p><b>'config' authentication mode:
</b></p>
348 <li>This mode is the less secure one because it requires you to fill the
349 <tt>$cfgServers[$i]['user']
</tt> and
350 <tt>$cfgServers[$i]['password']
</tt> fields.
<br />
351 But you don't need to setup a
"controluser
" here:
352 using the
<tt>$cfgServers[$i]['only_db']
</tt> might be enough.
<br />
353 In the ISP FAQ section, there is an entry explaining how to protect
354 your configuration file.
<br /></li>
358 <!-- CONFIGURATION -->
359 <a name=
"config"></a><br />
360 <hr noshade=
"noshade" width=
"100%" />
362 <a class=
"navigation2" href=
"#top">Top
</a> -
363 <a class=
"navigation2" href=
"#require">Requirements
</a> -
364 <a class=
"navigation2" href=
"#intro">Introduction
</a> -
365 <a class=
"navigation2" href=
"#setup">Installation
</a> -
366 <a class=
"navigation2" href=
"#config">Configuration
</a> -
367 <a class=
"navigation2" href=
"#faq">FAQ
</a> -
368 <a class=
"navigation2" href=
"#developers">Developers
</a> -
369 <a class=
"navigation2" href=
"#credits">Credits
</a>
371 <hr noshade=
"noshade" width=
"100%" />
373 <h2>Configuration
</h2>
376 <font color=
"#bb0000">Warning for Mac users:
</font> php seems not to like
377 Mac end of lines character (
"<tt>\r
</tt>"). So ensure you choose
378 the option that allows to use the *nix end of line character
379 (
"<tt>\n
</tt>") in your text editor before registering a script
383 <p>All configurable data is placed in
<i>config.inc.php3
</i>.
</p>
385 <dt><b>$cfgPmaAbsoluteUri
</b> string
</dt>
387 Sets here the complete url (with full path) to your phpMyAdmin version.
388 E.g.
<tt>http://www.your_web.net/path_to_your_phpMyAdmin_directory/
</tt>.
390 Don't forget the slash at the end of your url. The url must contain
391 characters that are valid for a url, and on some servers, the path
394 This setting can be dynamically completed. For example, you can try to
395 use such a kind of code:
397 $cfgPmaAbsoluteUri = (!empty($HTTPS) ? 'https' : 'http') . '://'
398 . $HTTP_HOST . (!empty($SERVER_PORT) ? ':' . $SERVER_PORT : '')
399 . substr($PHP_SELF,
0, strrpos($PHP_SELF, '/')+
1);
403 $cfgPmaAbsoluteUri = (!empty($HTTPS) ? 'https' : 'http') . '://'
404 . $SERVER_NAME . (!empty($SERVER_PORT) ? ':' . $SERVER_PORT : '')
405 . substr($SCRIPT_NAME,
0, strrpos($SCRIPT_NAME, '/')+
1);
409 <dt><b>$cfgServers
</b> array
</dt>
411 Since version
1.4.2, phpMyAdmin supports the administration of multiple
413 Therefore, a $cfgServers-array has been added which contains the login
414 information for the different servers. The first
415 <tt>$cfgServers[$i]['host']
</tt> contains the hostname of the first
416 server, the second
<tt>$cfgServers[$i]['host']
</tt> the hostname of the
418 If you have only one server to administer, simply leave free the
419 hostname of the other $cfgServer-entries.
423 <dt><b>$cfgServers[$i]['host']
</b> string
</dt>
425 The hostname of your $i-th MySQL-server. E.g. localhost.
429 <dt><b>$cfgServers[$i]['port']
</b> string
</dt>
431 The port-number of your $i-th MySQL-server. Default is
3306 (leave
436 <dt><b>$cfgServers[$i]['socket']
</b> string
</dt>
438 The path to the socket to use. Leave blank for default.
<br />
439 To use the socket feature you must run php
3.0.10 or more.
443 <dt><b>$cfgServers[$i]['connect_type']
</b> string
</dt>
445 What type connection to use with the MySQL server. Your options are
446 'socket'
& 'tcp'. It defaults to 'tcp' as that is nearly guarenteed
447 to be available on all MySQL servers, while sockets are not supported
453 <b>$cfgServers[$i]['controluser']
</b> string
<br />
454 <b>$cfgServers[$i]['controlpass']
</b> string
457 When using http or cookie authentication modes (or 'config'
458 authentication mode since phpMyAdmin
2.2.1), you need to supply the
459 details of a MySQL account that has
<tt>SELECT
</tt> privilege on the
460 <i>mysql.user (all columns except
"Password
")
</i>,
461 <i>mysql.db (all columns)
</i> & <i>mysql.tables_priv (all columns
462 except
"Grantor
" & "Timestamp
")
</i>tables.
463 This account is used to check what databases the user will see at
465 Please see the
<a class=
"navigation" href=
"#setup">install section
</a>
466 on
"Using http authentication
" for more information.
468 Note that if you try login to phpMyAdmin with this
469 "controluser
", you could get some errors, depending the exact
470 privileges you gave to the
"controluser
". phpMyAdmin does not
471 support a direct login with the
"controluser
".
473 In versions before
2.2.5, those were called
474 "stduser/stdpass
".
478 <dt><b>$cfgServers[$i]['auth_type']
</b> string
<tt>['http'|'cookie'|'config']
</tt> </dt>
480 Whether config or cookie or http authentication should be used for this
485 'config' authentication
486 (
<tt>$auth_type
=
'config'
</tt>) is the plain old
487 way: username and password are stored in
488 <i>config.inc.php3
</i>.
491 'cookie' authentication mode
492 (
<tt>$auth_type
=
'cookie'
</tt>) as introduced in
493 2.2.3 allows you to log in as any valid MySQL user with the
494 help of... cookies. Log name and password are stored in
495 cookies during the session and password is deleted when it
499 'http' authentication (was called 'advanced' in older versions)
500 (
<tt>$auth_type
=
'http'
</tt>) as introduced in
1.3.0
501 allows you to log in as any valid MySQL user via HTTP-Auth.
505 Please see the install section on
"Using authentication modes
"
506 for more information.
511 <b>$cfgServers[$i]['user']
</b> string
<br />
512 <b>$cfgServers[$i]['password']
</b> string
515 The user/password-pair which phpMyAdmin will use to connect to this
516 MySQL-server. This user/password pair is not needed when http or cookie
517 authentication is used, and should be empty.
<br /><br />
520 <dt><b>$cfgServers[$i]['only_db']
</b> string or array
</dt>
522 If set to a(an array of) database name(s), only this(these) database(s)
523 will be shown to the user. Since phpMyAdmin
2.2.1, this/these
524 database(s) name(s) may contain MySQL wilcards characters
525 (
"_
" and
"%
"): if you want to use literal instances
526 of these characters, escape them (ie use
<tt>'my\_db'
</tt> and not
527 <tt>'my_db'
</tt>).
<br />
528 This setting is an efficient way to lower the server charge since the
529 latter does not need to send MySQL requests to build the available
530 database list. But
<font color=
"#bb0000">it does not replace the
531 privileges rules of the MySQL database server
</font>. If set, it just
532 means only these databases will be displayed but
533 <font color=
"#bb0000">not at all other databases can't be used.
</font>
537 <dt><b>$cfgServers[$i]['verbose']
</b> string
</dt>
539 Only useful when using phpMyAdmin with multiple server entries. If set,
540 this string will be displayed instead of the hostname in the pulldown
541 menu on the main page. This can be useful if you want to show only
542 certain databases on your system, for example.
547 <b>$cfgServers[$i]['bookmarkdb']
</b> string
<br />
548 <b>$cfgServers[$i]['bookmarktable']
</b> string
551 Since release
2.2.0 phpMyAdmin allows to bookmark queries. This can be
552 useful for queries you often run.
<br /><br />
554 To use this functionality you have to:
557 create a table following this scheme:
<br />
559 CREATE TABLE bookmark (
<br />
560 id int(
11) DEFAULT '
0' NOT NULL auto_increment,
<br />
561 dbase varchar(
255) NOT NULL,
<br />
562 user varchar(
255) NOT NULL,
<br />
563 label varchar(
255) NOT NULL,
<br />
564 query text NOT NULL,
<br />
565 PRIMARY KEY (id)
<br />
566 );
570 then complete the two variables
571 <tt>$cfgServers[$i]['bookmarkdb']
</tt> and
572 <tt>$cfgServers[$i]['bookmarktable']
</tt> with the database and
573 table names you've choosen so phpMyAdmin will be able to find
578 Note that
<tt>controluser
</tt> must have
<tt>SELECT
</tt>,
579 <tt>INSERT
</tt> and
<tt>DELETE
</tt> privileges on the bookmark table.
580 Here is a query to set up those privileges (using
"pma
" as
581 the controluser:
<br />
582 <tt>GRANT SELECT,INSERT,DELETE ON
<bookmarkdb
>.
<bookmarktable
> to 'pma'@localhost;
</tt>
587 <b>$cfgServers[$i]['relation']
</b> string
590 Since release
2.2.4 you can describe, in a special 'relation' table,
591 which field is a key in another table (a foreign key). phpMyAdmin
592 currently uses this to
595 make clickable, when you browse the src table, the data values
596 that point to the dest table;
599 display links on the table properties page, to check referential
600 integrity (display missing foreign keys) for each described key.
605 The keys can be numeric or character.
608 To use this functionality you have to:
611 create in the same database a table (for example 'relation')
612 following this scheme:
<br />
614 CREATE TABLE `relation` (
<br />
615 `src_table` varchar(
32) NOT NULL default '',
<br />
616 `src_column` varchar(
32) NOT NULL default '',
<br />
617 `dest_table` varchar(
32) NOT NULL default '',
<br />
618 `dest_column` varchar(
32) NOT NULL default '',
<br />
619 PRIMARY KEY (`src_table`,`src_column`)
<br />
620 ) TYPE=MyISAM COMMENT='Table Relation';
<br />
624 put the relation table name in
625 <tt>$cfgServers[$i]['relation']
</tt>
628 then manually fill the relation table with information about
634 <dt><b>$cfgServerDefault
</b> integer
</dt>
636 If you have more than one server configured, you can set
637 <tt>$cfgServerDefault
</tt> to any one of them to autoconnect to that
638 server when phpMyAdmin is started, or set it to
0 to be given a list of
639 servers without logging in.
<br />
640 If you have only one server configured,
<tt>$cfgServerDefault
</tt> MUST
641 be set to that server.
645 <dt><b>$cfgOBGzip
</b>boolean
</dt>
647 Defines whether to use gzip output buffering for increased
648 speed in HTTP transfers.
652 <dt><b>$cfgPersistentConnections
</b>boolean
</dt>
654 Whether persistent connections should be used or not (mysql_connect or
659 <dt><b>$cfgExecTimeLimit
</b>integer [number of seconds]
</dt>
661 Set the number of seconds a script is allowed to run. If seconds is set
662 to zero, no time limit is imposed.
<br />
663 This setting is used while importing/exporting dump files but has no
664 effect when PHP is running in safe mode.
668 <dt><b>$cfgSkipLockedTables
</b>boolean
</dt>
670 Mark used tables and make it possible to show databases with locked
671 tables (since
3.23.30).
675 <dt><b>$cfgShowSQL
</b>boolean
</dt>
677 Defines whether sql-queries generated by phpMyAdmin should be displayed
682 <dt><b>$cfgAllowUserDropDatabase
</b>boolean
</dt>
684 Defines whether normal users (non-administrator) are allowed to
685 delete their own database or not. If set as FALSE, the link
"Drop
686 Database
" will not be shown, and even a
"DROP DATABASE
687 mydatabase
" will be rejected. Quite practical for ISP's with many
692 <dt><b>$cfgConfirm
</b>boolean
</dt>
694 Whether a warning (
"Are your really sure..
") should be
695 displayed when you're about to loose data.
699 <dt><b>$cfgShowTooltip
</b>boolean
</dt>
701 Defines whether to display table comment as tooltip in left frame or
706 <dt><b>$cfgLeftFrameLight
</b> boolean
</dt>
708 Defines whether to use select-based menu and display only the current
709 tables in the left frame (smaller page).
714 <b>$cfgShowMysqlInfo
</b>boolean
<br />
715 <b>$cfgShowMysqlVars
</b>boolean
<br />
716 <b>$cfgShowPhpInfo
</b>boolean
<br />
717 <b>$cfgShowChgPassword
</b>boolean
720 Defines whether to display the
"MySQL runtime information
",
721 "MySQL system variables
",
"PHP information
" and
722 "Change password
" links or not for simple users at the
723 starting main (right) frame. This setting does not check MySQL commands
727 Please note that to block the usage of phpinfo() in scripts, you
728 have to put this in your php.ini:
<br />
729 <tt>disable_functions = phpinfo()
</tt>
732 Also note that enabling the
"Change password
" link has no
733 effect with
"config
" authentication mode: because of the hard
734 coded password value in the configuration file, end users can't be
735 allowed to change their passwords.
739 <dt><b>$cfgLoginCookieRecall
</b>boolean
</dt>
741 Define whether the previous login should be recalled or not in cookie
746 <dt><b>$cfgShowStats
</b>boolean
</dt>
748 Defines whether to display space usage and statistics about databases
749 and tables or not.
<br />
750 Note that statistics requires at least MySQL
3.23.3 and that, at this
751 date, MySQL doesn't return such information for Berkeley DB tables.
755 <dt><b>$cfgShowBlob
</b>boolean
</dt>
757 Defines whether
<tt>BLOB
</tt> fields are shown when browsing a table's
762 <dt><b>$cfgNavigationBarIconic
</b>boolean
</dt>
764 Defines whether navigation bar buttons contain text or symbols only.
768 <dt><b>$cfgShowAll
</b>boolean
</dt>
770 Defines whether an user should be displayed a
771 "show all (records)
" button in browse mode or not.
775 <dt><b>$cfgMaxRows
</b>integer
</dt>
777 Number of rows displayed when browsing a resultset. If the resultset
778 contains more rows, Previous/Next links will be shown.
782 <dt><b>$cfgOrder
</b>string [
<tt>DESC
</tt>|
<tt>ASC
</tt>|
<tt>SMART
</tt>]
</dt>
784 Defines whether fields are displayed in ascending (
<tt>ASC
</tt>) order,
785 in descending (
<tt>DESC
</tt>) order or in a
"smart
"
786 (
<tt>SMART
</tt>) order -ie descending order for fields of type TIME,
787 DATE, DATETIME
& TIMESTAMP, ascending order else- by default.
791 <dt><b>$cfgProtectBinary
</b>boolean or string
</dt>
793 Defines whether
<tt>BLOB
</tt> or
<tt>BINARY
</tt> fields are protected
794 from edition when browsing a table's content or not.
795 Valid values are:
<br />
796 -
<tt>FALSE
</tt> to allow edition of all fields;
<br />
797 -
<tt>blob
</tt> to allow edition of all fields except
<tt>BLOBS
</tt>;
<br />
798 -
<tt>all
</tt> to disallow edition of all
<tt>BINARY
</tt> or
<tt>BLOB
</tt> fields.
802 <dt><b>$cfgShowFunctionFields
</b>boolean
</dt>
804 Defines whether MySQL functions fields should be displayed or not in edit/insert
810 <b>$cfgZipDump
</b>boolean
<br />
811 <b>$cfgGZipDump
</b>boolean
<br />
812 <b>$cfgBZipDump
</b>boolean
815 Defines whether to allow the use of zip/gzip/bzip compression when
816 creating a dump file or not.
820 <dt><b>$cfgManualBaseShort
</b> string
</dt>
822 If set to an URL which points to the MySQL documentation (on short
823 pages), appropriate help links are generated.
827 <dt><b>$cfgDefaultLang
</b>string
</dt>
829 Defines the default language to use, if not browser-defined or
831 See the
<i>select_lang.inc.php3
</i> script to know the valid values for
836 <dt><b>$cfgLang
</b>string
</dt>
838 Force: always use this language (must be defined in the
839 <i>select_lang.inc.php3
</i> script).
843 <dt><b>$cfgLeftWidth
</b>integer
</dt>
845 Left frame width in pixel.
850 <b>$cfgLeftBgColor
</b>string [HTML color]
<br />
851 <b>$cfgRightBgColor
</b>string [HTML color]
854 The background colors (HTML) used for both the frames.
858 <dt><b>$cfgLeftPointerColor
</b>string [HTML color]
</dt>
860 The color (HTML) used for the pointer in the left frame (does not work
865 <dt><b>$cfgBorder
</b>integer
</dt>
867 The size of a table's border.
871 <dt><b>$cfgThBgcolor
</b>string [HTML color]
</dt>
873 The color (HTML) used for table headers.
877 <dt><b>$cfgBgcolorOne
</b>string [HTML color]
</dt>
879 The color (HTML) #
1 for table rows.
883 <dt><b>$cfgBgcolorTwo
</b>string [HTML color]
</dt>
885 The color (HTML) #
2 for table rows.
890 <b>$cfgBrowsePointerColor
</b>string [HTML color]
<br />
891 <b>$cfgBrowseMarkerColor
</b>string [HTML color]
894 The colors (HTML) uses for the pointer and the marker in browse mode
895 (does not work with NS4).
<br />
896 The former feature highlights the row over which your mouse is passing
897 and the latter lets you visually mark/unmark rows by clicking on
899 You can disable both of these features by emptying the respective
905 <b>$cfgTextareaCols
</b>integer
<br />
906 <b>$cfgTextareaRows
</b>integer
909 Number of columns and rows for the textareas.
913 <dt><b>$cfgLimitChars
</b>integer
</dt>
915 Maximal number of Chars showed in a
<tt>TEXT
</tt> OR a
<tt>BLOB
</tt>
916 field on browse view. Can be turned off by a toggle button on the
922 <b>$cfgModifyDeleteAtLeft
</b>boolean
<br />
923 <b>$cfgModifyDeleteAtRight
</b>boolean
926 Defines the place where modify and delete links would be put when
927 tables contents are displayed (you may have them displayed both at the
928 left and at the right).
929 "Left
" and
"right
" are parsed as
"top
"
930 and
"bottom
" with vertical display mode.
934 <dt><b>$cfgDefaultDisplay
</b>string
</dt>
936 There are
2 display modes: horizontal and vertical. Define which one is
937 displayed by default.
941 <dt><b>$cfgRepeatCells
</b>integer
</dt>
943 Repeat the headers every X cells, or
0 to deactivate.
947 <dt><b>$cfgColumnTypes
</b>array
</dt>
949 All possible types of a MySQL column. In most cases you don't need to
954 <dt><b>$cfgAttributeTypes
</b>array
</dt>
956 Possible attributes for fields. In most cases you don't need to edit
960 <dt><b>$cfgFunctions
</b>array
</dt>
962 A list of functions MySQL supports. In most cases you don't need to
970 <a name=
"faq"></a><br />
971 <hr noshade=
"noshade" width=
"100%" />
973 <a class=
"navigation2" href=
"#top">Top
</a> -
974 <a class=
"navigation2" href=
"#require">Requirements
</a> -
975 <a class=
"navigation2" href=
"#intro">Introduction
</a> -
976 <a class=
"navigation2" href=
"#setup">Installation
</a> -
977 <a class=
"navigation2" href=
"#config">Configuration
</a> -
978 <a class=
"navigation2" href=
"#faq">FAQ
</a> -
979 <a class=
"navigation2" href=
"#developers">Developers
</a> -
980 <a class=
"navigation2" href=
"#credits">Credits
</a>
982 <hr noshade=
"noshade" width=
"100%" />
984 <h2>FAQ - Frequently Asked Questions
</h2>
985 <a class=
"navigation" href=
"#faqserver">Server
</a> -
986 <a class=
"navigation" href=
"#faqconfig">Configuration
</a> -
987 <a class=
"navigation" href=
"#faqlimitations">Limitations
</a> -
988 <a class=
"navigation" href=
"#faqmultiuser">Multi-user
</a> -
989 <a class=
"navigation" href=
"#faqbrowsers">Browsers
</a> -
990 <a class=
"navigation" href=
"#faqusing">Usage tips
</a> -
991 <a class=
"navigation" href=
"#faqproject">Project
</a>
994 <a name=
"faqserver"></a>
997 <b>I'm running php
4+ and my server is crashing each time a specific action
998 is required or phpMyAdmin sends a blank page or a page full of cryptic
999 characters to my browser, what can I do?
</b>
1001 There are some known php bugs with output buffering and compression.
<br />
1002 Try to set the
<tt>$cfgOBGzip
</tt> directive to
<tt>FALSE
</tt> in your
1003 <i>config.inc.php or .php3
</i> file and the
1004 <tt>zlib.output_compression
</tt> directive to
<tt>Off
</tt> in your php
1005 configuration file.
<br />
1006 Furthermore, we know about such problems connected to php
4.2.0 (tested
1007 with php
4.2.0 RC1 to RC4) together with MS Internet Explorer.
1008 Unfortunatly, the only solution for this bug seems to be switching back to
1009 an earlier php version.
1013 <b>My Apache server crashes when using phpMyAdmin.
</b>
1015 You should first try the latest versions of Apache (and possibly MySQL).
1017 See also the other FAQ entry about php bugs with output buffering.
1019 If your server keeps crashing, please ask for help in the various
1020 Apache support groups.
1024 <b>Using phpMyAdmin on IIS, I'm displayed the error message:
"The
1025 specified CGI application misbehaved by not returning a complete set of
1026 HTTP headers....
"</b>
1028 You just forgot to read the
<i>install.txt
</i> file from the php
1029 distribution. Have a look at the last message in this
1030 <a href=
"http://bugs.php.net/bug.php?id=12061">bug report
</a> from the
1031 official php bug database.
1035 <b>Using phpMyAdmin on IIS, I'm facing crashes and/or many error messages
1036 with the http or advanced authentication mode.
</b>
1038 This is a known problem with the php ISAPI filter: it's not so stable. For
1039 some more information and complete testings see the messages posted by
1040 André B. aka
"djdeluxe76
" in
1041 <a href=
"http://www.phpwizard.net/phorum/read.php?f=1&i=6624&t=6300">this
thread
</a>
1042 from the phpWizard forum.
<br />
1043 Please use instead the cookie authentication mode.
1047 <b>I can't use phpMyAdmin on PWS: nothing is displayed!
</b>
1049 This seems to be a PWS bug. Filippo Simoncini found a workaroud (at this
1050 time there is no better fix): remove or comment the
<tt>DOCTYPE
</tt>
1051 declarations (
3 lines) from the scripts
<i>header.inc.php3
</i>,
1052 <i>index.php3
</i>,
<i>left.php3
</i> and
<i>libraries/common.lib.php3
</i>.
1056 <b>How can I GZip or Bzip a dump or a CSV export. It seems to not work?
</b>
1058 These features are based on the
<tt>gzencode()
</tt> and
1059 <tt>bzcompress()
</tt> php functions to be more independent of the platform
1060 (Unix/Windows, Safe Mode or not, and so on).
1061 So, you must have PHP4
>=
4.0.4 and Zlib/Bzip2 support
1062 (
<tt>--with-zlib
</tt> and
<tt>--with-bz2
</tt>).
<br />
1063 We faced php crashes when trying to download a dump with MS Internet
1064 Explorer when phpMyAdmin is run with php
4.2.0 (tested with php
4.2.0 RC1
1065 to RC4). In this case you should switch back to an earlier php version.
1069 <b>I cannot insert a text file in a table, and I get an error about safe
1070 mode being in effect.
</b>
1072 Your uploaded file is saved by PHP in the
"upload dir
", as
1073 defined in
<i>php.ini
</i> by the variable
<tt>upload_tmp_dir
</tt> (usually
1074 the system default is
<i>/tmp
</i>).
1076 We recommend the following setup for Apache servers running in safe mode,
1077 to enable uploads of files while being reasonably secure:
1080 <li>create a separate directory for uploads:
1081 <tt>mkdir /tmp/php
</tt></li>
1082 <li>give ownership to the Apache server's user.group:
1083 <tt>chown apache.apache /tmp/php
</tt></li>
1084 <li>give proper permission:
<tt>chmod
600 /tmp/php
</tt></li>
1085 <li>put
<tt>upload_tmp_dir = /tmp/php
</tt> in php.ini
</li>
1086 <li>restart Apache
</li>
1090 <b>I'm having troubles when uploading files. In general file uploads don't
1091 work on my system and uploaded files have a
<tt>Content-Type:
</tt> header
1092 in the first line.
</b>
1094 It's not really phpMyAdmin related but RedHat
7.0. You have a RedHat
7.0
1095 and you updated your php rpm to php-
4.0.4pl1-
3.i386.rpm, didn't you?
1097 So the problem is that this package has a serious bug that was corrected
1098 ages ago in php (
2001-
01-
28: see
1099 <a href=
"http://www.php.net/bugs.php?id=8966">php's bug tracking system
</a>
1100 for more details). The problem is that the bugged package is still
1101 available though it was corrected (see
1102 <a href=
"http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=24933">redhat's bugzilla
</a>
1106 <a href=
"http://www.redhat.com/swr/i386/php-4.0.4pl1-9.i386.html">the fixed package (
4.0.4pl1-
9)
</a>
1107 and the problem should go away.
1109 And that fixes the \r\n problem with file uploads!
1113 <b>I'm having troubles when uploading files with phpMyAdmin running on a
1114 secure server. My browser is Internet Explorer and I'm using the Apache
1117 As suggested by
"Rob M
" in the phpWizard forum, add this line to
1118 your
<i>httpd.conf
</i>:
<br />
1119 <tt>SetEnvIf User-Agent
".*MSIE.*" nokeepalive ssl-unclean-shutdown
</tt><br />
1120 It seems to clear up many problems between IE and SSL.
1124 <b>I get an 'open_basedir restriction' while uploading a file from the
1127 Since version
2.2.4, phpMyAdmin supports servers with open_basedir
1128 restrictions. Assuming that the restriction allows you to open files in the
1129 current directory ('.'), all you have to do is create a 'tmp' directory
1130 under the phpMyAdmin install directory, with permissions
777 and the same
1131 owner as the owner of your phpMyAdmin directory. The uploaded files will
1132 be moved there, and after execution of your SQL commands, removed.
1136 <b>I have lost my MySQL root password, what can I do?
</b>
1138 The MySql manual explains how to
1139 <a href=
"http://www.mysql.com/doc/R/e/Resetting_permissions.html">
1140 reset the permissions
</a>.
1144 <b>I get an error 'No SQL query' when trying to execute a bookmark.
</b>
1146 If PHP does not have read/write access to its
<tt>upload_tmp_dir
</tt>, it
1147 cannot access the uploaded query.
1151 <b>I get an error 'No SQL query' when trying to submit a query from the
1152 convenient text area.
</b>
1154 Check the
<tt>post_max_size
</tt> directive from your php configuration file
1155 and try to increase it.
1159 <b>I have problems with
<i>mysql.user
</i> field names.
</b>
1161 In older MySQL versions, the
<tt>User
</tt> and
<tt>Password
</tt> fields
1162 were named
<tt>user
</tt> and
<tt>password
</tt>. Please modify your field
1163 names to align with current standards.
1166 <b>I cannot upload big dump files.
</b>
1168 The first things to check (or ask your host provider to check) are the
1169 values of
<tt>upload_max_filesize
</tt>,
<tt>memory_limit
</tt> and
1170 <tt>post_max_size
</tt> in the
<i>php.ini
</i> configuration file.
1172 All of these three settings limit the maximum size of data that can be
1173 submitted and handled by php.
1177 <b>Does phpMyAdmin support MySQL
4?
</b>
1179 MySQL
4 is not yet fully supported by phpMyAdmin.
<br />
1180 Because of MySQL
4's backwards compatibility you can use phpMyAdmin
1181 for administering MySQL
4 servers, but phpMyAdmin does not yet
1182 support its new features. Please notice that in this case it is recommended
1183 to use php
>=
4.1 since older versions of php are not
1184 compatible to MySQL
4.
<br />
1185 Furthermore, several users reported problems with phpMyAdmin related to
1186 bugs in MySQL
4.
<font color=
"#bb0000">MySQL
4 is still an alpha
1187 release and should be used for test purposes only!
</font>
1191 <b>I'm running MySQL
4.0.1 on a Windows
NT machine. Each time I
1192 create a table the table name is changed to lowercase.
</b>
1194 This seems to be a bug of MySQL
4.0.1 because it also appears when
1195 using the MySQL commandline. Currently we only know about its appearance on
1196 Windows
NT systems, but it is possible that it appears on other
1198 If you encounter this bug together with another OS and/or MySQL version or
1199 you know how to work around it, please post a message into
1200 <a href=
"https://sourceforge.net/tracker/index.php?func=detail&aid=540671&group_id=23067&atid=377408"
1201 target=
"_blank">our bug tracker
</a> at SourceForge.
1205 <a name=
"faqconfig"></a>
1206 <h3>[Configuration]
</h3>
1209 <b>The error message
"Warning: Cannot add header information - headers
1210 already sent by ...
" is displayed, what's the problem?
</b>
1212 Edit your
<i>config.inc.php or .php3
</i> file and ensure there is nothing
1213 (ie no blank lines, no spaces, no characters...) neither before the
1214 <tt><?php
</tt> tag at the beginning, neither after the
<tt>?
></tt>
1219 <b>phpMyAdmin can't connect to MySQL. What's wrong?
</b>
1221 Either there is an error with your PHP setup or your username/password is
1222 wrong. Try to make a small script which uses mysql_connect and see if it
1223 works. If it doesn't, it may be you haven't even compiled MySQL support
1228 <b>The error message
"Warning: MySQL Connection Failed: Can't connect
1229 to local MySQL server through socket '/tmp/mysql.sock' (
111)...
") is
1230 displayed. What can I do?
</b>
1232 For RedHat users, Harald Legner suggests this on the mailing list:
1234 On my RedHat-Box the socket of mysql is
<i>/var/lib/mysql/mysql.sock
</i>.
1235 In your php.ini you will find a line
1237 <tt>mysql.default_socket = /tmp/mysql.sock
</tt>
1241 <tt>mysql.default_socket = /var/lib/mysql/mysql.sock
</tt>
1243 Then restart apache and it will work.
1245 Here is a fix suggested by Brad Ummer in the
1246 <a class=
"navigation" href=
"http://www.phpwizard.net/phorum/list.php?f=1" target=
"_blank">
1247 phpwizard forum
</a>:
1251 First, you need to determine what socket is being used by MySQL.
1253 To do this, telnet to your server and go to the MySQL bin directory. In
1254 this directory there should be a file named
<i>mysqladmin
</i>. Type
1255 <tt>./mysqladmin variables
</tt>, and this should give you a bunch of
1256 info about your MySQL server, including the socket
1257 (
<i>/tmp/mysql.sock
</i>, for example).
1260 Then, you need to tell PHP to use this socket.
<br />Assuming you are
1261 using PHP
3.0.10 or better, you can specify the socket to use when you
1262 open the connection. To do this in phpMyAdmin, you need to complete the
1263 socket information in the config.inc.php3.
<br />
1265 <tt>$cfgServers[$i]['socket']
=
'/tmp/mysql.sock';
</tt>
1269 Have also a look at the
1270 <a class=
"navigation" href=
"http://www.mysql.com/doc/C/a/Can_not_connect_to_server.html" target=
"_blank">
1271 corresponding section of the MySQL documentation
</a>.
1275 <b>Nothing is displayed by my browser when I try to run phpMyAdmin, what
1278 Try to set the
<tt>$cfgOBGZip
</tt> directive to
<tt>FALSE
</tt> in the
1279 phpMyAdmin configuration file. It helps sometime.
<br />
1280 Also have a look at your php version number: if it contains
1281 "4.0b...
" it means you're running a beta version of PHP. That's
1282 not a so good idea, please upgrade to a plain revision.
1286 <b>Each time I want to insert or change a record or drop a database or a
1287 table, an error
404 (page not found) is displayed or, with http or
1288 cookie authentication, I'm asked to login again. What's wrong?
</b>
1290 Check the value you set for the
<tt>$cfgPmaAbsoluteUri
</tt> directive in
1291 the phpMyAdmin configuration file.
1294 <a name=
"faqlimitations"></a>
1295 <h3>[Known limitations]
</h3>
1296 <a name=
"login_bug"></a>
1298 <b>When using http authentication, an user who logged out can not relog
1299 in with the same nick.
</b>
1301 This is related to the authentication mechanism (protocol) used by
1302 phpMyAdmin. We plan to change it as soon as we may find enough free time
1303 to do it, but you can bypass this problem: just close all the opened
1304 browser windows and then go back to phpMyAdmin. You should be able to
1309 <b>When dumping a large table in compressed mode, I get a memory limit
1310 error or a time limit error.
</b>
1312 As of version
2.2.4, we build the compressed dump in memory, so large
1313 tables dumps may hang. The only alternative we can think about (using
1314 system calls to mysqldump then gzip or bzip2) would not be applicable in
1315 environments where PHP is in safe mode: access to system programs is
1316 is limited by the system administrator, and time limit is enforced.
1319 <a name=
"faqmultiuser"></a>
1320 <h3>[ISPs, multi-user installations ]
</h3>
1322 <b>I'm an ISP. Can I setup one central copy of phpMyAdmin or do I need to
1323 install it for each customer?
</b>
1325 Since version
2.0.3, you can setup a central copy of phpMyAdmin for all
1326 your users. The development of this feature was kindly sponsored by
1328 This requires a properly setup MySQL user management and phpMyAdmin
1329 http authentication. See the install section on
1330 "Using http authentication
".
1334 <b>What's the preferred way of making phpMyAdmin secure against evil
1337 This depends on your system.
<br />
1338 If you're running a server which cannot be accessed by other people, it's
1339 sufficient to use the directory protection bundled with your webserver
1340 (with Apache you can use
<i>.htaccess
</i> files, for example).
<br />
1341 If other people have telnet access to your server, you should use
1342 phpMyAdmin's http authentication feature.
1348 Your
<i>config.inc.php3
</i> file should be
<tt>chmod
660</tt>.
1351 All your phpMyAdmin files should be chown phpmy.apache, where phpmy
1352 is a user whose password is only known to you, and apache is the
1353 group under which Apache runs.
1356 You should use PHP safe mode, to protect from other users that try
1357 to include your
<i>config.inc.php3
</i> in their scripts.
1362 <b>I get errors about not being able to include a file in
<i>/lang
</i>
1363 or in
<i>/libraries
</i>.
</b>
1365 Check
<i>php.ini
</i>, or ask your sysadmin to check it. The
1366 <tt>include_path
</tt> must contain
".
" somewhere in it, and
1367 <tt>open_basedir
</tt>, if used, must contain
".
" and
1368 "./lang
" to allow normal operation of phpMyAdmin.
1371 <b>phpMyAdmin always gives
"Access denied
" when using http
1372 authentication.
</b><br />
1373 This could happen for several reasons:
1377 <tt>$cfgServers[$i]['controluser']
</tt> and/or
1378 <tt>$cfgServers[$i]['controlpass']
</tt> are wrong.
1381 The username/password you specify in the login-dialog are invalid.
1384 You have already setup a security mechanism for the
1385 phpMyAdmin-directory, eg. a .htaccess file. This would interfere with
1386 phpMyAdmin's authentication, so remove it.
1391 <b>Is it possible to let users create their own databases?
</b>
1393 Starting with
2.2.5, in the user management page, you can enter a wildcard
1394 database name for a user, and put the privileges you want. For example,
1395 adding
<tt>SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER
</tt>
1396 would let a user create/manage his/her database(s).
1399 <a name=
"faqbrowsers"></a>
1400 <h3>[Browsers or client OS]
</h3>
1402 <b>I get an out of memory error, and my controls are non-functional, when
1403 trying to create a table with more than
14 fields.
</b>
1405 We could reproduce this problem only under Win98/
98SE. Testing under
1406 WinNT4 or Win2K, we could easily create more than
60 fields.
1408 A workaround is to create a smaller number of fields, then come back to
1409 your table properties and add the other fields.
1413 <b>With Xitami
2.5b4, phpMyAdmin won't process form fields.
</b>
1415 This is not a phpMyAdmin problem but a Xitami known bug: you'll face it
1416 with each script/website that use forms.
<br />
1417 Upgrade or downgrade your Xitami server.
1421 <b>I have problems dumping tables with Konqueror (phpMyAdmin
2.2.2)
</b>
1423 With Konqueror
2.1.1: plain dumps, zip and gzip dumps work ok, except that
1424 the proposed file name for the dump is always 'tbl_dump.php'. Bzip2 dumps
1425 don't seem to work.
<br />
1427 With Konqueror
2.2.1: plain dumps work; zip dumps are placed into
1428 the user's temporary directory, so they must be moved before closing
1429 Konqueror, or else they disappear. Gzip dumps give an error message.
<br />
1431 Testing needs to be done for Konqueror
2.2.2.
<br />
1435 <b>I can't use the cookie authentication mode because Internet Explorer
1436 never stores the cookies.
</b>
1438 MS Internet Explorer seems to be really buggy about cookies, at least till
1439 version
6. And thanks to Andrew Zivolup we've traced also a php
4.1.1 bug
1442 Then, If you're running php
4.1.1, try to upgrade or downgrade... it may
1447 <b>In Internet Explorer
5.0, I get Javascript errors when browsing my
1450 Upgrade to at least Internet Explorer
5.5SP2.
<br />
1454 <b>In Internet Explorer
5.0,
5.5 or
6.0, I get an error when trying to
1455 modify a row in a table with many fields, or with a text field.
</b>
1457 Your table neither have a primary key nor an unique one, so we must use a
1458 long URL to identify this row. There is a limit on the lenght of the URL in
1459 those browsers, and this not happen in Netscape, for example. The
1460 workaround is to create a primary or unique key, or use another browser.
1465 <b>I refresh (reload) my browser, and come back to the welcome page.
</b>
1467 Some browsers support right-clicking into the frame you want to refresh,
1468 just do this in the right frame.
<br />
1472 <b>With Mozilla
0.9.7 I have problems sending a query modified in the query
1475 Looks like a Mozilla bug:
0.9.6 was ok. We will keep an eye on future
1476 Mozilla versions.
<br />
1480 <a name=
"faqusing"></a>
1481 <h3>[Using phpMyAdmin]
</h3>
1483 <b>I can't insert new rows into a table - MySQL brings up a SQL-error.
</b>
1485 Examine the SQL error with care. I've found that many programmers
1486 specifying a wrong field-type.
<br />
1487 Common errors include:
1490 <li>Using
<tt>VARCHAR
</tt> without a size argument
</li>
1491 <li>Using
<tt>TEXT or
</tt> BLOB with a size argument
</li>
1494 Also, look at the syntax chapter in the MySQL manual to confirm that your
1498 <b>When I create a table, I click the Index checkbox for
2 fields and
1499 phpMyAdmin generates only one index with those
2 fields.
</b>
1501 In phpMyAdmin
2.2.0 and
2.2.1, this is the way to create a multi-fields
1502 index. If you want two indexes, create the first one when creating the
1503 table, save, then display the table properties and click the Index link to
1504 create the other index.
1508 <b>How can I insert a null value into my table?
</b>
1510 Since version
2.2.3, you have a checkbox for each field that can be null.
1511 Before
2.2.3, you had to enter
"null
", without the quotes, as the
1516 <b>How can I backup my database or table?
</b>
1518 Click on a database or table name in the left frame, the properties will be
1519 displayed. Then go to the Dump section, you can dump the structure, the
1520 data, or both. This will generate standard SQL statements that can be used
1521 to recreate your database/table.
1523 You will need to choose
"Save as file
", so that phpMyAdmin can
1524 transmit the resulting dump to your station. Depending on your PHP
1525 configuration, you will see options to compress the dump. See also the
1526 <tt>$cfgExecTimeLimit
</tt> configuration variable.
1528 For additional help on this subject, look for the word
"dump
" in
1533 <b>How can I restore (upload) my database or table using a dump?
</b>
1535 Click on a database name in the left frame, the properties will be
1536 displayed. Then in the
"Run SQL query
" section, type in your local
1537 dump filename, or use the Browse button. Then click Go.
1539 For additional help on this subject, look for the word
"upload
" in
1543 <a name=
"faqproject"></a>
1544 <h3>[phpMyAdmin project]
</h3>
1546 <b>I have found a bug. How do I inform developers?
</b>
1548 Our Bug Tracker is located at
<a href=
"http://sourceforge.net/projects/phpmyadmin/">
1549 http://sourceforge.net/projects/phpmyadmin/
</a> under the Bugs section.
1551 But please first discuss your bug with other users:
1553 <a href=
"http://sourceforge.net/projects/phpmyadmin/">
1554 http://sourceforge.net/projects/phpmyadmin/
</a> (and choose Forums)
1558 <b>I want to translate the messages to a new language or upgrade an
1559 existing language, where do I start?
</b>
1561 Always use the current cvs version of your language file.
1562 For a new language, start from english.inc.php3. If you don't know how to
1563 get the cvs version, please ask one of the developers.
1565 You can then put your translations, as a zip file to avoid losing special
1566 characters, on the sourceforge.net translation tracker.
1568 It would be a good idea to subscribe to the phpmyadmin-translators mailing
1569 list, because this is where we ask for translations of new messages.
1574 <b>I would like to help out with the development of phpMyAdmin. How should
1577 The following method is preferred for new developers:
1581 fetch the current CVS tree over anonymous CVS:
<br />
1582 <tt>cvs -d:pserver:anonymous@cvs.phpmyadmin.sourceforge.net:/cvsroot/phpmyadmin login
</tt><br />
1583 [Password: simply press the Enter key]
<br />
1584 <tt>cvs -z3 -d:pserver:anonymous@cvs.phpmyadmin.sourceforge.net:/cvsroot/phpmyadmin checkout phpMyAdmin
</tt><br />
1585 [This will create a new sub-directory named phpMyAdmin]
1591 put the modified files (tar'ed and gzip'ed) inside the patch tracker of
1593 <a class=
"navigation" href=
"https://sourceforge.net/projects/phpmyadmin/" target=
"_blank">phpMyAdmin SourceForge account
</a>.
1597 Write access to the CVS tree is granted only to experienced developers who
1598 have already contributed something useful to phpMyAdmin.
<br />
1599 Also, have a look at the
<a class=
"navigation" href=
"#developers">Developers section
</a>.
1605 <a name=
"developers"></a><br />
1606 <hr noshade=
"noshade" width=
"100%" />
1608 <a class=
"navigation2" href=
"#top">Top
</a> -
1609 <a class=
"navigation2" href=
"#require">Requirements
</a> -
1610 <a class=
"navigation2" href=
"#intro">Introduction
</a> -
1611 <a class=
"navigation2" href=
"#setup">Installation
</a> -
1612 <a class=
"navigation2" href=
"#config">Configuration
</a> -
1613 <a class=
"navigation2" href=
"#faq">FAQ
</a> -
1614 <a class=
"navigation2" href=
"#developers">Developers
</a> -
1615 <a class=
"navigation2" href=
"#credits">Credits
</a>
1617 <hr noshade=
"noshade" width=
"100%" />
1619 <h2>Developers Information
</h2>
1622 phpMyAdmin is Open Source, so you're invited to contribute to it. Many
1623 great features have been written by other people and you too can help to
1624 make phpMyAdmin a useful tool.
1628 If you're planning to contribute source, please read the following
1633 All files include
<i>header.inc.php3
</i> (layout),
1634 <i>libraries/common.lib.php3
</i> (common functions) and
1635 <i>config.inc.php3
</i>.
1637 All configuration data belongs in
<i>config.inc.php3
</i>. Please keep
1638 it free from other code.
1640 Commonly used functions should be added to
1641 <i>libraries/common.lib.php3
</i> and more specific ones may be added
1642 within a library stored into the
<i>libraries
</i> sub-directory.
1645 Obviously, you're free to use whatever coding style you want. But
1646 please try to keep your code as simple as possible: beginners are
1647 using phpMyAdmin as an example application.
<br />
1648 As far as possible, we want the scripts to be XHTML1.0 and CSS2
1649 compliant on one hand, they fit
1650 <a class=
"navigation" href=
"http://pear.php.net/" target=
"_blank">PEAR coding standards
</a>
1651 on the other hand. Please pay attention to this.
1654 Please try to keep up the file-naming conventions. Table-related stuff
1655 goes to
<i>tbl_*.php3
</i>, db-related code to
<i>db_*.php3
</i> and so
1659 Please don't use verbose strings in your code, instead add the string
1660 (at least) to
<i>english.inc.php3
</i> and print() it out.
1663 If you want to be really helpful, write an entry for the ChangeLog.
1668 IMPORTANT: With
1.4.1, development has switched to CVS. The following
1669 method is preferred for new developers:
1673 fetch the current CVS tree over anonymous CVS:
<br />
1674 <tt>cvs -d:pserver:anonymous@cvs.phpmyadmin.sourceforge.net:/cvsroot/phpmyadmin login
</tt><br />
1675 [Password: simply press the Enter key]
<br />
1676 <tt>cvs -z3 -d:pserver:anonymous@cvs.phpmyadmin.sourceforge.net:/cvsroot/phpmyadmin checkout phpMyAdmin
</tt><br />
1677 [This will create a new sub-directory named phpMyAdmin]
1683 put the modified files (tar'ed and gzip'ed) inside the patch tracker
1684 of the phpMyAdmin SourceForge account
1685 (
<a class=
"navigation" href=
"http://sourceforge.net/projects/phpmyadmin/" target=
"_blank">http://sourceforge.net/projects/phpmyadmin/
</a>)
1689 Write access to the CVS tree is granted only to developers who have already
1690 contributed something useful to phpMyAdmin. If you're interested in that,
1691 please contact us using the phpmyadmin-devel mailing list.
1696 <a name=
"credits"></a><br />
1697 <hr noshade=
"noshade" width=
"100%" />
1699 <a class=
"navigation2" href=
"#top">Top
</a> -
1700 <a class=
"navigation2" href=
"#require">Requirements
</a> -
1701 <a class=
"navigation2" href=
"#intro">Introduction
</a> -
1702 <a class=
"navigation2" href=
"#setup">Installation
</a> -
1703 <a class=
"navigation2" href=
"#config">Configuration
</a> -
1704 <a class=
"navigation2" href=
"#faq">FAQ
</a> -
1705 <a class=
"navigation2" href=
"#developers">Developers
</a> -
1706 <a class=
"navigation2" href=
"#credits">Credits
</a>
1708 <hr noshade=
"noshade" width=
"100%" />
1714 phpMyAdmin - Credits
1715 ====================
1717 CREDITS, in chronological order
1718 -------------------------------
1720 [tr] - Tobias Ratschiller
<tobias_at_phpwizard.net
>
1721 * creator of the phpmyadmin project
1722 * maintainer from
1998 to summer
2000
1724 [md] - Marc Delisle
<DelislMa_at_CollegeSherbrooke.qc.ca
>
1725 * multi-language version
1726 * various fixes and improvements
1728 [om] - Olivier Müller
<om_at_omnis.ch
>
1729 * started SourceForge phpMyAdmin project in March
2001
1730 * sync'ed different existing CVS trees with new features and bugfixes
1731 * multi-language improvements, dynamic language selection
1732 * current project maintainer, with Marc and Loic
1734 [lc] - Loïc Chapeaux
<lolo_at_phpheaven.net
>
1735 * rewrote and optimized javascript, DHTML and DOM stuff
1736 * rewrote the scripts so they fit the PEAR coding standards and
1737 generate XHTML1.0 and CSS2 compliant codes
1738 * improved the language detection system
1739 * many bugfixes and improvements
1741 [rj] - Robin Johnson
<robbat2_at_users.sourceforge.net
>
1742 * database maintence controls
1745 [af] - Armel Fauveau
<armel.fauveau_at_globalis-ms.com
>
1747 * multiple dump feature
1751 [gl] - Geert Lund
<glund_at_silversoft.dk
>
1753 * moderator of the phpMyAdmin users forum at phpwizard.net
1755 [kc] - Korakot Chaovavanich
<korakot_at_iname.com
>
1756 *
"insert as new row
" feature
1758 [pk] - Pete Kelly
<webmaster_at_trafficg.com
>
1759 * rewrote and fix dump code
1762 [sa] - Steve Alberty
<alberty_at_neptunlabs.de
>
1763 * rewrote dump code for PHP4
1764 * mySQL table statistics
1767 [bg] - Benjamin Gandon
<gandon_at_isia.cma.fr
>
1768 * main author of the version
2.1.0.1
1771 [at] - Alexander M. Turek
<rabus_at_bugfixes.info
>
1772 * various small features and fixes
1773 * German language file updates
1776 Thanks to those guy who send us some major improvements to merge into the
1777 code since version
2.1.0:
1778 - Michal Cihar
<nijel at users.sourceforge.net
> who implemented the
1779 enhanced index creation/display feature.
1780 - Christophe Gesché from the
"MySQL Form Generator for PHPMyAdmin"
1781 (http://sourceforge.net/projects/phpmysqlformgen/) who suggested the patch
1782 for multiple table printviews.
1783 - Garvin Hicking
<hicking at faktor-e.de
> who builds the patch for
1784 vertical display of table rows.
1785 - Yukihiro Kawada
<kawada at den.fujifilm.co.jp
> for the japanese kanji
1786 encoding conversion feature.
1787 - Piotr Roszatycki
<d3xter at users.sourceforge.net
> and Dan Wilson, for
1788 the Cookie authentication mode.
1789 - Axel Sander
<n8falke at users.sourceforge.net
> for the table
1790 relation-links feature.
1792 And also to the following people who have contributed minor changes,
1793 enhancements, bugfixes or support for a new language since version
2.1.0:
1794 Bora Alioglu, Ricardo ?, Sven-Erik Andersen, Alessandro Astarita,
1795 Péter Bakondy, Borges Botelho, Olivier Bussier, Neil Darlow,
1796 Kristof Hamann, Thomas Kläger, Lubos Klokner, Martin Marconcini,
1797 Girish Nair, David Nordenberg, Bernard M. Piller, Laurent Haas,
1798 "Sakamoto
", Yuval Sarna, www.securereality.com.au,
1799 Alvar Soome, Siu Sun, Peter Svec, Michael Tacelosky, Rachim Tamsjadi,
1800 Luís V., Martijn W. van der Lee, Algis Vainauskas, Daniel Villanueva, Vinay,
1801 Ignacio Vazquez-Abrams, Chee Wai, Jakub Wilk, Thomas Michael Winningham.
1804 Original Credits of Version
2.1.0
1805 ---------------------------------
1807 This work is based on Peter Kuppelwieser's MySQL-Webadmin. It was his idea
1808 to create a web-based interface to MySQL using PHP3. Although I have not
1809 used any of his source-code, there are some concepts I've borrowed from
1810 him. phpMyAdmin was created because Peter told me he wasn't going to
1811 further develop his (great) tool.
1813 - Amalesh Kempf
<ak-lsml_at_living-source.com
> who contributed the
1814 code for the check when dropping a table or database. He also suggested
1815 that you should be able to specify the primary key on tbl_create.php3. To
1816 version
1.1.1 he contributed the ldi_*.php3-set (Import text-files) as
1817 well as a bug-report. Plus many smaller improvements.
1818 - Jan Legenhausen
<jan_at_nrw.net
>: He made many of the changes that
1819 were introduced in
1.3.0 (including quite significant ones like the
1820 authentication). For
1.4.1 he enhanced the table-dump feature. Plus
1822 - Marc Delisle
<DelislMa_at_CollegeSherbrooke.qc.ca
> made phpMyAdmin
1823 language-independent by outsourcing the strings to a separate file. He
1824 also contributed the French translation.
1825 - Alexandr Bravo
<abravo_at_hq.admiral.ru
> who contributed
1826 tbl_select.php3, a feature to display only some fields from a table.
1827 - Chris Jackson
<chrisj_at_ctel.net
> added support for MySQL
1828 functions in tbl_change.php3. He also added the
1829 "Query by Example
" feature in
2.0.
1830 - Dave Walton
<walton_at_nordicdms.com
> added support for multiple
1831 servers and is a regular contributor for bug-fixes.
1832 - Gabriel Ash
<ga244_at_is8.nyu.edu
> contributed the random access
1834 The following people have contributed minor changes, enhancements, bugfixes
1835 or support for a new language:
1836 Jim Kraai, Jordi Bruguera, Miquel Obrador, Geert Lund, Thomas Kleemann,
1837 Alexander Leidinger, Kiko Albiol, Daniel C. Chao, Pavel Piankov,
1838 Sascha Kettler, Joe Pruett, Renato Lins, Mark Kronsbein, Jannis Hermanns,
1841 And thanks to everyone else who sent me email with suggestions, bug-reports
1842 and or just some feedback.
1847 <a name=
"bottom"></a><br />
1848 <hr noshade=
"noshade" width=
"100%" />
1850 <a class=
"navigation2" href=
"#top">Top
</a> -
1851 <a class=
"navigation2" href=
"#require">Requirements
</a> -
1852 <a class=
"navigation2" href=
"#intro">Introduction
</a> -
1853 <a class=
"navigation2" href=
"#setup">Installation
</a> -
1854 <a class=
"navigation2" href=
"#config">Configuration
</a> -
1855 <a class=
"navigation2" href=
"#faq">FAQ
</a> -
1856 <a class=
"navigation2" href=
"#developers">Developers
</a> -
1857 <a class=
"navigation2" href=
"#credits">Credits
</a>
1859 <hr noshade=
"noshade" width=
"100%" />
1862 <a href=
"http://validator.w3.org/check/referer" target=
"w3c">
1863 <img src=
"http://www.w3.org/Icons/valid-xhtml10" alt=
"Valid XHTML 1.0!" border=
"0" height=
"31" width=
"88" /></a>
1864
1865 <a href=
"http://jigsaw.w3.org/css-validator/" target=
"w3c">
1866 <img src=
"http://www.w3.org/Icons/valid-css" alt=
"Valid CSS!" border=
"0" width=
"88" height=
"31" /></a>