coding standards and xhtml fixes
This commit is contained in:
@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
|
|||||||
$Id$
|
$Id$
|
||||||
$Source$
|
$Source$
|
||||||
|
|
||||||
|
2002-07-01 Lo<4C>c Chapeaux <lolo@phpheaven.net>
|
||||||
|
* Documentation.html: coding standards and xhtml fixes.
|
||||||
|
|
||||||
2002-07-01 Alexander M. Turek <rabus@users.sourceforge.net>
|
2002-07-01 Alexander M. Turek <rabus@users.sourceforge.net>
|
||||||
* libraries/common.lib.php3, libraries/config_import.lib.php3: Backwards
|
* libraries/common.lib.php3, libraries/config_import.lib.php3: Backwards
|
||||||
compatibility for $cfg['PmaAbsoluteUri_DisableWarning'].
|
compatibility for $cfg['PmaAbsoluteUri_DisableWarning'].
|
||||||
|
@@ -163,7 +163,7 @@
|
|||||||
<li>export (*) and import data to CSV values</li>
|
<li>export (*) and import data to CSV values</li>
|
||||||
<li>administer multiple servers and single databases</li>
|
<li>administer multiple servers and single databases</li>
|
||||||
<li>check referential integrity</li>
|
<li>check referential integrity</li>
|
||||||
<li>create complex Queries automatically connecting required tables</li>
|
<li>create complex queries automatically connecting required tables</li>
|
||||||
<li>create PDF graphics of your Database layout</li>
|
<li>create PDF graphics of your Database layout</li>
|
||||||
<li>
|
<li>
|
||||||
communicate in more than
|
communicate in more than
|
||||||
@@ -305,8 +305,8 @@
|
|||||||
<td> </td>
|
<td> </td>
|
||||||
<td>
|
<td>
|
||||||
<tt>GRANT SELECT, INSERT, UPDATE, DELETE ON <pma_db> TO 'pma'@'localhost';</tt>
|
<tt>GRANT SELECT, INSERT, UPDATE, DELETE ON <pma_db> TO 'pma'@'localhost';</tt>
|
||||||
(this of course requires you to have a special DB for phpMyAdmin, the contents
|
(this of course requires you to have a special DB for
|
||||||
will be explained later)
|
phpMyAdmin, the contents will be explained later)
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
@@ -414,6 +414,7 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
|
|||||||
Please note that the <tt>$_SERVER</tt> array doesn't exist in
|
Please note that the <tt>$_SERVER</tt> array doesn't exist in
|
||||||
PHP < 4.1.0. Try to replace <tt>$_SERVER</tt> by
|
PHP < 4.1.0. Try to replace <tt>$_SERVER</tt> by
|
||||||
<tt>$HTTP_SERVER_VARS</tt> or <tt>$GLOBALS</tt> in this case.
|
<tt>$HTTP_SERVER_VARS</tt> or <tt>$GLOBALS</tt> in this case.
|
||||||
|
<br /><br />
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dt><b>$cfg['Servers']</b> array</dt>
|
<dt><b>$cfg['Servers']</b> array</dt>
|
||||||
@@ -555,33 +556,35 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
|
|||||||
|
|
||||||
<dt><b>$cfg['Servers'][$i]['pmadb']</b> string</dt>
|
<dt><b>$cfg['Servers'][$i]['pmadb']</b> string</dt>
|
||||||
<dd>
|
<dd>
|
||||||
Starting with Version 2.3.0 phpMyAdmin offers a lot of Features
|
Starting with version 2.3.0 phpMyAdmin offers a lot of features
|
||||||
to work with Master / Foreign - Tables. To use those as well as
|
to work with master / foreign - tables. To use those as well as
|
||||||
the bookmark feature you will need to create a new db.<br />
|
the bookmark feature you will need to create a new db.
|
||||||
|
<br /><br />
|
||||||
|
|
||||||
To use this functionality as superuser create a new database:
|
To use this functionality as superuser create a new database:
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
create a new database for phpmyadmin:
|
create a new database for phpmyadmin:<br />
|
||||||
|
<tt> CREATE DATABASE phpmyadmin;</tt><br />
|
||||||
|
Note that "controluser" must have
|
||||||
|
<tt>SELECT, INSERT</tt> and <tt>DELETE</tt> privileges on the
|
||||||
|
bookmark table. Here is a query to set up those privileges
|
||||||
|
(using "pma" as the controluser):<br />
|
||||||
<tt>
|
<tt>
|
||||||
CREATE database phpmyadmin;
|
GRANT SELECT,INSERT,DELETE ON <pmadb> to 'pma'@localhost;
|
||||||
</tt>
|
</tt><br />
|
||||||
Note that controluser must have SELECT, INSERT and DELETE
|
do <b>not</b> give any other user rights on this database.
|
||||||
privileges on the bookmark table. Here is a query to set up
|
|
||||||
those privileges (using "pma" as the controluser):
|
|
||||||
<tt>
|
|
||||||
GRANT SELECT,INSERT,DELETE ON <pmadb> to
|
|
||||||
'pma'@localhost;
|
|
||||||
</tt>
|
|
||||||
do <b>not</b> give any other user rights on this db.
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
Enter the databasename in <tt>$cfg['Servers'][$i]['pmadb']</tt>
|
enter the databasename in <tt>$cfg['Servers'][$i]['pmadb']</tt>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul><br />
|
||||||
</dd>
|
</dd>
|
||||||
<a name="bookmark"></a>
|
|
||||||
<dt><b>$cfg['Servers'][$i]['bookmarktable']</b> string</dt>
|
<dt>
|
||||||
|
<a name="bookmark"></a>
|
||||||
|
<b>$cfg['Servers'][$i]['bookmarktable']</b> string
|
||||||
|
</dt>
|
||||||
<dd>
|
<dd>
|
||||||
Since release 2.2.0 phpMyAdmin allows to bookmark queries. This can be
|
Since release 2.2.0 phpMyAdmin allows to bookmark queries. This can be
|
||||||
useful for queries you often run.<br /><br />
|
useful for queries you often run.<br /><br />
|
||||||
@@ -591,7 +594,7 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
|
|||||||
<li>set up a PMA database as described above</li>
|
<li>set up a PMA database as described above</li>
|
||||||
<li>within this database create a table following this scheme:<br />
|
<li>within this database create a table following this scheme:<br />
|
||||||
<tt>
|
<tt>
|
||||||
CREATE TABLE bookmark (<br />
|
CREATE TABLE `PMA_bookmark` (<br />
|
||||||
id int(11) DEFAULT '0' NOT NULL auto_increment,<br />
|
id int(11) DEFAULT '0' NOT NULL auto_increment,<br />
|
||||||
dbase varchar(255) NOT NULL,<br />
|
dbase varchar(255) NOT NULL,<br />
|
||||||
user varchar(255) NOT NULL,<br />
|
user varchar(255) NOT NULL,<br />
|
||||||
@@ -601,19 +604,19 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
|
|||||||
) TYPE=MyISAM COMMENT='Bookmarks';<br />
|
) TYPE=MyISAM COMMENT='Bookmarks';<br />
|
||||||
</tt>
|
</tt>
|
||||||
</li>
|
</li>
|
||||||
<li>Enter the tablename in <tt>$cfg['Servers'][$i]['bookmarktable']</tt></li>
|
<li>enter the tablename in <tt>$cfg['Servers'][$i]['bookmarktable']</tt></li>
|
||||||
</ul><br />
|
</ul><br />
|
||||||
|
|
||||||
Note that <tt>controluser</tt> must have <tt>SELECT</tt>,
|
Note that "controluser" must have <tt>SELECT</tt>,
|
||||||
<tt>INSERT</tt> and <tt>DELETE</tt> privileges on the bookmark table.
|
<tt>INSERT</tt> and <tt>DELETE</tt> privileges on the bookmark table.
|
||||||
Here is a query to set up those privileges (using "pma" as
|
Here is a query to set up those privileges (using "pma" as
|
||||||
the controluser and phpmyadmin as databasename:<br />
|
the controluser and phpmyadmin as databasename):<br />
|
||||||
<tt>GRANT SELECT,INSERT,DELETE ON <phpmyadmin> to 'pma'@localhost;</tt>
|
<tt> GRANT SELECT,INSERT,DELETE ON <phpmyadmin> to 'pma'@localhost;</tt>
|
||||||
<br /><br />
|
<br /><br />
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<a name="relation"></a>
|
|
||||||
<dt>
|
<dt>
|
||||||
|
<a name="relation"></a>
|
||||||
<b>$cfg['Servers'][$i]['relation']</b> string
|
<b>$cfg['Servers'][$i]['relation']</b> string
|
||||||
</dt>
|
</dt>
|
||||||
<dd>
|
<dd>
|
||||||
@@ -651,17 +654,18 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
|
|||||||
To allow the usage of this functionality the superuser has to:
|
To allow the usage of this functionality the superuser has to:
|
||||||
<ul>
|
<ul>
|
||||||
<li>set up a PMA database as described above</li>
|
<li>set up a PMA database as described above</li>
|
||||||
<li>within this database create a table following this scheme:<br />
|
<li>
|
||||||
|
within this database create a table following this scheme:<br />
|
||||||
<tt>
|
<tt>
|
||||||
CREATE TABLE `relation` (<br />
|
CREATE TABLE `PMA_relation` (<br />
|
||||||
`master_db` varchar(64) NOT NULL default '',<br />
|
`master_db` varchar(64) NOT NULL default '',<br />
|
||||||
`master_table` varchar(64) NOT NULL default '',<br />
|
`master_table` varchar(64) NOT NULL default '',<br />
|
||||||
`master_field` varchar(64) NOT NULL default '',<br />
|
`master_field` varchar(64) NOT NULL default '',<br />
|
||||||
`foreign_db` varchar(64) NOT NULL default '',<br />
|
`foreign_db` varchar(64) NOT NULL default '',<br />
|
||||||
`foreign_table` varchar(64) NOT NULL default '',<br />
|
`foreign_table` varchar(64) NOT NULL default '',<br />
|
||||||
`foreign_field` varchar(64) NOT NULL default '',<br />
|
`foreign_field` varchar(64) NOT NULL default '',<br />
|
||||||
PRIMARY KEY (`master_db`,`master_table`,`master_field`),<br />
|
PRIMARY KEY (`master_db`, `master_table`, `master_field`),<br />
|
||||||
KEY foreign_field (foreign_db,foreign_table)<br />
|
KEY foreign_field (foreign_db, foreign_table)<br />
|
||||||
) TYPE=MyISAM COMMENT='Relation table';<br />
|
) TYPE=MyISAM COMMENT='Relation table';<br />
|
||||||
</tt>
|
</tt>
|
||||||
</li>
|
</li>
|
||||||
@@ -670,17 +674,18 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
|
|||||||
<tt>$cfg['Servers'][$i]['relation']</tt>
|
<tt>$cfg['Servers'][$i]['relation']</tt>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
now as normal user open phpMyAdmin and for each table where you want to use this feature,
|
now as normal user open phpMyAdmin and for each table where you
|
||||||
click "Structure/Relation view/" and choose foreign fields.
|
want to use this feature, click "Structure/Relation view/"
|
||||||
|
and choose foreign fields.
|
||||||
</li>
|
</li>
|
||||||
</ul><br />
|
</ul><br />
|
||||||
Please note that in the current (2.3.0) version, master_db must be
|
Please note that in the current (2.3.0) version, <tt>master_db</tt>
|
||||||
the same as foreign_db. Those fields have been put in place for a
|
must be the same as <tt>foreign_db</tt>. Those fields have been put in
|
||||||
future development of the cross-db relations.<br /><br />
|
future development of the cross-db relations.<br /><br />
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<a name="table_info"></a>
|
|
||||||
<dt>
|
<dt>
|
||||||
|
<a name="table_info"></a>
|
||||||
<b>$cfg['Servers'][$i]['table_info']</b> string
|
<b>$cfg['Servers'][$i]['table_info']</b> string
|
||||||
</dt>
|
</dt>
|
||||||
<dd>
|
<dd>
|
||||||
@@ -699,7 +704,7 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
|
|||||||
`db_name` varchar(64) NOT NULL default '',<br />
|
`db_name` varchar(64) NOT NULL default '',<br />
|
||||||
`table_name` varchar(64) NOT NULL default '',<br />
|
`table_name` varchar(64) NOT NULL default '',<br />
|
||||||
`display_field` varchar(64) NOT NULL default '',<br />
|
`display_field` varchar(64) NOT NULL default '',<br />
|
||||||
PRIMARY KEY (`db_name`,`table_name`)<br />
|
PRIMARY KEY (`db_name`, `table_name`)<br />
|
||||||
) TYPE=MyISAM COMMENT='Table information for phpMyAdmin';<br />
|
) TYPE=MyISAM COMMENT='Table information for phpMyAdmin';<br />
|
||||||
</tt>
|
</tt>
|
||||||
</li>
|
</li>
|
||||||
@@ -717,48 +722,50 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
|
|||||||
<br /><br />
|
<br /><br />
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<a name="table_coords"></a>
|
|
||||||
<dt>
|
<dt>
|
||||||
|
<a name="table_coords"></a>
|
||||||
<b>$cfg['Servers'][$i]['table_coords']</b> string<br />
|
<b>$cfg['Servers'][$i]['table_coords']</b> string<br />
|
||||||
<b>$cfg['Servers'][$i]['pdf_pages']</b> string
|
<b>$cfg['Servers'][$i]['pdf_pages']</b> string
|
||||||
</dt>
|
</dt>
|
||||||
<dd>
|
<dd>
|
||||||
Since release 2.3.0 you can have phpMyAdmin create PDF Pages showing the
|
Since release 2.3.0 you can have phpMyAdmin create PDF pages showing
|
||||||
relations between your tables. To do this it needs two tables 'pdf_pages'
|
the relations between your tables. To do this it needs two tables
|
||||||
(storing information about the available pdf Pages)
|
"pdf_pages" (storing information about the available pdf
|
||||||
and 'table_coords' (storing coordinates where each table will be placed
|
pages) and "table_coords" (storing coordinates where each
|
||||||
on a PDF schema output).
|
table will be placed on a PDF schema output).
|
||||||
<br /><br />
|
<br /><br />
|
||||||
PDF output is supported under PHP4, and you must be using also the
|
You must be using the "relation" feature and have a table of
|
||||||
'relation' feature and have a table of PDF Pages (see $cfg['Servers'][$i]['pdf_pages']).
|
PDF pages (see <tt>$cfg['Servers'][$i]['pdf_pages']</tt>) to create PDF
|
||||||
Also, we used the fpdf library which currently
|
output.
|
||||||
only supports iso-8859 (Latin1) character sets in PDF.
|
|
||||||
<br /><br />
|
<br /><br />
|
||||||
To allow the usage of this functionality the superuser has to:
|
To allow the usage of this functionality the superuser has to:
|
||||||
<ul>
|
<ul>
|
||||||
<li>set up a PMA database as described above</li>
|
<li>set up a PMA database as described above</li>
|
||||||
<li>within this database create a table following this scheme:<br />
|
<li>
|
||||||
|
within this database create a table following this scheme:<br />
|
||||||
<tt>
|
<tt>
|
||||||
CREATE TABLE `table_coords` (<br />
|
CREATE TABLE `PMA_table_coords` (<br />
|
||||||
`db_name` varchar(64) NOT NULL default '',<br />
|
`db_name` varchar(64) NOT NULL default '',<br />
|
||||||
`table_name` varchar(64) NOT NULL default '',<br />
|
`table_name` varchar(64) NOT NULL default '',<br />
|
||||||
`pdf_page_number` int NOT NULL default '0',<br />
|
`pdf_page_number` int NOT NULL default '0',<br />
|
||||||
`x` float unsigned NOT NULL default '0',<br />
|
`x` float unsigned NOT NULL default '0',<br />
|
||||||
`y` float unsigned NOT NULL default '0',<br />
|
`y` float unsigned NOT NULL default '0',<br />
|
||||||
PRIMARY KEY (`db_name`,`table_name`, `pdf_page_number`)<br />
|
PRIMARY KEY (`db_name`, `table_name`, `pdf_page_number`)<br />
|
||||||
) TYPE=MyISAM COMMENT='Table coordinates for phpMyAdmin PDF output';<br />
|
) TYPE=MyISAM COMMENT='Table coordinates for phpMyAdmin PDF output';<br />
|
||||||
</tt>
|
</tt>
|
||||||
</li>
|
</li>
|
||||||
<li>also within this database create:</li>
|
<li>
|
||||||
|
also within this database create:<br />
|
||||||
<tt>
|
<tt>
|
||||||
CREATE TABLE pdf_pages (<br />
|
CREATE TABLE `PMA_pdf_pages` (<br />
|
||||||
`db_name` varchar(64) NOT NULL default '',<br />
|
`db_name` varchar(64) NOT NULL default '',<br />
|
||||||
page_nr int(10) unsigned NOT NULL auto_increment,<br />
|
`page_nr` int(10) unsigned NOT NULL auto_increment,<br />
|
||||||
page_descr varchar(50) NOT NULL default '',<br />
|
`page_descr` varchar(50) NOT NULL default '',<br />
|
||||||
PRIMARY KEY (page_nr),<br />
|
PRIMARY KEY (page_nr),<br />
|
||||||
KEY (db_name)<br />
|
KEY (db_name)<br />
|
||||||
) TYPE=MyISAM COMMENT='PDF Relationpages for PMA';<br />
|
) TYPE=MyISAM COMMENT='PDF Relationpages for PMA';<br />
|
||||||
</tt>
|
</tt>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
put the first table name in
|
put the first table name in
|
||||||
<tt>$cfg['Servers'][$i]['table_coords']</tt>
|
<tt>$cfg['Servers'][$i]['table_coords']</tt>
|
||||||
@@ -769,23 +776,26 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
|
|||||||
Usage tips: <a class="navigation" href="#faqpdf">PDF output</a>.
|
Usage tips: <a class="navigation" href="#faqpdf">PDF output</a>.
|
||||||
<br /><br />
|
<br /><br />
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dt><b>$cfg['Servers'][$i]['column_comments']</b> string</dt>
|
<dt><b>$cfg['Servers'][$i]['column_comments']</b> string</dt>
|
||||||
<dd>
|
<dd>
|
||||||
Since release 2.3.0 you can store comments to describe each column
|
Since release 2.3.0 you can store comments to describe each column
|
||||||
for each table. These will then be shown on the printview.
|
for each table. These will then be shown on the "printview".
|
||||||
|
<br />
|
||||||
To allow the usage of this functionality the superuser has to:
|
To allow the usage of this functionality the superuser has to:
|
||||||
<ul>
|
<ul>
|
||||||
<li>set up a PMA database as described above</li>
|
<li>set up a PMA database as described above</li>
|
||||||
<li>within this database create a table following this scheme:<br />
|
<li>
|
||||||
|
within this database create a table following this scheme:<br />
|
||||||
<tt>
|
<tt>
|
||||||
CREATE TABLE column_comments (<br />
|
CREATE TABLE `PMA_column_comments` (<br />
|
||||||
id int(5) unsigned NOT NULL auto_increment,<br />
|
id int(5) unsigned NOT NULL auto_increment,<br />
|
||||||
db_name varchar(64) NOT NULL default '',<br />
|
db_name varchar(64) NOT NULL default '',<br />
|
||||||
table_name varchar(64) NOT NULL default '',<br />
|
table_name varchar(64) NOT NULL default '',<br />
|
||||||
column_name varchar(64) NOT NULL default '',<br />
|
column_name varchar(64) NOT NULL default '',<br />
|
||||||
comment varchar(255) NOT NULL default '',<br />
|
comment varchar(255) NOT NULL default '',<br />
|
||||||
PRIMARY KEY (id),<br />
|
PRIMARY KEY (id),<br />
|
||||||
UNIQUE KEY db_name (db_name,table_name,column_name)<br />
|
UNIQUE KEY db_name (db_name, table_name, column_name)<br />
|
||||||
) TYPE=MyISAM COMMENT='Comments for Columns';<br />
|
) TYPE=MyISAM COMMENT='Comments for Columns';<br />
|
||||||
</tt>
|
</tt>
|
||||||
</li>
|
</li>
|
||||||
@@ -793,7 +803,7 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
|
|||||||
put the table name in
|
put the table name in
|
||||||
<tt>$cfg['Servers'][$i]['column_comments']</tt>
|
<tt>$cfg['Servers'][$i]['column_comments']</tt>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul><br />
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dt>
|
<dt>
|
||||||
@@ -966,8 +976,8 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
|
|||||||
|
|
||||||
<dt><b>$cfg['SuggestDBName']</b> boolean</dt>
|
<dt><b>$cfg['SuggestDBName']</b> boolean</dt>
|
||||||
<dd>
|
<dd>
|
||||||
Defines whether to suggest a database name on the "Create Database"
|
Defines whether to suggest a database name on the
|
||||||
form or to keep the textfield empty.
|
"Create Database" form or to keep the textfield empty.
|
||||||
<br /><br />
|
<br /><br />
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
@@ -1060,17 +1070,18 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
|
|||||||
|
|
||||||
<dt><b>$cfg['DefaultTabDatabase'] </b>string</dt>
|
<dt><b>$cfg['DefaultTabDatabase'] </b>string</dt>
|
||||||
<dd>
|
<dd>
|
||||||
Defines the Tab displayed by default on database view. Possible
|
Defines the tab displayed by default on database view. Possible
|
||||||
values: 'db_details_structure.php3', 'db_details.php3', or
|
values: "db_details_structure.php3",
|
||||||
'db_search.php3'.
|
"db_details.php3" or "db_search.php3".
|
||||||
<br /><br />
|
<br /><br />
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dt><b>$cfg['DefaultTabTable'] </b>string</dt>
|
<dt><b>$cfg['DefaultTabTable'] </b>string</dt>
|
||||||
<dd>
|
<dd>
|
||||||
Defines the Tab displayed by default on table view. Possible
|
Defines the tab displayed by default on table view. Possible
|
||||||
values: 'tbl_properties_structure.php3', 'tbl_properties.php3',
|
values: "tbl_properties_structure.php3",
|
||||||
'tbl_select.php3', 'tbl_change.php3'.
|
"tbl_properties.php3", "tbl_select.php3" or
|
||||||
|
"tbl_change.php3".
|
||||||
<br /><br />
|
<br /><br />
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
@@ -1100,9 +1111,11 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
|
|||||||
<dt><b>$cfg['DefaultCharset'] </b>string</dt>
|
<dt><b>$cfg['DefaultCharset'] </b>string</dt>
|
||||||
<dd>
|
<dd>
|
||||||
Default charset to use for recoding of MySQL queries. This must be
|
Default charset to use for recoding of MySQL queries. This must be
|
||||||
enabled and it's described by $cfg['AllowAnywhereRecoding'] option.
|
enabled and it's described by <tt>$cfg['AllowAnywhereRecoding']</tt>
|
||||||
You can give here any charset which is in $cfg['AvailableCharsets']
|
option.<br />
|
||||||
array and this is just default choice, user can select any of them.
|
You can give here any charset which is in
|
||||||
|
<tt>$cfg['AvailableCharsets']</tt> array and this is just default
|
||||||
|
choice, user can select any of them.
|
||||||
<br /><br />
|
<br /><br />
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
@@ -1239,38 +1252,52 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
|
|||||||
|
|
||||||
<dt><b>$cfg['UseSyntaxColoring'] </b>boolean</dt>
|
<dt><b>$cfg['UseSyntaxColoring'] </b>boolean</dt>
|
||||||
<dd>
|
<dd>
|
||||||
Introduced in 2.3.0 PhpMyAdmin is now able to show SQL in Syntaxcoloring.
|
Introduced in 2.3.0, phpMyAdmin is now able to show SQL in syntax
|
||||||
To use this feature set this value to TRUE (the default). If not everything
|
coloring.<br />
|
||||||
you want is colored or to influence where a newline is inserted see the
|
To use this feature set this value to <tt>TRUE</tt> (the default).
|
||||||
Configurationarrays $cfg['keywords'] and $cfg['additional']. Note:
|
If not everything you want is colored or to influence where a newline
|
||||||
for version 2.3.0, syntax coloring is non functional.
|
is inserted see the configuration arrays <tt>$cfg['keywords']</tt> and
|
||||||
|
<tt>$cfg['additional']</tt>.<br />
|
||||||
|
Note: for version 2.3.0, syntax coloring is non functional.
|
||||||
|
<br /><br />
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dt><b>$cfg['colorFunctions'] </b>string [HTML color]</dt>
|
<dt><b>$cfg['colorFunctions'] </b>string [HTML color]</dt>
|
||||||
<dd>
|
<dd>
|
||||||
If you use Syntaxcoloring then this defines the Color of
|
If you use syntax coloring then this defines the color of
|
||||||
Functionnames. e.g. all that are found in $cfg['Functions'].
|
function names. e.g. all that are found in <tt>$cfg['Functions']</tt>.
|
||||||
|
<br /><br />
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dt><b>$cfg['colorKeywords'] </b>string [HTML color]</dt>
|
<dt><b>$cfg['colorKeywords'] </b>string [HTML color]</dt>
|
||||||
<dd>
|
<dd>
|
||||||
If you use Syntaxcoloring then this defines the Color of
|
If you use syntax coloring then this defines the color of
|
||||||
Keywords. e.g. all that are found in $cfg['keywords'].
|
keywords. e.g. all that are found in <tt>$cfg['keywords']</tt>.
|
||||||
|
<br /><br />
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dt><b>$cfg['colorStrings'] </b>string [HTML color]</dt>
|
<dt><b>$cfg['colorStrings'] </b>string [HTML color]</dt>
|
||||||
<dd>
|
<dd>
|
||||||
If you use Syntaxcoloring then this defines the Color of
|
If you use syntax coloring then this defines the color of
|
||||||
Strings. e.g. all that are between ' or "
|
strings. e.g. all that are between ' or "
|
||||||
|
<br /><br />
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dt><b>$cfg['colorColType'] </b>string [HTML color]</dt>
|
<dt><b>$cfg['colorColType'] </b>string [HTML color]</dt>
|
||||||
<dd>
|
<dd>
|
||||||
If you use Syntaxcoloring then this defines the Color of
|
If you use syntax coloring then this defines the color of
|
||||||
ColumnTypes. e.g. all that are found in $cfg['ColumnTypes'].
|
column types. e.g. all that are found in <tt>$cfg['ColumnTypes']</tt>.
|
||||||
|
<br /><br />
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dt><b>$cfg['colorAdd'] </b>string [HTML color]</dt>
|
<dt><b>$cfg['colorAdd'] </b>string [HTML color]</dt>
|
||||||
<dd>
|
<dd>
|
||||||
If you use Syntaxcoloring then this defines the Color of
|
If you use syntax coloring then this defines the color of
|
||||||
additional Keywords that do not get a newline. e.g. all that
|
additional keywords that do not get a newline. e.g. all that
|
||||||
are found in $cfg['additional'].
|
are found in <tt>$cfg['additional']</tt>.
|
||||||
|
<br /><br />
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dt><b>$cfg['ColumnTypes'] </b>array</dt>
|
<dt><b>$cfg['ColumnTypes'] </b>array</dt>
|
||||||
<dd>
|
<dd>
|
||||||
All possible types of a MySQL column. In most cases you don't need to
|
All possible types of a MySQL column. In most cases you don't need to
|
||||||
@@ -1282,25 +1309,30 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
|
|||||||
<dd>
|
<dd>
|
||||||
Possible attributes for fields. In most cases you don't need to edit
|
Possible attributes for fields. In most cases you don't need to edit
|
||||||
this.
|
this.
|
||||||
|
<br /><br />
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dt><b>$cfg['Functions'] </b>array</dt>
|
<dt><b>$cfg['Functions'] </b>array</dt>
|
||||||
<dd>
|
<dd>
|
||||||
A list of functions MySQL supports. In most cases you don't need to
|
A list of functions MySQL supports. In most cases you don't need to
|
||||||
edit this.
|
edit this.
|
||||||
|
<br /><br />
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dt><b>$cfg['keywords'] </b>array</dt>
|
<dt><b>$cfg['keywords'] </b>array</dt>
|
||||||
<dd>
|
<dd>
|
||||||
A list of Keywords that is used for Syntaxcoloring. All Keywords that
|
A list of keywords that is used for syntax coloring. All keywords that
|
||||||
are in this list will also get a new line before them. Usually you won't need
|
are in this list will also get a new line before them.<br />
|
||||||
to change those.
|
Usually you won't need to change those.
|
||||||
|
<br /><br />
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dt><b>$cfg['additional'] </b>array</dt>
|
<dt><b>$cfg['additional'] </b>array</dt>
|
||||||
<dd>
|
<dd>
|
||||||
A list of additional Keywords that is used for Syntaxcoloring. All Keywords that
|
A list of additional keywords that is used for syntax coloring. All
|
||||||
are in this list will <b>not</b> get a new line before them. Usually you won't need
|
keywords that are in this list will <b>not</b> get a new line before
|
||||||
to change those.
|
them.<br />
|
||||||
|
Usually you won't need to change those.
|
||||||
<br /><br />
|
<br /><br />
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
@@ -1329,7 +1361,7 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
|
|||||||
<a class="navigation" href="#faqbrowsers">Browsers</a> -
|
<a class="navigation" href="#faqbrowsers">Browsers</a> -
|
||||||
<a class="navigation" href="#faqusing">Usage tips</a> -
|
<a class="navigation" href="#faqusing">Usage tips</a> -
|
||||||
<a class="navigation" href="#faqproject">Project</a> -
|
<a class="navigation" href="#faqproject">Project</a> -
|
||||||
<a class="navigation" href="#faqsyntaxcoloring">Syntax Coloring</a>
|
<a class="navigation" href="#faqsyntaxcoloring">Syntax coloring</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1879,8 +1911,8 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
|
|||||||
CSV exported file.</b>
|
CSV exported file.</b>
|
||||||
<br />
|
<br />
|
||||||
This is a known Netscape 4.75 bug: it adds some line feeds when exporting
|
This is a known Netscape 4.75 bug: it adds some line feeds when exporting
|
||||||
data in octet-stream mode. Since we can't detect the specific Netscape
|
data in octet-stream mode. Since we can't detect the specific Netscape
|
||||||
version, we cannot workaround this bug.
|
version, we cannot workaround this bug.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<a name="faqusing"></a>
|
<a name="faqusing"></a>
|
||||||
@@ -1949,10 +1981,10 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
|
|||||||
<p>
|
<p>
|
||||||
<b>How can I use the relation table in Query-by-example?</b>
|
<b>How can I use the relation table in Query-by-example?</b>
|
||||||
<br />
|
<br />
|
||||||
Here is an example with the tables persons, towns and countries, all
|
Here is an example with the tables persons, towns and countries, all
|
||||||
located in the database mydb. If you
|
located in the database mydb. If you don't have a <tt>PMA_relation</tt>
|
||||||
don't have a PMA_relation table, create it as explained in the
|
table, create it as explained in the configuration section. Then create the
|
||||||
configuration section. Then create the example tables:
|
example tables:
|
||||||
<br /><br />
|
<br /><br />
|
||||||
<tt>
|
<tt>
|
||||||
CREATE TABLE countries (<br />
|
CREATE TABLE countries (<br />
|
||||||
@@ -1983,7 +2015,7 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
|
|||||||
INSERT INTO towns VALUES ('S', 'Sherbrooke');<br />
|
INSERT INTO towns VALUES ('S', 'Sherbrooke');<br />
|
||||||
INSERT INTO towns VALUES ('M', 'Montr<74>al');<br />
|
INSERT INTO towns VALUES ('M', 'Montr<74>al');<br />
|
||||||
<br />
|
<br />
|
||||||
INSERT INTO `PMA_relation` VALUES ('mydb','persons', 'town_code', 'mydb', 'towns', 'town_code');<br />
|
INSERT INTO `PMA_relation` VALUES ('mydb', 'persons', 'town_code', 'mydb', 'towns', 'town_code');<br />
|
||||||
INSERT INTO `PMA_relation` VALUES ('mydb', 'persons', 'country_code', 'mydb', 'countries', 'country_code');<br />
|
INSERT INTO `PMA_relation` VALUES ('mydb', 'persons', 'country_code', 'mydb', 'countries', 'country_code');<br />
|
||||||
</tt>
|
</tt>
|
||||||
<br />
|
<br />
|
||||||
@@ -2017,60 +2049,75 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
|
|||||||
<p>
|
<p>
|
||||||
<b>How can I produce a PDF schema of my database?</b>
|
<b>How can I produce a PDF schema of my database?</b>
|
||||||
<br />
|
<br />
|
||||||
First you have to fill the 'relation', 'table_coords' and 'pdf_pages'
|
First you have to fill the "relation", "table_coords"
|
||||||
configuration variables.
|
and "pdf_pages" configuration variables.
|
||||||
<br /><br />
|
<br /><br />
|
||||||
Then, think about your schema layout: which tables will go on which pages.
|
Then, think about your schema layout: which tables will go on which pages.
|
||||||
<ul>
|
|
||||||
<li>Click on your db name in the left frame</li>
|
|
||||||
<li>Choose "Structure" in the navigation on top</li>
|
|
||||||
<li>Choose "Edit PDF Pages" which should be somewhere at the bottom of the page</li>
|
|
||||||
<li>Enter the name for a first pdf page and submit</li>
|
|
||||||
<li>Choose this page to edit</li>
|
|
||||||
<li>Now add a table you want to show on this page and it's coordinates and submit<br />
|
|
||||||
First you will have to guess this coordinates of course, so just
|
|
||||||
expect to have an area of about 297 * 210 and put the tables coordinates somewhere
|
|
||||||
in there, you will be able to have a look at what happened and change them later.<br />
|
|
||||||
For example, x=100 and y=200 means that the table will be at 200 mm down
|
|
||||||
and 100 mm right from the upper left corner.<br />
|
|
||||||
Actually if you have a width of more than 300 or a height of more than 100
|
|
||||||
than it will automatically be scaled but 300*100 is a good start to have
|
|
||||||
an idea of what coordinates to use.</li>
|
|
||||||
<li>After every table you submitted you will have the possibility to submit more tables</li>
|
|
||||||
<li>When you have entered enough tables Click on your db name in the left frame again</li>
|
|
||||||
<li>Now, again at the bottom of the page you should be able to choose "Display PDF schema"<br />
|
|
||||||
For testing it might be useful to show the Grid as well, so you can see the coordinates used<br />
|
|
||||||
maybe also choose Color and submit.</li>
|
|
||||||
<li>Save the file he will offer you to something like Schema.pdf (Internet Explorer has some Bug there
|
|
||||||
which might make it offer it without an extension. Under Windows it is important to have the Extension
|
|
||||||
.pdf, in under OS you should be fine just saving the file under the name it offers)</li>
|
|
||||||
|
|
||||||
in the navigation on top</li>
|
|
||||||
</ul>
|
|
||||||
</p>
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>Click on your db name in the left frame</li>
|
||||||
|
<li>Choose "Structure" in the navigation on top</li>
|
||||||
|
<li>Choose "Edit PDF Pages" which should be somewhere at the
|
||||||
|
bottom of the page</li>
|
||||||
|
<li>Enter the name for a first pdf page and submit</li>
|
||||||
|
<li>Choose this page to edit</li>
|
||||||
|
<li>Now add a table you want to show on this page and it's coordinates and
|
||||||
|
submit<br />
|
||||||
|
First you will have to guess this coordinates of course, so just expect
|
||||||
|
to have an area of about 297 * 210 and put the tables coordinates
|
||||||
|
somewhere in there, you will be able to have a look at what happened
|
||||||
|
and change them later.<br />
|
||||||
|
For example, x=100 and y=200 means that the table will be at 200 mm
|
||||||
|
down and 100 mm right from the upper left corner.<br />
|
||||||
|
Actually if you have a width of more than 300 or a height of more than
|
||||||
|
100 than it will automatically be scaled but 300*100 is a good start to
|
||||||
|
have an idea of what coordinates to use.</li>
|
||||||
|
<li>After every table you submitted you will have the possibility to submit
|
||||||
|
more tables</li>
|
||||||
|
<li>When you have entered enough tables Click on your db name in the left
|
||||||
|
frame again</li>
|
||||||
|
<li>Now, again at the bottom of the page you should be able to choose
|
||||||
|
"Display PDF schema"<br />
|
||||||
|
For testing it might be useful to show the grid as well, so you can see
|
||||||
|
the coordinates used.<br />
|
||||||
|
Maybe also choose color and submit.</li>
|
||||||
|
<li>Save the file he will offer you to something like <i>Schema.pdf</i>
|
||||||
|
(Internet Explorer has some bug there which might make it offer it
|
||||||
|
without an extension. Under Windows it is important to have the
|
||||||
|
extension ".pdf", under other OSes you should be fine just
|
||||||
|
saving the file under the name it offers).</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
<a name="faqsyntaxcoloring"></a>
|
<a name="faqsyntaxcoloring"></a>
|
||||||
<p>
|
<p>
|
||||||
<b>I don't like the way syntaxcoloring displays my query</b>
|
<b>I don't like the way syntax coloring displays my query!</b>
|
||||||
<br />
|
<br />
|
||||||
There is two things about the way how the Syntaxcoloring works that
|
There is two things about the way how the syntax coloring works that
|
||||||
you can easily change yourself:
|
you can easily change yourself:
|
||||||
<ul>
|
|
||||||
<li><b>number of newlines within your statement</b><br />
|
|
||||||
All Words that are in $cfg['keywords'] will get a newline in front of them,
|
|
||||||
all words in $cfg['additional'] don't. So say you don't like to have
|
|
||||||
a newline in front of every WHERE, you need to remove it from the $cfg['keywords'] array
|
|
||||||
and enter it in the $cfg['additional'] array instead.</li>
|
|
||||||
<li><b>Colors</b><br />
|
|
||||||
The colors are easily changed using the variables
|
|
||||||
<ul>
|
|
||||||
<li>$cfg['colorFunctions']</li>
|
|
||||||
<li>$cfg['colorKeywords']</li>
|
|
||||||
<li>$cfg['colorStrings']</li>
|
|
||||||
<li>$cfg['colorColType']</li>
|
|
||||||
<li>$cfg['colorAdd']</li>
|
|
||||||
</ul></li>
|
|
||||||
</ul>
|
|
||||||
</p>
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<b>number of newlines within your statement</b><br />
|
||||||
|
All words that are in <tt>$cfg['keywords']</tt> will get a newline in
|
||||||
|
front of them, all words in <tt>$cfg['additional']</tt> won't.
|
||||||
|
So say you don't like to have a newline in front of every
|
||||||
|
<tt>WHERE</tt>, you need to remove it from the
|
||||||
|
<tt>$cfg['keywords']</tt> array and enter it in the
|
||||||
|
<tt>$cfg['additional']</tt> array instead.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<b>colors</b><br />
|
||||||
|
The colors are easily changed using the variables
|
||||||
|
<ul>
|
||||||
|
<li><tt>$cfg['colorFunctions']</tt></li>
|
||||||
|
<li><tt>$cfg['colorKeywords']</tt></li>
|
||||||
|
<li><tt>$cfg['colorStrings']</tt></li>
|
||||||
|
<li><tt>$cfg['colorColType']</tt></li>
|
||||||
|
<li><tt>$cfg['colorAdd']</tt></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<b>phpMyAdmin is changing the type of one of my columns!</b>
|
<b>phpMyAdmin is changing the type of one of my columns!</b>
|
||||||
<br />
|
<br />
|
||||||
@@ -2082,12 +2129,12 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
|
|||||||
to a user for this database, a backslash is added before the underscore.
|
to a user for this database, a backslash is added before the underscore.
|
||||||
</b><br />
|
</b><br />
|
||||||
This is normal and means that the grant is done only for this database. If
|
This is normal and means that the grant is done only for this database. If
|
||||||
there was no backslash, this would be a wildcard grant, and the
|
there was no backslash, this would be a wildcard grant, and the
|
||||||
underscore would mean "any character". So, if the database name
|
underscore would mean "any character". So, if the database name
|
||||||
is "john_db", the user would get rights to john1db, john2db...
|
is "john_db", the user would get rights to john1db, john2db...
|
||||||
instead of just john_db.<br /><br />
|
instead of just john_db.<br /><br />
|
||||||
If you really want to grant using a wildcard, there is a dialog box "
|
If you really want to grant using a wildcard, there is a dialog box "
|
||||||
Database (wildcards allowed)" for this.
|
Database (wildcards allowed)" for this.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<b>What is the curious symbol ø in the table statistics?</b><br />
|
<b>What is the curious symbol ø in the table statistics?</b><br />
|
||||||
@@ -2338,7 +2385,7 @@ Thanks to these guys who have sent us some major improvements to merge into the
|
|||||||
code since version 2.1.0:
|
code since version 2.1.0:
|
||||||
- Michal Cihar <nijel at users.sourceforge.net> who implemented the
|
- Michal Cihar <nijel at users.sourceforge.net> who implemented the
|
||||||
enhanced index creation/display feature, and the mecanism to display
|
enhanced index creation/display feature, and the mecanism to display
|
||||||
a character set in MySQL different than the one in HTML.
|
a character set in MySQL different than the one in HTML.
|
||||||
- Christophe Gesch<63> from the "MySQL Form Generator for PHPMyAdmin"
|
- Christophe Gesch<63> from the "MySQL Form Generator for PHPMyAdmin"
|
||||||
(http://sourceforge.net/projects/phpmysqlformgen/) who suggested the patch
|
(http://sourceforge.net/projects/phpmysqlformgen/) who suggested the patch
|
||||||
for multiple table printviews.
|
for multiple table printviews.
|
||||||
|
Reference in New Issue
Block a user