phpmyadmin - 默认为结构而不是浏览

发布于 2024-08-31 06:29:06 字数 56 浏览 3 评论 0原文

我可以将 phpMyAdmin 中的默认设置设置为在结构中打开而不是浏览吗?

谢谢

Can I set the default in phpMyAdmin to open in structure instead of browse?

thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(11

抱猫软卧 2024-09-07 06:29:06

如果您可能使用导航框架中表名称旁边的“快速访问图标”,则可以对其进行配置。

从配置文件文档来看:

$cfg['LeftDefaultTabTable'] 字符串

定义单击小图标时默认显示的选项卡
在每个表名称旁边
导航面板。可能的值:
“tbl_struct.php”,“tbl_sql.php”,
“tbl_select.php”、“tbl_change.php”或
“sql.php”。

对于 MAMP 3.xDefaultTabTable配置参数适用。需要在MAMP/bin/phpMyAdmin/config.inc.php中设置,例如:

$cfg['DefaultTabTable'] = 'sql.php';

If perchance you are using the "quick access icon" next to the table name in the navigation frame, this may be configured.

From the configuration file documentation:

$cfg['LeftDefaultTabTable'] string

Defines the tab displayed by default when clicking the small icon
next to each table name in the
navigation panel. Possible values:
"tbl_structure.php", "tbl_sql.php",
"tbl_select.php", "tbl_change.php" or
"sql.php".

For MAMP 3.x the DefaultTabTable configuration parameter applies. It needs to be set in MAMP/bin/phpMyAdmin/config.inc.php, e.g.:

$cfg['DefaultTabTable'] = 'sql.php';
冬天旳寂寞 2024-09-07 06:29:06

正如我在评论中所说,您可以单击表名称左侧的小表图标(假设,正如 Mike B 所说,我们正在讨论左侧的表列表),它将打开表结构页面。

AFAIK,通过配置指令切换这些链接上的行为是不可能的。您必须深入研究代码并在那里进行更改。不过不应该太复杂。

As I said in my comment, you can click on the little table icon to the left of the table name (assuming, as Mike B said, we are talking about the table list on the left) and it will open up the table structure page.

AFAIK, switching the behavior on those links is not possible through a configuration directive. You would have to dig through the code and change it in there. Shouldn't be too complicated, though.

青春有你 2024-09-07 06:29:06

添加:

$cfg['DefaultTabTable'] = 'tbl_struct.php';

config.inc.phpconfig.default.php

您还可以更改 LeftDefaultTabTable 来更改图标。选项包括:

  • 'tbl_struct.php' = 字段列表
  • 'tbl_sql.php' = SQL 表单
  • 'tbl_select.php' = 搜索页面
  • 'tbl_change.php' = 插入行页面
  • 'sql.php' = 浏览页面

Add:

$cfg['DefaultTabTable'] = 'tbl_structure.php';

To either config.inc.php or config.default.php.

You can also change LeftDefaultTabTable which changes the icon. The options are:

  • 'tbl_structure.php' = fields list
  • 'tbl_sql.php' = SQL form
  • 'tbl_select.php' = search page
  • 'tbl_change.php' = insert row page
  • 'sql.php' = browse page
妄想挽回 2024-09-07 06:29:06

在 phpMyAdmin 4.8.2 中...

  1. 单击左侧导航窗格顶部的双齿轮图标。
  2. 然后单击弹出模式中的“表格”选项卡。 (最后一个选项卡)
  3. 您可以在其中设置“快速访问图标的目标”设置,它指的是表格链接左侧的小索引卡图标左窗格。

输入图片此处描述
输入图片此处的描述

我没有看到任何更改默认链接行为的设置,但您还可以添加一个额外的“第二个快速访问图标的目标”并定义其默认视图行为如果需要,可以采用不同的方式。它在表格左侧添加了一个附加的“快速访问”图标,链接与您选择的行为。

In phpMyAdmin 4.8.2...

  1. Click the double gears icon at the top of the left navigation pane.
  2. Then click the "Tables" tab within the popup modal. (last tab)
  3. There you can set the "Target for quick access icon" setting, which is referring to the little index card icon to the left of the table links in the left pane.

enter image description here
enter image description here

I didn't see any settings to change the default link behavior, but you can also add an additional "Target for second quick access icon" and define it's default view behavior differently if desired. It adds an additional "Quick access" icon to the left of the table links with your chosen behavior.

铁轨上的流浪者 2024-09-07 06:29:06

我使用旧版本的 XAMPP (1.6.7),其中包含旧版本的 phpMyAdmin (2.11.7),但以下内容对我有用。

在 /phpmyadmin/libraries/config.default.php 文件中,有一段代码用于处理如何查看表。

更改最后两行代码以适合您的目的,对于我来说,我想在“浏览”视图中打开表格,而不是“结构”视图(这是我的默认设置)。

   /**
     * Possible values:
     * 'tbl_structure.php' = fields list
     * 'tbl_sql.php' = SQL form
     * 'tbl_select.php' = select page
     * 'tbl_change.php' = insert row page
     * 'sql.php' = browse page
     *
     * @global string $cfg['DefaultTabTable']
     */

    // Show table Structure - Default
    $cfg['DefaultTabTable'] = 'tbl_structure.php';

    // Uncomment below to show table data
    // $cfg['DefaultTabTable'] = 'sql.php';

保存此配置文件并在浏览器中刷新 PhpMyAdmin。

希望有帮助!

I use an old version of XAMPP (1.6.7) which contains an old version of phpMyAdmin (2.11.7), but the following worked for me.

In the /phpmyadmin/libraries/config.default.php file there is a section of code that handles how the table is viewed.

Change the last two lines of code to suit your purposes, for mine I wanted to open tables in "Browse" view, not "Structure" view (which was my default).

   /**
     * Possible values:
     * 'tbl_structure.php' = fields list
     * 'tbl_sql.php' = SQL form
     * 'tbl_select.php' = select page
     * 'tbl_change.php' = insert row page
     * 'sql.php' = browse page
     *
     * @global string $cfg['DefaultTabTable']
     */

    // Show table Structure - Default
    $cfg['DefaultTabTable'] = 'tbl_structure.php';

    // Uncomment below to show table data
    // $cfg['DefaultTabTable'] = 'sql.php';

Save this config file and refresh PhpMyAdmin in your browser.

Hope that helps!

把回忆走一遍 2024-09-07 06:29:06

在3.5.1版本中:进入PhpMyAdmin主页->设置->导航框架->表格选项卡。在这里您将找到一个选项“快速访问图标目标”,

如果您希望它转到“浏览”选项卡,请将其设置为“sql.php”
“tbl_struct.php”如果您希望它转到“结构”选项卡
如果您希望它转到 SQL 选项卡,则为“tbl_sql.php”
“tbl_select.php”如果您希望它转到“搜索”选项卡
如果您希望它转到“插入”选项卡,请输入“tbl_change.php”。

然后保存。

这样,当您单击表名称时,它将转到结构;当单击表名称之前的小图标时,它将转到您刚刚设置的选项卡。

In version 3.5.1: go to the PhpMyAdmin home page -> Settings -> Navigation Frame -> Tables tab. Here you will find an option "Target for quick access icon", and set it

"sql.php" if you want it to go to the Browse tab
"tbl_structure.php" if you want it to go to the Structure tab
"tbl_sql.php" if you want it to go to the SQL tab
"tbl_select.php" if you want it to go to the Search tab
"tbl_change.php" if you want it to go to the Insert tab.

Then Save.

This way when you will click on the table name, it will go to the structure; and when clicking on the little icon before the table name, it will go to the tab you just set.

黒涩兲箜 2024-09-07 06:29:06

导航.php
phpMyAdmin 版本 3.3.8 中第 #646 行附近
插入

$href = $GLOBALS['cfg']['LeftDefaultTabTable'] . '?'
            . $GLOBALS['common_url_query']
            .'&table=' . urlencode($table['Name'])
            .'&goto=' . $GLOBALS['cfg']['LeftDefaultTabTable'];

AFTER

$href = $GLOBALS['cfg']['DefaultTabTable'] . '?'
            .$GLOBALS['common_url_query'] . '&table='
            .urlencode($table['Name']) . '&pos=0';

以使导航中的文本字段名称链接的行为与其左侧的小图标相同。

navigation.php
Around Line #646 in phpMyAdmin version 3.3.8
Insert

$href = $GLOBALS['cfg']['LeftDefaultTabTable'] . '?'
            . $GLOBALS['common_url_query']
            .'&table=' . urlencode($table['Name'])
            .'&goto=' . $GLOBALS['cfg']['LeftDefaultTabTable'];

AFTER

$href = $GLOBALS['cfg']['DefaultTabTable'] . '?'
            .$GLOBALS['common_url_query'] . '&table='
            .urlencode($table['Name']) . '&pos=0';

to make the text field name link in the navigation to behave the same as the little icon to the left of it.

无声无音无过去 2024-09-07 06:29:06

在我的版本中,它的配置设置应该是

  $cfg['DefaultTabTable'] = 'tbl_structure.php';

它在示例配置文件中列出。但是,第 34 行的 /libraries/navigation/Nodes/Node_Table.class.php 忽略此设置并直接使用“sql.php”。我将该行更改为

'text' => $GLOBALS['cfg']['DefaultTabTable'].'?server=' . $GLOBALS['server']

On that line,它对我来说效果很好。

In my version, the configuration setting for it is supposed to be

  $cfg['DefaultTabTable'] = 'tbl_structure.php';

It is listed in sample config file. However, /libraries/navigation/Nodes/Node_Table.class.php on line 34 ignores this setting and uses 'sql.php' directly. I changed that line to

'text' => $GLOBALS['cfg']['DefaultTabTable'].'?server=' . $GLOBALS['server']

On that line and it works fine for me.

有木有妳兜一样 2024-09-07 06:29:06

转到 phpMyAdmin/config.inc.php

查找行开头

$cfg['DefaultTabTable']

并将其设置为值

$cfg['DefaultTabTable'] = 'browse';

重新启动 Apache,清空会话数据(phpMyAdmin 徽标下的第二个图标,或者注销并登录,不确定是否需要此步骤,一些配置缓存在用户会话中)

这解决了 MAMP 5.7 中的问题(即,如果单击左侧导航树中的表名称,“浏览”选项卡将打开)。 PhpMyAdmin 位于 MAMP/bin 文件夹中

Go to phpMyAdmin/config.inc.php

find line starting

$cfg['DefaultTabTable']

and set it to value

$cfg['DefaultTabTable'] = 'browse';

Restart Apache, empty session data (second icon under phpMyAdmin logo, alternatively log-out and log-in, not sure if this step is needed, some configs are cached in user's session)

This solved the issue in MAMP 5.7 (i.e. if you click on table name in left navigation tree, the Browse tab is open). PhpMyAdmin is located in MAMP/bin folder

日记撕了你也走了 2024-09-07 06:29:06

我按照 etheros 的说明进行操作,但无法找到该配置选项,但可以将其添加到(到 confic.inc.php 文件中)。在我的配置文件中,我将其添加到“左框架设置”部分,大约第 160 行。

I was following the instructions from etheros and wasn't able to find that configuration option, but it can just be added (to the confic.inc.php file). In my config file, I added it to the "Left frame setup" section, around line 160.

从此见与不见 2024-09-07 06:29:06

根据 phpMyAdmin 版本,其中任何一个都应该起作用:

$cfg['LeftDefaultTabTable'] = 'tbl_structure.php';

$cfg['NavigationTreeDefaultTabTable'] = 'tbl_structure.php';

此外,您实际上可能将这些设置保存在 phpmyadmin 数据库中,table=pma__userconfig。进入 phpmyadmin 主页,点击设置 ->导航框架 -> 表格 ->快速访问图标的目标

Depending on the phpMyAdmin version either of these should work:

$cfg['LeftDefaultTabTable'] = 'tbl_structure.php';

$cfg['NavigationTreeDefaultTabTable'] = 'tbl_structure.php';

Also you may actually be saving these setting in the phpmyadmin database, table=pma__userconfig. Go ot the phpmyadmin home and click Settings -> Navigation Frame ->Tables -> Target for quick access icon

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文