phpMyAdmin:用于处理链接表的附加function已被禁用

我在phpMyAdmin verson的主页面出现这个错误:3.2.1deb1 用于处理链接表的附加function已被禁用。 找出为什么点击这里。 当我点击链接,我得到这个报告。

$cfg['Servers'][$i]['pmadb'] ... OK $cfg['Servers'][$i]['relation'] ... not OK [ Documentation ] General relation features: Disabled $cfg['Servers'][$i]['table_info'] ... not OK [ Documentation ] Display Features: Disabled $cfg['Servers'][$i]['table_coords'] ... not OK [ Documentation ] $cfg['Servers'][$i]['pdf_pages'] ... not OK [ Documentation ] Creation of PDFs: Disabled $cfg['Servers'][$i]['column_info'] ... not OK [ Documentation ] Displaying Column Comments: Disabled Bookmarked SQL query: Disabled Browser transformation: Disabled $cfg['Servers'][$i]['history'] ... not OK [ Documentation ] SQL history: Disabled $cfg['Servers'][$i]['designer_coords'] ... not OK [ Documentation ] Designer: Disabled 

我已经使用脚本创build表。 我将权限分配给了pma用户。 一切都在/etc/phpmyadmin/conf.inc.php中设置

但它仍然没有工作…表是空的。 我认为他们应该有一些东西。 我对历史特征的关系感兴趣。 显然我已经阅读了文档。 也许别的东西是不符合这些价值的? 任何困难?

您只需注销phpMyAdmin或删除会话cookie并在更改后重新加载。

无处不在我最终编辑这个文件

/etc/dbconfig-common/phpmyadmin.conf

没有什么和我三年前做的事情有关,但是我发现了这个评论

 # automatically generated by the maintainer scripts of phpmyadmin # any changes you make will be preserved, though your comments # will be lost! to change your settings you should edit this # file and then run "dpkg-reconfigure phpmyadmin" 

所以我运行dpkg-reconfigure phpmyadmin尽pipe它已经在安装时运行了。 它问我是否想重新创build数据库,我的答案是否定的。

现在

 $cfg['Servers'][$i]['pmadb'] ... OK $cfg['Servers'][$i]['relation'] ... OK General relation features: Enabled $cfg['Servers'][$i]['table_info'] ... OK Display Features: Enabled $cfg['Servers'][$i]['table_coords'] ... OK $cfg['Servers'][$i]['pdf_pages'] ... OK Creation of PDFs: Enabled $cfg['Servers'][$i]['column_info'] ... not OK [ Documentation ] Displaying Column Comments: Disabled Bookmarked SQL query: Enabled Browser transformation: Disabled $cfg['Servers'][$i]['history'] ... OK SQL history: Enabled $cfg['Servers'][$i]['designer_coords'] ... OK Designer: Enabled 

这不是一个升级,表被称为pma_column_info ,事实是,我不在乎了。 至less我现在想要的function正在起作用

按照启用phpMyAdmin中的链接表中的说明。 这解决了我的情况相同的问题!

如果你收到一条消息说

不好[文档]“

但是第一行( $cfg['Servers'][$i]['pmadb'] )表示OK,我发现删除phpMyAdmin URL的浏览器cookie是$cfg['Servers'][$i]['pmadb']

我也从开始

 $cfg['Servers'][$i]['auth_type'] = 'cookie'; 

 $cfg['Servers'][$i]['auth_type'] = 'config'; 

如果切换到“config”,请确保设置用户名和密码。

以下操作将解决问题。

1)mysql> GRANT USAGE ON mysql.* TO 'pma'@'localhost' IDENTIFIED BY 'pmapass';

2) mysql -uroot -p =>进入MySQL,使用scripts / create_table.sql命令创build一个数据库(phpMyAdmin)和所有9个表,如:

 mysql> CREATE DATABASE IF NOT EXISTS `phpmyadmin` -> DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; mysql> USE phpmyadmin; mysql> CREATE TABLE IF NOT EXISTS `pma_bookmark` ( -> `id` int(11) NOT NULL auto_increment, -> `dbase` varchar(255) NOT NULL default '', -> `user` varchar(255) NOT NULL default '', -> `label` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL default '', -> `query` text NOT NULL, -> PRIMARY KEY (`id`) -> ) -> ENGINE=MyISAM COMMENT='Bookmarks' -> DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; 

……还有其他表格。

3)MySQL> GRANT SELECT, INSERT, UPDATE, DELETE ON phpmyadmin.* to 'pma'@'localhost';

4)重新启动MySQL并打开网页,错误消失。

您需要为pmadb数据库创build结构。 在脚本目录中有一个create_tables.sql来做到这一点。 如果您select另一个名字,也检查文件数据库的名称。

当你确定按照文档设置的所有东西时,真的很烦人,但最终它不起作用。 一旦我有完全相同的愚蠢的问题。

事实certificate,我已经创build了用户'pma',但没有赋予它在'phpmyadmin'数据库中select插入更新删除的权限。 是的 – 你需要在这些烫发设置后重新login。

我只是想添加我所做的关系function在Ubuntu 8.04 LTS Lucid上的工作:

  • 创build空数据库phpmyadmin
  • 用密码创build了用户pma
  • 授予特权
  • $ zcat /usr/share/doc/phpmyadmin/examples/create_tables_mysql_4_1_2+.sql.gz | mysql -u pma -p phpmyadmin
  • 进入秘密
  • $ sudo vi /etc/phpmyadmin/config.inc.php
  • 取消注释:

    / *authenticationtypes* /

    $ cfg ['Servers'] [$ i] ['auth_type'] ='http';

    / *服务器参数* /

    $ cfg ['Servers'] [$ i] ['host'] ='localhost';

    $ cfg ['Servers'] [$ i] ['connect_type'] ='tcp';

    // $ cfg ['Servers'] [$ i] ['compress'] = false;

    / *selectmysqli如果你的服务器有* /

    // $ cfg ['Servers'] [$ i] ['extension'] ='mysql';

    / *可选:用于高级function的用户* /

    $ cfg ['Servers'] [$ i] ['controluser'] ='pma';

    $ cfg ['Servers'] [$ i] ['controlpass'] ='秘密';

    / *可选:高级phpMyAdminfunction* /

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

2010年10月8日星期五的文件

当有些事情是痛苦的时候,我应该logging下解决scheme。

我在Windows 7上安装了WAMP ,在phpMyAdmin中出现了以下两行红线。

  1. 用于处理链接表的附加function已被禁用。 找出为什么点击这里。

  2. #1045 – 访问拒绝用户'root'@'localhost'(使用密码:否)

在3分钟内摆脱第一批红色文字

从phpMyAdmin中的Home单击导入选项卡,然后单击浏览并在文件名框中粘贴以下位置。

C:\ wamp \ apps \ phpmyadmin3.2.0.1 \ scripts ,然后select“create_tables.sql”并单击“go”。

从WAMP菜单打开MySQL控制台,然后回车。

当你login时,粘贴在接下来的两行。

 CREATE USER 'phpmyadmin'@'localhost' IDENTIFIED BY 'pmapass'; GRANT SELECT, INSERT, UPDATE, DELETE ON phpmyadmin.* TO 'phpmyadmin'@'localhost'; 

打开写字板,然后单击打开文档 。 粘贴在下面的文本打开文件。

 C:\wamp\apps\phpmyadmin3.2.0.1\config.inc.php 

然后删除PHP标签之间的内容并粘贴下面的文本。

 /* Servers configuration */ $i = 0; /* Server: localhost [1] */ $i++; $cfg['Servers'][$i]['verbose'] = 'localhost'; $cfg['Servers'][$i]['host'] = 'localhost'; $cfg['Servers'][$i]['port'] = ''; $cfg['Servers'][$i]['socket'] = ''; $cfg['Servers'][$i]['connect_type'] = 'tcp'; $cfg['Servers'][$i]['extension'] = 'mysqli'; $cfg['Servers'][$i]['auth_type'] = 'config'; $cfg['Servers'][$i]['user'] = 'root'; $cfg['Servers'][$i]['password'] = ''; $cfg['Servers'][$i]['AllowNoPassword'] = true; /* User for advanced features */ $cfg['Servers'][$i]['controluser'] = 'pma'; $cfg['Servers'][$i]['controlpass'] = 'pmapass'; /* Advanced phpMyAdmin features */ $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]['controluser'] = 'phpmyadmin'; $cfg['Servers'][$i]['controlpass'] = 'pmapass'; /* End of servers configuration */ $cfg['DefaultLang'] = 'en-utf-8'; $cfg['ServerDefault'] = 1; $cfg['UploadDir'] = ''; $cfg['SaveDir'] = ''; 

点击保存!

closures浏览器并再次打开,如果错误仍然存​​在,请单击“刷新”并将其消失。

摆脱第二批红色文本

现在设置MySQL的安全性并摆脱其他错误。

如果打开,请closuresphpMyAdmin。

从WAMP菜单打开MySQL控制台并粘贴以下两行。

 SET PASSWORD FOR 'root'@'localhost' = PASSWORD('**yourpassword**');FLUSH PRIVILEGES; SET PASSWORD FOR 'root'@'127.0.0.1' = PASSWORD('**yourpassword**');FLUSH PRIVILEGES;* 

按Enter键

再次打开“config.inc.php”并更改以下行以启用与上面相同的密码。

 $cfg['Servers'][$i]['password'] = '**yourpassword**'; 

你完成了! 打开phpMyAdmin,你的红色警告文本将消失!