documentation.txt

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

TXT
1,262
字号
    in this area!    Even in a single-user environment, you might prefer to use HTTP or cookie    mode so that your user/password pair are not in clear in the configuration    file.  * HTTP and cookie authentication modes are more secure: the MySQL login    information does not need to be set in the phpMyAdmin configuration file    (except possibly for the controluser).    However, keep in mind that the password travels in plain text, unless you    are using the HTTPS protocol.    In cookie mode, the password is stored, encrypted with the blowfish    algorithm, in a temporary cookie.  * Note: starting with phpMyAdmin 2.6.1, this section is only applicable if    your MySQL server is running with --skip-show-database.    For 'HTTP' and 'cookie' modes, phpMyAdmin needs a controluser that has only    the SELECT privilege on the `mysql`.`user` (all columns except `Password`),    `mysql`.`db` (all columns), `mysql`.`host` (all columns) and `mysql`.    `tables_priv` (all columns except `Grantor` and `Timestamp`) tables.    You must specify the details for the controluser in the config.inc.php file    under the $cfg['Servers'][$i]['controluser'] and $cfg['Servers'][$i]    ['controlpass'] settings.    The following example assumes you want to use pma as the controluser and    pmapass as the controlpass, but this is only an example: use something else    in your file! Input these statements from the phpMyAdmin SQL Query window    or mysql command?line client.    Of course you have to replace localhost with the webserver's host if it's    not the same as the MySQL server's one.    GRANT USAGE ON mysql.* TO 'pma'@'localhost' IDENTIFIED BY 'pmapass';    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,        Show_db_priv, Super_priv, Create_tmp_table_priv, Lock_tables_priv,        Execute_priv, Repl_slave_priv, Repl_client_priv        ) ON mysql.user TO 'pma'@'localhost';    GRANT SELECT ON mysql.db TO 'pma'@'localhost';    GRANT SELECT ON mysql.host TO 'pma'@'localhost';    GRANT SELECT (Host, Db, User, Table_name, Table_priv, Column_priv)        ON mysql.tables_priv TO 'pma'@'localhost';    If you want to use the many new relation and bookmark features:    GRANT SELECT, INSERT, UPDATE, DELETE ON <pma_db>.* TO 'pma'@'localhost';    (this of course requires that your linked-tables infrastructure be set up).  * Then each of the true users should be granted a set of privileges on a set    of particular databases. Normally you shouldn't give global privileges to    an ordinary user, unless you understand the impact of those privileges (for    example, you are creating a superuser).    For example, to grant the user real_user with all privileges on the    database user_base:    GRANT ALL PRIVILEGES ON user_base.* TO 'real_user'@localhost IDENTIFIED BY 'real_password';    What the user may now do is controlled entirely by the MySQL user    management system.    With HTTP or cookie authentication mode, you don't need to fill the user/    password fields inside the $cfg['Servers'] array.'HTTP' authentication mode  * Uses HTTP Basic authentication method and allows you to log in as any valid    MySQL user.  * Is supported with most PHP configurations. For IIS (ISAPI) support using    CGI PHP see FAQ 1.32, for using with Apache CGI see FAQ 1.35.  * See also FAQ 4.4 about not using the .htaccess mechanism along with 'HTTP'    authentication mode.'cookie' authentication mode  * You can use this method as a replacement for the HTTP authentication (for    example, if you're running IIS).  * Obviously, the user must enable cookies in the browser, but this is now a    requirement for all authentication modes.  * With this mode, the user can truly log out of phpMyAdmin and log in back    with the same username.  * If you want to log in to arbitrary server see $cfg['AllowArbitraryServer']    directive.  * As mentioned in the requirements section, having the mcrypt extension will    speed up access considerably, but is not required.'signon' authentication mode  * This mode is a convenient way of using credentials from another application    to authenticate to phpMyAdmin.  * The other application has to store login information into session data.  * More details in the auth_type section.'config' authentication mode  * This mode is the less secure one because it requires you to fill the $cfg    ['Servers'][$i]['user'] and $cfg['Servers'][$i]['password'] fields (and as    a result, anyone who can read your config.inc.php can discover your    username and password).    But you don't need to setup a "controluser" here: using the $cfg['Servers']    [$i]['only_db'] might be enough.  * In the ISP FAQ section, there is an entry explaining how to protect your    configuration file.  * For additional security in this mode, you may wish to consider the Host    authentication $cfg['Servers'][$i]['AllowDeny']['order'] and $cfg    ['Servers'][$i]['AllowDeny']['rules'] configuration directives.  * Unlike cookie and http, does not require a user to log in when first    loading the phpMyAdmin site. This is by design but could allow any user to    access your installation. Use of some restriction method is suggested,    perhaps a .htaccess file with the HTTP-AUTH directive or disallowing    incoming HTTP requests at one?s router or firewall will suffice (both of    which are beyond the scope of this manual but easily searchable with    Google).Swekey authenticationThe Swekey is a low cost authentication USB key that can be used in webapplications.When Swekey authentication is activated, phpMyAdmin requires the users's Swekeyto be plugged before entering the login page (currently supported for cookieauthentication mode only). Swekey Authentication is disabled by default.To enable it, add the following line to config.inc.php:$cfg['Servers'][$i]['auth_swekey_config'] = '/etc/swekey.conf';You then have to create the swekey.conf file that will associate each user withtheir Swekey Id. It is important to place this file outside of your webserver's document root (in the example, it is located in /etc). A selfdocumented sample file is provided in the contrib directory. Feel free to useit with your own users' information.If you want to purchase a Swekey please visit http://phpmyadmin.net/auth_keysince this link provides funding for phpMyAdmin.ConfigurationWarning for Mac users: PHP does not seem to like Mac end of lines character ("\r"). So ensure you choose the option that allows to use the *nix end of linecharacter ("\n") in your text editor before saving a script you have modified.Configuration note: Almost all configurable data is placed in config.inc.php.If this file does not exist, please refer to the Quick install section tocreate one. This file only needs to contain the parameters you want to changefrom their corresponding default value in libraries/config.default.php.The parameters which relate to design (like colors) are placed in themes/themename/layout.inc.php. You might also want to create config.footer.inc.phpand config.header.inc.php files to add your site specific code to be includedon start and end of each page.$cfg['PmaAbsoluteUri'] string    Sets here the complete URL (with full path) to your phpMyAdmin    installation's directory. E.g. http://www.your_web.net/    path_to_your_phpMyAdmin_directory/. Note also that the URL on some web    servers are case?sensitive. Don?t forget the trailing slash at the end.    Starting with version 2.3.0, it is advisable to try leaving this blank. In    most cases phpMyAdmin automatically detects the proper setting. Users of    port forwarding will need to set PmaAbsoluteUri (more info). A good test is    to browse a table, edit a row and save it. There should be an error message    if phpMyAdmin is having trouble auto?detecting the correct value. If you    get an error that this must be set or if the autodetect code fails to    detect your path, please post a bug report on our bug tracker so we can    improve the code.$cfg['PmaNoRelation_DisableWarning'] boolean    Starting with version 2.3.0 phpMyAdmin offers a lot of features to work    with master / foreign ? tables (see $cfg['Servers'][$i]['pmadb']).    If you tried to set this up and it does not work for you, have a look on    the "Structure" page of one database where you would like to use it. You    will find a link that will analyze why those features have been disabled.    If you do not want to use those features set this variable to TRUE to stop    this message from appearing.$cfg['SuhosinDisableWarning'] boolean    A warning is displayed on the main page if Suhosin is detected. You can set    this parameter to TRUE to stop this message from appearing.$cfg['AllowThirdPartyFraming'] boolean    Setting this to true allows a page located on a different domain to call    phpMyAdmin inside a frame, and is a potential security hole allowing    cross-frame scripting attacks.$cfg['blowfish_secret'] string    The "cookie" auth_type uses blowfish algorithm to encrypt the password.    If you are using the "cookie" auth_type, enter here a random passphrase of    your choice. It will be used internally by the blowfish algorithm: you    won?t be prompted for this passphrase. The maximum number of characters for    this parameter seems to be 46.    Since version 3.1.0 phpMyAdmin can generate this on the fly, but it makes a    bit weaker security as this generated secret is stored in session and    furthermore it makes impossible to recall user name from cookie.$cfg['Servers'] array    Since version 1.4.2, phpMyAdmin supports the administration of multiple    MySQL servers. Therefore, a $cfg['Servers']-array has been added which    contains the login information for the different servers. The first $cfg    ['Servers'][$i]['host'] contains the hostname of the first server, the    second $cfg['Servers'][$i]['host'] the hostname of the second server, etc.    In ./libraries/config.default.php, there is only one section for server    definition, however you can put as many as you need in ./config.inc.php,    copy that block or needed parts (you don't have to define all settings,    just those you need to change).$cfg['Servers'][$i]['host'] string    The hostname or IP address of your $i-th MySQL-server. E.g. localhost.$cfg['Servers'][$i]['port'] string    The port-number of your $i-th MySQL-server. Default is 3306 (leave blank).    If you use "localhost" as the hostname, MySQL ignores this port number and    connects with the socket, so if you want to connect to a port different    from the default port, use "127.0.0.1" or the real hostname in $cfg    ['Servers'][$i]['host'].$cfg['Servers'][$i]['socket'] string    The path to the socket to use. Leave blank for default.    To determine the correct socket, check your MySQL configuration or, using    the mysql command?line client, issue the status command. Among the    resulting information displayed will be the socket used.$cfg['Servers'][$i]['ssl'] boolean    Whether to enable SSL for connection to MySQL server.$cfg['Servers'][$i]['connect_type'] string    What type connection to use with the MySQL server. Your options are    'socket' and 'tcp'. It defaults to 'tcp' as that is nearly guaranteed to be    available on all MySQL servers, while sockets are not supported on some    platforms.    To use the socket mode, your MySQL server must be on the same machine as    the Web server.$cfg['Servers'][$i]['extension'] string    What php MySQL extension to use for the connection. Valid options are:    mysql : The classic MySQL extension. This is the recommended and default    method at this time.    mysqli : The improved MySQL extension. This extension became available with    php 5.0.0 and is the recommended way to connect to a server running MySQL    4.1.x or newer.$cfg['Servers'][$i]['compress'] boolean    Whether to use a compressed protocol for the MySQL server connection or not    (experimental).    This feature requires PHP >= 4.3.0.$cfg['Servers'][$i]['controluser'] string    $cfg['Servers'][$i]['controlpass'] string    This special account is used for 2 distinct purposes: to make possible all    relational features (see $cfg['Servers'][$i]['pmadb']) and, for a MySQL    server previous to 4.1.2 or running with --skip-show-database, to enable a    multi-user installation (HTTP or cookie authentication mode).    When using HTTP or cookie authentication modes (or 'config' authentication    mode since phpMyAdmin 2.2.1), you need to supply the details of a MySQL    account that has SELECT privilege on the mysql.user (all columns except    "Password"), mysql.db (all columns) and mysql.tables_priv (all columns    except "Grantor" and "Timestamp") tables. This account is used to check    what databases the user will see at login.    Please see the install section on "Using authentication modes" for more    information.    In phpMyAdmin versions before 2.2.5, those were called "stduser/stdpass".$cfg['Servers'][$i]['auth_type'] string ['HTTP'|'http'|'cookie'|'config'|    'signon']    Whether config or cookie or HTTP or signon authentication should be used

⌨️ 快捷键说明

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