AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 66008
Accepted
The Disintegrator
The Disintegrator
Asked: 2009-09-17 10:59:57 +0800 CST2009-09-17 10:59:57 +0800 CST 2009-09-17 10:59:57 +0800 CST

phpMyAdmin:使用链接表的附加功能已被停用

  • 772

我在 phpMyAdmin 版本的主页中收到此错误:3.2.1deb1 使用链接表的附加功能已被停用。要找出原因,请单击此处。 当我单击链接时,我会收到此报告。

$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

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

但它仍然无法正常工作......桌子是空的。我认为他们应该有一些东西。我对历史特征的关系感兴趣。显然我已经阅读了文档。也许还有其他东西正在破坏这些价值观?有硬汉吗?

mysql
  • 9 9 个回答
  • 48881 Views

9 个回答

  • Voted
  1. buggedcom
    2009-12-10T23:31:50+08:002009-12-10T23:31:50+08:00

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

    • 27
  2. Best Answer
    The Disintegrator
    2009-09-19T06:09:39+08:002009-09-19T06:09:39+08:00

    到处寻找我最终编辑了这个文件

    /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尽管它在安装时已经运行,但我还是运行了。它问我是否要重新创建数据库,我的回答是否定的。

    现在

    $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,事实是,我不在乎了。至少我现在想要的功能会起作用

    • 3
  3. aadravid
    2010-08-09T13:35:31+08:002010-08-09T13:35:31+08:00

    按照在 phpMyAdmin 中启用链接表中的说明进行操作。在我的情况下,这解决了同样的问题!

    • 3
  4. Teshy
    2010-12-13T08:08:42+08:002010-12-13T08:08:42+08:00

    如果你收到一条消息说

    不行[文档]”

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

    我也从

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

    至

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

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

    • 2
  5. l0l
    2010-11-11T07:34:36+08:002010-11-11T07:34:36+08:00

    执行以下操作将纠正问题。

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

    2) mysql -uroot -p=> 进入 MySQL 并使用 scripts/ 命令create_table.sql创建数据库 (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并打开网页,错误消失了。

    • 1
  6. hdanniel
    2009-09-18T08:03:22+08:002009-09-18T08:03:22+08:00

    您需要为 pmadb 数据库创建结构。在脚本目录中有一个 create_tables.sql 可以做到这一点。如果您选择其他名称,还要在文件中检查数据库的名称。

    • 0
  7. Max
    2010-01-05T16:28:05+08:002010-01-05T16:28:05+08:00

    当您确定一切都按照文档设置但最终它不起作用时,这真的很烦人。一旦我遇到了完全相同的愚蠢问题。

    事实证明,我已经创建了用户“pma”,但没有授予它在“phpmyadmin”数据库中选择-插入-更新-删除的权限。是的 - 您需要在设置这些权限后重新登录。

    • 0
  8. user49351
    2010-07-27T05:49:52+08:002010-07-27T05:49:52+08:00

    我只想添加我所做的以使关系功能在 Ubuntu 8.04 LTS Lucid 上工作:

    • 创建空数据库 phpmyadmin
    • 使用密码创建用户 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
    • 未注释:

      /* 认证类型 */

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

      /* 服务器参数 */

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

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

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

      /* 如果您的服务器有 mysqli,请选择它 */

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

      /* 可选:高级功能的用户 */

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

      $cfg['Servers'][$i]['controlpass'] = 'secret';

      /* 可选:高级 phpMyAdmin 功能 */

      $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['服务器'][$i]['column_info'] = 'pma_column_info';

      $cfg['Servers'][$i]['history'] = 'pma_history';

      $cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';

    • 0
  9. user56532
    2010-10-09T02:06:19+08:002010-10-09T02:06:19+08:00

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

    当某件事很痛苦时,我应该记录解决方案。

    我在 Windows 7 上安装的WAMP在 phpMyAdmin 中出现了以下 2 条红线。

    1. 用于处理链接表的附加功能已停用。要找出原因,请单击此处。

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

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

    在HomephpMyAdmin 中,单击Import选项卡,然后单击Browse并将以下位置粘贴到文件名框中。

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

    从 WAMP 菜单中打开 MySQL 控制台,然后按 Enter。

    登录后,粘贴接下来的两行。

    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'] = '';
    

    点击保存!

    关闭浏览器再打开,如果错误仍然存​​在,点击刷新就消失了。

    摆脱第二批红色文字

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

    如果它已打开,则关闭 phpMyAdmin。

    从 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,您的红色警告文本将消失!

    • 0

相关问题

  • 开源与专有关系 db mgt 系统的优缺点是什么?

  • 在 solaris 10 上为 mysql 设置 max_allowed_pa​​cket

  • 如何移动 MySQL 的数据目录?

  • 通过 VPN 连接什么是远程服务器 IP?

  • mysql崩溃

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    从 IP 地址解析主机名

    • 8 个回答
  • Marko Smith

    如何按大小对 du -h 输出进行排序

    • 30 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    Windows 中执行反向 DNS 查找的命令行实用程序是什么?

    • 14 个回答
  • Marko Smith

    如何检查 Windows 机器上的端口是否被阻塞?

    • 4 个回答
  • Marko Smith

    我应该打开哪个端口以允许远程桌面?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    MikeN 在 Nginx 中,如何在维护子域的同时将所有 http 请求重写为 https? 2009-09-22 06:04:43 +0800 CST
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    0x89 bash中的双方括号和单方括号有什么区别? 2009-08-10 13:11:51 +0800 CST
  • Martin Hope
    kch 如何更改我的私钥密码? 2009-08-06 21:37:57 +0800 CST
  • Martin Hope
    Kyle Brandt IPv4 子网如何工作? 2009-08-05 06:05:31 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve