【问题标题】:PhpMyAdmin error with config file配置文件的 PhpMyAdmin 错误
【发布时间】:2012-11-04 16:30:41
【问题描述】:

错误是:

phpMyAdmin配置存储未配置完整, 一些扩展功能已被停用。要了解原因,请单击此处。
使用 Suhosin 运行的服务器。请参考文档 可能的问题。

$cfg['Servers'][$i]['pmadb'] ...好的

$cfg['Servers'][$i]['relation'] ... 不正常 [ 文档 ]
一般关系特征:禁用

$cfg['Servers'][$i]['table_info'] ... 不正常 [ 文档 ]
显示功能:已禁用

$cfg['Servers'][$i]['table_coords'] ... 不行 [ 文档 ]

$cfg['Servers'][$i]['pdf_pages'] ... 不正常 [ 文档 ]
创建 PDF:已禁用

$cfg['Servers'][$i]['column_info'] ...不正常 [ 文档 ]
显示列注释:已禁用
浏览器转换:禁用

$cfg['Servers'][$i]['bookmarktable'] ... 不正常 [ 文档 ]
已添加书签的 SQL 查询:已禁用

$cfg['Servers'][$i]['history'] ...不正常 [ 文档 ]
SQL 历史记录:已禁用

$cfg['Servers'][$i]['designer_coords'] ... 不行 [ 文档 ]
设计师:已禁用

$cfg['Servers'][$i]['tracking'] ... 不正常 [ 文档 ]
跟踪:已禁用

$cfg['Servers'][$i]['userconfig'] ... 不正常 [ 文档 ]
用户偏好:已禁用

我的config.inc.php文件如下:

/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
 * phpMyAdmin sample configuration, you can use it as base for
 * manual configuration. For easier setup you can use setup/
 *
 * All directives are explained in Documentation.html and on phpMyAdmin
 * wiki <http://wiki.phpmyadmin.net>.
 *
 * @package phpMyAdmin
 */

/*
 * This is needed for cookie based authentication to encrypt password in
 * cookie
 */
$cfg['blowfish_secret'] = 'myblowfishpass';

/*
 * Servers configuration
 */
$i = 0;

/*
 * First server
 */
$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
/* Select mysql if your server does not have mysqli */
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = false;

/*
 * phpMyAdmin configuration storage settings.
 */

/* User used to manipulate with storage */
 $cfg['Servers'][$i]['controluser'] = 'dave1';
 $cfg['Servers'][$i]['controlpass'] = 'mypassword';

/* Storage database and tables */
 $cfg['Servers'][$i]['pmadb'] = 'wordpress_db'; //the name of my db table
 $cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark'; //does the pma_ need to change to dave1_?
 $cfg['Servers'][$i]['relation'] = 'pma_relation';
 $cfg['Servers'][$i]['table_info'] = 'pma_table_info';
 $cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
 $cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
 $cfg['Servers'][$i]['column_info'] = 'pma_column_info';
 $cfg['Servers'][$i]['history'] = 'pma_history';
 $cfg['Servers'][$i]['tracking'] = 'pma_tracking';
 $cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';
 $cfg['Servers'][$i]['userconfig'] = 'pma_userconfig';
/* Contrib / Swekey authentication */
 $cfg['Servers'][$i]['auth_swekey_config'] = '/etc/swekey-pma.conf';

/*
 * End of servers configuration
 */

/*
 * Directories for saving/loading files from server
 */
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';

/**
 * Defines whether a user should be displayed a "show all (records)"
 * button in browse mode or not.
 * default = false
 */
  $cfg['ShowAll'] = true;

/**
 * Number of rows displayed when browsing a result set. If the result
 * set contains more rows, "Previous" and "Next".
 * default = 30
 */
  $cfg['MaxRows'] = 50;

/**
 * Use graphically less intense menu tabs
 * default = false
 */
//$cfg['LightTabs'] = true;

/**
 * disallow editing of binary fields
 * valid values are:
 *   false  allow editing
 *   'blob' allow editing except for BLOB fields
 *   'all'  disallow editing
 * default = blob
 */
//$cfg['ProtectBinary'] = 'false';

