-->

phpMyAdmin的错误与配置文件(PhpMyAdmin error with config fi

2019-07-03 21:03发布

错误是:

phpMyAdmin的配置存储器未完全配置,一些扩展功能已被停用。 为了找出原因请点击这里。
服务器运行了Suhosin。 请参考文档可能出现的问题。

$ CFG桩[ '服务器'] [$ i] [ 'pmadb'] ... OK

$ CFG桩[ '服务器'] [$ i] [ '关系'] ...也不行[文件]
一般关系的特点:禁用

$ CFG桩[ '服务器'] [$ i] [ 'table_info'] ...也不行[文件]
显示功能:禁用

$ CFG桩[ '服务器'] [$ i] [ 'table_coords'] ...也不行[文件]

$ CFG桩[ '服务器'] [$ i] [ 'pdf_pages'] ...也不行[文件]
PDF文件的创建:禁用

$ CFG桩[ '服务器'] [$ i] [ 'column_info'] ...也不行[文件]
显示列注释:禁用
浏览器转换:已禁用

$ CFG桩[ '服务器'] [$ i] [ 'bookmarktable'] ...也不行[文件]
书签SQL查询:禁用

$ CFG桩[ '服务器'] [$ i] [ '历史'] ...也不行[文件]
SQL历史:禁用

$ CFG桩[ '服务器'] [$ i] [ 'designer_coords'] ...也不行[文件]
设计师:已禁用

$ CFG桩[ '服务器'] [$ i] [ '跟踪'] ...也不行[文件]
追踪:已禁用

$ CFG桩[ '服务器'] [$ 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
 */

Answer 1:

我也曾经有过同样的问题。 清除Cookie和缓存为我工作。 试试吧



Answer 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';


Answer 3:

VestaCP小组取得并成功地测试错误定影液用于成功运行(不恼人的消息“phpMyAdmin的配置存储器未完全配置,一些扩展功能已被停用”)。 我们希望修复将是有益的,将有助于用户。

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

什么是脚本的作用:

  • 从用户根工程;
  • 内部/etc/phpmyadmin/config.inc.php变化,修正值;
  • 带球/根文件夹/etc/phpmyadmin/config.inc.php的备份; 在MySQL PMA用户/和表的phpmyadmin(!如果用户“PMA”或表“phpMyAdmin的”已经存在,该脚本将删除这些)增加;
  • 下载并添加表数据库的phpmyadmin;
  • 清理临时文件,剩下的pma.txt(包含PMA @本地密码)和旧的配置;


Answer 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命令提示符下登录你..



Answer 5:

请按照下列步骤操作:

  1. 创建数据库名为phpmyadmin的导入数据库SQL / create_tables.sql
  2. 创建一个用户到数据库的用户,并授予访问权限(GRANT ALL PRIVILEGES ON的phpmyadmin * TO 'localhost' 的IDENTIFIED BY '密码' 用户@;。)
  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桩[ '服务器'] [$ i] [ 'UserConfig的'] ...也不行[文档]用户首选项:禁用

这意味着您的配置设置不匹配表的名称,或者......你的用户不具有对数据库的访问。



Answer 6:

就在错误页面,如果你向下滚动至底部。 有一个提示,告诉你注销并重新登录。 这样做会工作



Answer 7:

纠正错误,请单击上的消息,之后在上面,你可以对链接建立后,点击创建和刷新。 我这个解决方案的工作。



Answer 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。



文章来源: PhpMyAdmin error with config file