documentation.txt

来自「phpMyAdmin图形界面化操作,我已经配置好了,只要把解要压缩后的文件放到站」· 文本 代码 · 共 1,262 行 · 第 1/5 页

TXT
1,262
字号
    for this server.      + 'config' authentication ($auth_type = 'config') is the plain old way:        username and password are stored in config.inc.php.      + 'cookie' authentication mode ($auth_type = 'cookie') as introduced in        2.2.3 allows you to log in as any valid MySQL user with the help of        cookies. Username and password are stored in cookies during the session        and password is deleted when it ends. This can also allow you to log in        in arbitrary server if $cfg['AllowArbitraryServer'] enabled.      + 'HTTP' authentication (was called 'advanced' in previous versions and        can be written also as 'http') ($auth_type = 'HTTP') as introduced in        1.3.0 allows you to log in as any valid MySQL user via HTTP-Auth.      + 'signon' authentication mode ($auth_type = 'signon') as introduced in        2.10.0 allows you to log in from prepared PHP session data. This is        useful for implementing single signon from another application. Sample        way how to seed session is in signon example: scripts/signon.php. You        need to configure session name and signon URL to use this        authentication method.    Please see the install section on "Using authentication modes" for more    information.$cfg['Servers'][$i]['auth_swekey_config'] string    The name of the file containing Swekey ids and login names for hardware    authentication. Leave empty to deactivate this feature.$cfg['Servers'][$i]['user'] string    $cfg['Servers'][$i]['password'] string    When using auth_type = 'config', this is the user/password-pair which    phpMyAdmin will use to connect to the MySQL server. This user/password pair    is not needed when HTTP or cookie authentication is used and should be    empty.$cfg['Servers'][$i]['nopassword'] boolean    Allow attempt to log in without password when a login with password fails.    This can be used together with http authentication, when authentication is    done some other way and phpMyAdmin gets user name from auth and uses empty    password for connecting to MySQL. Password login is still tried first, but    as fallback, no password method is tried.$cfg['Servers'][$i]['only_db'] string or array    If set to a (an array of) database name(s), only this (these) database(s)    will be shown to the user. Since phpMyAdmin 2.2.1, this/these database(s)    name(s) may contain MySQL wildcards characters ("_" and "%"): if you want    to use literal instances of these characters, escape them (I.E. use 'my\    _db' and not 'my_db').    This setting is an efficient way to lower the server load since the latter    does not need to send MySQL requests to build the available database list.    But it does not replace the privileges rules of the MySQL database server.    If set, it just means only these databases will be displayed but not that    all other databases can't be used.    An example of using more that one database: $cfg['Servers'][$i]['only_db']    = array('db1', 'db2');    As of phpMyAdmin 2.5.5 the order inside the array is used for sorting the    databases in the left frame, so that you can individually arrange your    databases.    If you want to have certain databases at the top, but don't care about the    others, you do not need to specify all other databases. Use: $cfg    ['Servers'][$i]['only_db'] = array('db3', 'db4', '*'); instead to tell    phpMyAdmin that it should display db3 and db4 on top, and the rest in    alphabetic order.$cfg['Servers'][$i]['hide_db'] string    Regular expression for hiding some databases. This only hides them from    listing, but a user is still able to access them (using, for example, the    SQL query area). To limit access, use the MySQL privilege system.    For example, to hide all databases starting with the letter "a", use    $cfg['Servers'][$i]['hide_db'] = '^a';    and to hide both "db1" and "db2" use    $cfg['Servers'][$i]['hide_db'] = '(db1|db2)';    More information on regular expressions can be found in the PCRE pattern    syntax portion of the PHP reference manual.$cfg['Servers'][$i]['verbose'] string    Only useful when using phpMyAdmin with multiple server entries. If set,    this string will be displayed instead of the hostname in the pull-down menu    on the main page. This can be useful if you want to show only certain    databases on your system, for example. For HTTP auth, all non-US-ASCII    characters will be stripped.$cfg['Servers'][$i]['pmadb'] string    The name of the database containing the linked-tables infrastructure.    See the Linked-tables infrastructure section in this document to see the    benefits of this infrastructure, and for a quick way of creating this    database and the needed tables.    If you are the only user of this phpMyAdmin installation, you can use your    current database to store those special tables; in this case, just put your    current database name in $cfg['Servers'][$i]['pmadb']. For a multi-user    installation, set this parameter to the name of your central database    containing the linked-tables infrastructure.$cfg['Servers'][$i]['bookmarktable'] string    Since release 2.2.0 phpMyAdmin allows users to bookmark queries. This can    be useful for queries you often run.    To allow the usage of this functionality:      + set up pmadb and the linked-tables infrastructure      + enter the table name in $cfg['Servers'][$i]['bookmarktable']$cfg['Servers'][$i]['relation'] string    Since release 2.2.4 you can describe, in a special 'relation' table, which    field is a key in another table (a foreign key). phpMyAdmin currently uses    this to      + make clickable, when you browse the master table, the data values that        point to the foreign table;      + display in an optional tool-tip the "display field" when browsing the        master table, if you move the mouse to a column containing a foreign        key (use also the 'table_info' table);        (see FAQ 6.7)      + in edit/insert mode, display a drop-down list of possible foreign keys        (key value and "display field" are shown)        (see FAQ 6.21)      + display links on the table properties page, to check referential        integrity (display missing foreign keys) for each described key;      + in query-by-example, create automatic joins (see FAQ 6.6)      + enable you to get a PDF schema of your database (also uses the        table_coords table).    The keys can be numeric or character.    To allow the usage of this functionality:      + set up pmadb and the linked-tables infrastructure      + put the relation table name in $cfg['Servers'][$i]['relation']      + now as normal user open phpMyAdmin and for each one of your tables        where you want to use this feature, click "Structure/Relation view/"        and choose foreign fields.    Please note that in the current version, master_db must be the same as    foreign_db. Those fields have been put in future development of the    cross-db relations.$cfg['Servers'][$i]['table_info'] string    Since release 2.3.0 you can describe, in a special 'table_info' table,    which field is to be displayed as a tool-tip when moving the cursor over    the corresponding key.    This configuration variable will hold the name of this special table. To    allow the usage of this functionality:      + set up pmadb and the linked-tables infrastructure      + put the table name in $cfg['Servers'][$i]['table_info']      + then for each table where you want to use this feature, click        "Structure/Relation view/Choose field to display" to choose the field.    Usage tip: Display field.$cfg['Servers'][$i]['table_coords'] string    $cfg['Servers'][$i]['pdf_pages'] string    Since release 2.3.0 you can have phpMyAdmin create PDF pages showing the    relations between your tables. To do this it needs two tables "pdf_pages"    (storing information about the available PDF pages) and "table_coords"    (storing coordinates where each table will be placed on a PDF schema    output).    You must be using the "relation" feature.    To allow the usage of this functionality:      + set up pmadb and the linked-tables infrastructure      + put the correct table names in $cfg['Servers'][$i]['table_coords'] and        $cfg['Servers'][$i]['pdf_pages']    Usage tips: PDF output.$cfg['Servers'][$i]['column_info'] string    Since release 2.3.0 you can store comments to describe each column for each    table. These will then be shown on the "printview".    Starting with release 2.5.0, comments are consequently used on the table    property pages and table browse view, showing up as tool-tips above the    column name (properties page) or embedded within the header of table in    browse view. They can also be shown in a table dump. Please see the    relevant configuration directives later on.    Also new in release 2.5.0 is a MIME-transformation system which is also    based on the following table structure. See Transformations for further    information. To use the MIME-transformation system, your column_info table    has to have the three new fields 'mimetype', 'transformation',    'transformation_options'.    To allow the usage of this functionality:      + set up pmadb and the linked-tables infrastructure      + put the table name in $cfg['Servers'][$i]['column_info']      + to update your PRE-2.5.0 Column_comments Table use this:        ALTER TABLE `pma_column_comments`            ADD `mimetype` VARCHAR( 255 ) NOT NULL,            ADD `transformation` VARCHAR( 255 ) NOT NULL,            ADD `transformation_options` VARCHAR( 255 ) NOT NULL;        and remember that the Variable in config.inc.php has been renamed from        $cfg['Servers'][$i]['column_comments'] to $cfg['Servers'][$i]        ['column_info']$cfg['Servers'][$i]['history'] string    Since release 2.5.0 you can store your SQL history, which means all queries    you entered manually into the phpMyAdmin interface. If you don't want to    use a table-based history, you can use the JavaScript-based history. Using    that, all your history items are deleted when closing the window.    Using $cfg['QueryHistoryMax'] you can specify an amount of history items    you want to have on hold. On every login, this list gets cut to the maximum    amount.    The query history is only available if JavaScript is enabled in your    browser.    To allow the usage of this functionality:      + set up pmadb and the linked-tables infrastructure      + put the table name in $cfg['Servers'][$i]['history']$cfg['Servers'][$i]['designer_coords'] string    Since release 2.10.0 a Designer interface is available; it permits to    visually manage the relations.    To allow the usage of this functionality:      + set up pmadb and the linked-tables infrastructure      + put the table name in $cfg['Servers'][$i]['designer_coords']$cfg['Servers'][$i]['verbose_check'] boolean    Because release 2.5.0 introduced the new MIME-transformation support, the    column_info table got enhanced with three new fields. If the above variable    is set to TRUE (default) phpMyAdmin will check if you have the latest table    structure available. If not, it will emit a warning to the superuser.    You can disable this checking behavior by setting the variable to false,    which should offer a performance increase.    Recommended to set to FALSE, when you are sure, your table structure is up    to date.$cfg['Servers'][$i]['AllowRoot'] boolean    Whether to allow root access. This is just a shortcut for the AllowDeny    rules below.$cfg['Servers'][$i]['AllowNoPasswordRoot'] boolean    Whether to allow access to root user without password. The default value of    false for this parameter prevents unintended access to a MySQL server with    was left with an empty password for root.$cfg['Servers'][$i]['AllowDeny']['order'] string    If your rule order is empty, then IP authentication is disabled.    If your rule order is set to 'deny,allow' then the system applies all deny    rules followed by allow rules. Access is allowed by default. Any client    which does not match a Deny command or does match an Allow command will be    allowed access to the server.    If your rule order is set to 'allow,deny' then the system applies all allow    rules followed by deny rules. Access is denied by default. Any client which    does not match an Allow directive or does match a Deny directive will be    denied access to the server.    If your rule order is set to 'explicit', the authentication is performed in    a similar fashion to rule order 'deny,allow', with the added restriction    that your host/username combination must be listed in the allow rules, and    not listed in the deny rules. This is the most secure means of using Allow/    Deny rules, and was available in Apache by specifying allow and deny rules    without setting any order.    Please also see $cfg['TrustedProxies'] for detecting IP address behind    proxies.$cfg['Servers'][$i]['AllowDeny']['rules'] array of strings    The general format for the rules is as such:    <'allow' | 'deny'> <username> [from] <ipmask>    If you wish to match all users, it is possible to use a '%' as a wildcard    in the username field.    There are a few shortcuts you can use in the ipmask field as well (please    note that those containing SERVER_ADDRESS might not be available on all

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?