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
    • 最新
    • 标签
主页 / user-16421

The Disintegrator's questions

Martin Hope
The Disintegrator
Asked: 2009-09-17 10:59:57 +0800 CST

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

  • 13

我在 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 个回答
  • 48881 Views
Martin Hope
The Disintegrator
Asked: 2009-09-14 21:39:21 +0800 CST

更改 MySQL 中所有表的所有列中的字符集和排序规则

  • 22

我需要在所有表的所有列中执行这些语句。

alter table table_name charset=utf8;
alter table table_name alter column column_name charset=utf8;

是否可以在 MySQL 中以任何方式自动执行此操作?我宁愿避免使用 mysqldump

更新:Richard Bronosky 给我指路了 :-)

我需要在每个表中执行的查询:

alter table DBname.DBfield CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;

生成所有其他查询的疯狂查询:

SELECT distinct CONCAT( 'alter table ', TABLE_SCHEMA, '.', TABLE_NAME, '  CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;' ) FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = 'DBname';

我只想在一个数据库中执行它。一次执行所有操作花费的时间太长了。事实证明,它为每个表的每个字段生成一个查询。并且每个表只需要一个查询(与救援不同)。获取文件的输出是我实现它的方式。

如何将输出生成到文件:

mysql -B -N --user=user --password=secret -e "SELECT distinct CONCAT( 'alter table ', TABLE_SCHEMA, '.', TABLE_NAME, '  CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;' ) FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = 'DBname';" > alter.sql

最后执行所有查询:

mysql --user=user --password=secret < alter.sql

谢谢理查德。你就是那个男人!

mysql
  • 6 个回答
  • 38569 Views
Martin Hope
The Disintegrator
Asked: 2009-09-03 21:53:27 +0800 CST

如何安装本地 .deb 文件

  • 1

我正在尝试在 debian Lenny 中安装最新版本的 maatkit。我找不到最新版本的存储库,所以我得到了 .deb 文件。问题是如何安装此文件?man aptitude 没有给我任何线索。

存储库将是理想的解决方案。如果您知道带有 php 5.3 的存储库,则可以加分

debian aptitude maatkit
  • 2 个回答
  • 996 Views

Sidebar

Stats

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

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

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

    • 9 个回答
  • Marko Smith

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

    • 3 个回答
  • Marko Smith

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

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +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