2014-07-05 145 views
2

根据该结构,我发现错误phpMyAdmin - config.inc.php配置?

的成功运行配置存储器未完全配置,一些
扩展功能已被停用。找出为什么点击这里。

当点击那么下面发现错误:

$cfg['Servers'][$i]['users'] ... not OK  
$cfg['Servers'][$i]['usergroups'] ... not ok  
$cfg['Servers'][$i]['navigationhiding'] ... not OK 
$cfg['Servers'][$i]['savedsearches'] ... not OK 


<?php 
/* 
* This is needed for cookie based authentication to encrypt password in 
* cookie 
*/ 
$cfg['blowfish_secret'] = 'xampp'; /* YOU SHOULD CHANGE THIS FOR A MORE SECURE COOKIE AUTH! */ 

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

/* 
* First server 
*/ 
$i++; 

/* Authentication type and info */ 
$cfg['Servers'][$i]['auth_type'] = 'config'; 
$cfg['Servers'][$i]['user'] = 'root'; 
$cfg['Servers'][$i]['password'] = ''; 
$cfg['Servers'][$i]['extension'] = 'mysqli'; 
$cfg['Servers'][$i]['AllowNoPassword'] = true; 
$cfg['Lang'] = ''; 

/* Bind to the localhost ipv4 address and tcp */ 
$cfg['Servers'][$i]['host'] = '127.0.0.1'; 
$cfg['Servers'][$i]['connect_type'] = 'tcp'; 

/* User for advanced features */ 
$cfg['Servers'][$i]['controluser'] = 'pma'; 
$cfg['Servers'][$i]['controlpass'] = ''; 
$cfg['Servers'][$i]['users'] = 'pma_users'; 
$cfg['Servers'][$i]['usergroups'] = 'pma_usergroups'; 


/* Advanced phpMyAdmin features */ 
$cfg['Servers'][$i]['pmadb'] = ''; 
$cfg['Servers'][$i]['navigationhiding'] = 'pma_navigationhiding'; 
$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]['designer_coords'] = 'pma_designer_coords'; 
$cfg['Servers'][$i]['tracking'] = 'pma_tracking'; 
$cfg['Servers'][$i]['userconfig'] = 'pma_userconfig'; 
$cfg['Servers'][$i]['recent'] = 'pma_recent'; 
$cfg['Servers'][$i]['table_uiprefs'] = 'pma_table_uiprefs'; 

/* 
* End of servers configuration 
*/ 

?> 

回答

2

看一看config.sample.inc.php:你会发现配置指令,你应该复制到你的配置的例子。 inc.php(复制缺失的)。然后,看一下examples/create_tables.sql,它将帮助您创建缺少的表。

完整的文档可在http://docs.phpmyadmin.net/en/latest/setup.html#phpmyadmin-configuration-storage获得。

+0

我有接缝问题。我似乎在'config.inc.php'中有必要的指令,并且我*用'create_tables.sql'创建了所需的表,创建pma控制用户,并给这个用户在文档中指定的权限。仍是同样的问题。 – murray

1

我有同样的问题了天,直到我发现(我怎么能看着它,看不懂的代码:-(),其config.inc.php呼吁config-db.php

** MySQL服务器版本:5.7.5 -m15
**阿帕奇/ 2.4.10(Ubuntu的)
** phpMyAdmin的4.2.9.1deb0.1

/etc/phpmyadmin/config-db.php:

$dbuser='yourDBUserName'; 
$dbpass=''; 
$basepath=''; 
$dbname='phpMyAdminDBName'; 
$dbserver=''; 
$dbport=''; 
$dbtype='mysql'; 

在这里你需要定义你的用户名,密码,dbname和其他显示空使用默认值,除非你改变了他们的配置。 这解决了我的问题。
你希望它可以帮助你。
latest.phpmyadmin.docs