From 9f96b54d0239f455d561ff179782078f1cd1b6ee Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?=
GRANT SELECT, INSERT, UPDATE, DELETE ON <pma_db> TO 'pma'@'localhost';
- (this of course requires you to have a special DB for phpMyAdmin, the contents
- will be explained later)
+ (this of course requires you to have a special DB for
+ phpMyAdmin, the contents will be explained later)
@@ -414,6 +414,7 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
Please note that the $_SERVER array doesn't exist in
PHP < 4.1.0. Try to replace $_SERVER by
$HTTP_SERVER_VARS or $GLOBALS in this case.
+
-
+ Starting with version 2.3.0 phpMyAdmin offers a lot of features
+ to work with master / foreign - tables. To use those as well as
+ the bookmark feature you will need to create a new db.
+
+
To use this functionality as superuser create a new database:
+
+ CREATE DATABASE phpmyadmin;
+ Note that "controluser" must have
+ SELECT, INSERT and DELETE privileges on the
+ bookmark table. Here is a query to set up those privileges
+ (using "pma" as the controluser):
- CREATE database phpmyadmin;
-
- Note that controluser must have SELECT, INSERT and DELETE
- privileges on the bookmark table. Here is a query to set up
- those privileges (using "pma" as the controluser):
-
- GRANT SELECT,INSERT,DELETE ON
+ do not give any other user rights on this database.
@@ -591,7 +594,7 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
- CREATE TABLE bookmark (
+ CREATE TABLE `PMA_bookmark` (
id int(11) DEFAULT '0' NOT NULL auto_increment,
dbase varchar(255) NOT NULL,
user varchar(255) NOT NULL,
@@ -601,19 +604,19 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
) TYPE=MyISAM COMMENT='Bookmarks';
- Note that controluser must have SELECT,
+ Note that "controluser" must have SELECT,
INSERT and DELETE privileges on the bookmark table.
Here is a query to set up those privileges (using "pma" as
- the controluser and phpmyadmin as databasename:
- GRANT SELECT,INSERT,DELETE ON <phpmyadmin> to 'pma'@localhost;
+ the controluser and phpmyadmin as databasename):
+ GRANT SELECT,INSERT,DELETE ON <phpmyadmin> to 'pma'@localhost;
+
- CREATE TABLE `relation` (
+ CREATE TABLE `PMA_relation` (
`master_db` varchar(64) NOT NULL default '',
`master_table` varchar(64) NOT NULL default '',
`master_field` varchar(64) NOT NULL default '',
`foreign_db` varchar(64) NOT NULL default '',
`foreign_table` varchar(64) NOT NULL default '',
`foreign_field` varchar(64) NOT NULL default '',
- PRIMARY KEY (`master_db`,`master_table`,`master_field`),
- KEY foreign_field (foreign_db,foreign_table)
+ PRIMARY KEY (`master_db`, `master_table`, `master_field`),
+ KEY foreign_field (foreign_db, foreign_table)
) TYPE=MyISAM COMMENT='Relation table';
- Please note that in the current (2.3.0) version, master_db must be
- the same as foreign_db. Those fields have been put in place for a
+ Please note that in the current (2.3.0) version, master_db
+ must be the same as foreign_db. Those fields have been put in
future development of the cross-db relations.
-
`table_name` varchar(64) NOT NULL default '',
`display_field` varchar(64) NOT NULL default '',
- PRIMARY KEY (`db_name`,`table_name`)
+ PRIMARY KEY (`db_name`, `table_name`)
) TYPE=MyISAM COMMENT='Table information for phpMyAdmin';
@@ -717,48 +722,50 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
$cfg['Servers'][$i]['pdf_pages'] string
- PDF output is supported under PHP4, and you must be using also the
- 'relation' feature and have a table of PDF Pages (see $cfg['Servers'][$i]['pdf_pages']).
- Also, we used the fpdf library which currently
- only supports iso-8859 (Latin1) character sets in PDF.
+ You must be using the "relation" feature and have a table of
+ PDF pages (see $cfg['Servers'][$i]['pdf_pages']) to create PDF
+ output.
- To allow the usage of this functionality the superuser has to:
+ To allow the usage of this functionality the superuser has to:
+
- CREATE TABLE `table_coords` (
+ CREATE TABLE `PMA_table_coords` (
`db_name` varchar(64) NOT NULL default '',
`table_name` varchar(64) NOT NULL default '',
`pdf_page_number` int NOT NULL default '0',
`x` float unsigned NOT NULL default '0',
`y` float unsigned NOT NULL default '0',
- PRIMARY KEY (`db_name`,`table_name`, `pdf_page_number`)
+ PRIMARY KEY (`db_name`, `table_name`, `pdf_page_number`)
) TYPE=MyISAM COMMENT='Table coordinates for phpMyAdmin PDF output';
- CREATE TABLE pdf_pages (
+ CREATE TABLE `PMA_pdf_pages` (
`db_name` varchar(64) NOT NULL default '',
- page_nr int(10) unsigned NOT NULL auto_increment,
- page_descr varchar(50) NOT NULL default '',
- PRIMARY KEY (page_nr),
- KEY (db_name)
+ `page_nr` int(10) unsigned NOT NULL auto_increment,
+ `page_descr` varchar(50) NOT NULL default '',
+ PRIMARY KEY (page_nr),
+ KEY (db_name)
) TYPE=MyISAM COMMENT='PDF Relationpages for PMA';
+
To allow the usage of this functionality the superuser has to:
+
+
- CREATE TABLE column_comments (
+ CREATE TABLE `PMA_column_comments` (
id int(5) unsigned NOT NULL auto_increment,
db_name varchar(64) NOT NULL default '',
table_name varchar(64) NOT NULL default '',
column_name varchar(64) NOT NULL default '',
comment varchar(255) NOT NULL default '',
- PRIMARY KEY (id),
- UNIQUE KEY db_name (db_name,table_name,column_name)
+ PRIMARY KEY (id),
+ UNIQUE KEY db_name (db_name, table_name, column_name)
) TYPE=MyISAM COMMENT='Comments for Columns';
+ You can give here any charset which is in
+ $cfg['AvailableCharsets'] array and this is just default
+ choice, user can select any of them.
+ To use this feature set this value to TRUE (the default).
+ If not everything you want is colored or to influence where a newline
+ is inserted see the configuration arrays $cfg['keywords'] and
+ $cfg['additional'].
+ Note: for version 2.3.0, syntax coloring is non functional.
+
+ Usually you won't need to change those.
+
+ Usually you won't need to change those.
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
- version, we cannot workaround this bug.
+ data in octet-stream mode. Since we can't detect the specific Netscape
+ version, we cannot workaround this bug.
How can I use the relation table in Query-by-example?
- Here is an example with the tables persons, towns and countries, all
- located in the database mydb. If you
- don't have a PMA_relation table, create it as explained in the
- configuration section. Then create the example tables:
+ Here is an example with the tables persons, towns and countries, all
+ located in the database mydb. If you don't have a PMA_relation
+ table, create it as explained in the configuration section. Then create the
+ example tables:
CREATE TABLE countries (
@@ -1983,7 +2015,7 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
INSERT INTO towns VALUES ('S', 'Sherbrooke');
INSERT INTO towns VALUES ('M', 'Montréal');
- INSERT INTO `PMA_relation` VALUES ('mydb','persons', 'town_code', 'mydb', 'towns', 'town_code');
+ INSERT INTO `PMA_relation` VALUES ('mydb', 'persons', 'town_code', 'mydb', 'towns', 'town_code');
INSERT INTO `PMA_relation` VALUES ('mydb', 'persons', 'country_code', 'mydb', 'countries', 'country_code');
@@ -2017,60 +2049,75 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
How can I produce a PDF schema of my database?
- First you have to fill the 'relation', 'table_coords' and 'pdf_pages'
- configuration variables.
+ First you have to fill the "relation", "table_coords"
+ and "pdf_pages" configuration variables.
Then, think about your schema layout: which tables will go on which pages.
-
- I don't like the way syntaxcoloring displays my query
+ I don't like the way syntax coloring displays my query!
- 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:
-
phpMyAdmin is changing the type of one of my columns!
@@ -2082,12 +2129,12 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
to a user for this database, a backslash is added before the underscore.
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
is "john_db", the user would get rights to john1db, john2db...
instead of just john_db.
If you really want to grant using a wildcard, there is a dialog box "
- Database (wildcards allowed)" for this.
+ Database (wildcards allowed)" for this.
What is the curious symbol ø in the table statistics?
@@ -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:
- Michal Cihar <nijel at users.sourceforge.net> who implemented the
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é from the "MySQL Form Generator for PHPMyAdmin"
(http://sourceforge.net/projects/phpmysqlformgen/) who suggested the patch
for multiple table printviews.