/**
 * Default language to use, if not browser-defined or user-defined
 * (you find all languages in the locale folder)
 * uncomment the desired line:
 * default = 'en'
 */
  $cfg['DefaultLang'] = 'en';
//$cfg['DefaultLang'] = 'de';

/**
 * default display direction (horizontal|vertical|horizontalflipped)
 */
//$cfg['DefaultDisplay'] = 'vertical';


/**
 * How many columns should be used for table display of a database?
 * (a value larger than 1 results in some information being hidden)
 * default = 1
 */
//$cfg['PropertiesNumColumns'] = 2;

/**
 * Set to true if you want DB-based query history.If false, this utilizes
 * JS-routines to display query history (lost by window close)
 *
 * This requires configuration storage enabled, see above.
 * default = false
 */
//$cfg['QueryHistoryDB'] = true;

/**
 * When using DB-based query history, how many entries should be kept?
 *
 * default = 25
 */
//$cfg['QueryHistoryMax'] = 100;

/*
 * You can find more configuration options in Documentation.html
 * or here: http://wiki.phpmyadmin.net/pma/Config
 */

【问题讨论】:

    标签: php phpmyadmin server-configuration


    【解决方案1】:

    我也有同样的问题。清除 cookie 和缓存对我有用。试试看

    【讨论】:

    • 同样的事情发生在我身上,希望我在浪费这些时间之前先在这里搜索过。
    • 是的,我也让我笑了有多少人发生了这种情况
    • 谢谢伙计。 :) 我浪费时间寻找解决方案,这对我有用。
    • 注销再重新解决,猜是cookie相关的
    【解决方案2】:

    如果您使用“create_tables.sql”创建数据库和表,请将表名 pma__ 更改为 pma_ 。 (将 2 个下划线更改为 1 个下划线)

    或者将“config.inc.php”中的表名,pma_改为pma__(1个下划线改成2个下划线)。
    例如,pma_bookmarkpma__bookmark

    $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
    $cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark';
    $cfg['Servers'][$i]['relation'] = 'pma__relation';
    $cfg['Servers'][$i]['table_info'] = 'pma__table_info';
    $cfg['Servers'][$i]['table_coords'] = 'pma__table_coords';
    $cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages';
    $cfg['Servers'][$i]['column_info'] = 'pma__column_info';
    $cfg['Servers'][$i]['history'] = 'pma__history';
    $cfg['Servers'][$i]['tracking'] = 'pma__tracking';
    $cfg['Servers'][$i]['designer_coords'] = 'pma__designer_coords';
    $cfg['Servers'][$i]['userconfig'] = 'pma__userconfig';
    $cfg['Servers'][$i]['recent'] = 'pma__recent';
    $cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs';
    

    【讨论】:

    • 这个技巧终于搞定了。谢谢!我无法想象为什么数据库 phpmyadmin 混合了 pma_* 和 pma__* 表,但这是我第一次注意到奇怪的默认设置(使用 XAMPP 3.2.1)。 Import has been successfully finished, 17 queries executed. (create_tables.sql)
    【解决方案3】:

    VestaCP 团队为 phpMyAdmin 制作并成功测试了错误修复程序(不再出现烦人的消息“phpMyAdmin 配置存储未完全配置,一些扩展功能已停用”)。我们希望该修复将是有用的,并将帮助用户。

    Github 页面:https://github.com/skurudo/phpmyadmin-fixer

    脚本的作用:

    • 从 root 用户工作;
    • /etc/phpmyadmin/config.inc.php 内部的变化,修正值;
    • 在 /root 文件夹中备份 /etc/phpmyadmin/config.inc.php; 添加一个mysql pma用户/和表phpmyadmin(如果用户“pma”或表“phpmyadmin”已经存在,脚本将删除它们!);
    • 为数据库phpmyadmin下载并添加表;
    • 清理临时文件、剩余的 pma.txt(包含 pma@localhost 的密码)和旧配置;

    【讨论】:

    • 你有什么适用于 Windows 的解决方案吗?
    【解决方案4】:
    $cfg['Servers'][$i]['user'] = 'root'; //mysql username here
    $cfg['Servers'][$i]['password'] = 'password'; //mysql password here
    

    尝试在$cfg['Servers'][$i]['connect_type'] = 'tcp';后面加上以上配置行

    如果这些也不起作用,请尝试使用新的配置文件,可能是通过复制 config.sample.inc.php。请确保它具有上述配置行。检查它是否工作正常,然后开始逐步对其进行更改,如果要进行任何更改..

    请注意,您提供的用户名和密码应该能够从 mysql 命令提示符登录您..

    【讨论】:

      【解决方案5】:

      请按以下步骤操作:

      1. 创建一个名为 phpmyadmin 的数据库 导入数据库 sql/create_tables.sql
      2. 创建用户并授予用户访问权限 该数据库(GRANT ALL PRIVILEGES ON phpmyadmin.* TO user@'localhost' 由 'password' 识别;)
      3. 找到并编辑您的配置文件,在 config.inc.php 中启用这些行(删除每行前面的 #)

        /* User used to manipulate with storage */
         $cfg['Servers'][$i]['controlhost'] = 'localhost';
         $cfg['Servers'][$i]['controluser'] = 'phpmyadmin_pma';
         $cfg['Servers'][$i]['controlpass'] = 'yourpassword';
        
        /* Storage database and tables */
         $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
         $cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark';
         $cfg['Servers'][$i]['relation'] = 'pma__relation';
         $cfg['Servers'][$i]['table_info'] = 'pma__table_info';
         $cfg['Servers'][$i]['table_coords'] = 'pma__table_coords';
         $cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages';
         $cfg['Servers'][$i]['column_info'] = 'pma__column_info';
         $cfg['Servers'][$i]['history'] = 'pma__history';
         $cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs';
         $cfg['Servers'][$i]['tracking'] = 'pma__tracking';
         $cfg['Servers'][$i]['designer_coords'] = 'pma__designer_coords';
         $cfg['Servers'][$i]['userconfig'] = 'pma__userconfig';
         $cfg['Servers'][$i]['recent'] = 'pma__recent';
        
         /* These lines I added-in because they are not exist in the config_sample.inc.php */
         $cfg['Servers'][$i]['favorite'] = 'pma__favorite';
         $cfg['Servers'][$i]['users'] = 'pma__users';
         $cfg['Servers'][$i]['usergroups'] = 'pma__usergroups';
         $cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding';
         $cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches';
         $cfg['Servers'][$i]['central_columns'] = 'pma__central_columns';
         $cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings';
         $cfg['Servers'][$i]['export_templates']  = 'pma__export_templates';
        

      请注意 pma__ 之间有两个下划线,您需要确保它与您数据库中的表名匹配

      如果您看到此错误: $cfg['Servers'][$i]['userconfig'] ... 不正常 [ 文档 ] 用户偏好:已禁用

      这意味着您的配置设置与表的名称不匹配,或者...您的用户无权访问数据库。

      【讨论】:

        【解决方案6】:

        如果您向下滚动到底部,就在错误页面中。有一个提示告诉您注销并重新登录。这样做会奏效

        【讨论】:

          【解决方案7】:

          要更正错误,请单击消息,然后在顶部您可以创建链接,单击创建并刷新。 这个解决方案适合我。

          【讨论】:

            【解决方案8】:

            1) 检查您的 mysql 服务器中是否有 phpmyadmin 数据库。 Phpmyadmin 帮助您创建它的数据库。

            2) 检查您是否有 pma 用户。如果不创建它:

            CREATE USER  'pma'@'localhost' IDENTIFIED BY 'yourPassword';
            

            pma 密码必须与 config.inc.php 中给出的密码相同

            3) 赋予 pma 权限:

            GRANT ALL PRIVILEGES ON phpmyadmin.* TO `pma`@`localhost` WITH GRANT OPTION;
            FLUSH PRIVILEGES;
            

            4) 清除缓存和 cookie。

            【讨论】:

              猜你喜欢
              • 2017-06-21
              • 1970-01-01
              • 2016-05-15
              • 2020-07-07
              • 1970-01-01
              • 2011-11-26
              • 2012-02-09
              • 1970-01-01
              • 2010-10-04
              相关资源
              最近更新 更多