列不显示在phpmyadmin中的Structure选项卡下

时间:2012-11-26 14:13:13

标签: phpmyadmin structure

我有史以来第一次设置了phpmyadmin,一切似乎都运行正常,只是在Structure选项卡下没有任何列显示。这被证明是有问题的,因为我希望删除/更改我的一些列。我无法找到有关为何发生这种情况的任何信息。

4 个答案:

答案 0 :(得分:2)

我遇到了这个问题并重启了Mysql Server帮助。

我不知道实际问题是什么......

-FT

答案 1 :(得分:2)

我有同样的问题。原因是在/tmp目录中更改了写入权限。

我在 phpmyadmin SQL标签中运行Describe TABLENAME;命令失败,并显示错误消息,指出它无法写入/tmp目录。

所以我更改了/tmpchmod的权限,问题就消失了。

答案 2 :(得分:0)

当类型列包含ű或ő字符时,我遇到了同样的问题。例如enum('műszaki','stb')。其他字符如áíóé不会出现此错误。正如我所见,一切都设置为UTF-8。所以我的解决方案是:

在phpMyAdmin verison 4.0.4中,我更改了第3018行的Util.class.php。

//$displayed_type .= substr($printtype, 0, $GLOBALS['cfg']['LimitChars']);
$displayed_type .= mb_substr($printtype, 0, $GLOBALS['cfg']['LimitChars']);

在旧版本的phpMyAdmin中,我更改了tbl_structure.php第276行。

//$type = '<abbr title="' . $type . '">' . substr($type, 0, $GLOBALS['cfg']['LimitChars']) . '</abbr>';
$type = '<abbr title="' . $type . '">' . mb_substr($type, 0, $GLOBALS['cfg']['LimitChars']) . '</abbr>';

答案 3 :(得分:0)

/ tmp文件夹的正确权限:

chmod 1777 /tmp