phpmyadmin - 默认为结构而不是浏览
我可以将 phpMyAdmin 中的默认设置设置为在结构中打开而不是浏览吗?
谢谢
Can I set the default in phpMyAdmin to open in structure instead of browse?
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(11)
如果您可能使用导航框架中表名称旁边的“快速访问图标”,则可以对其进行配置。
从配置文件文档来看:
对于 MAMP 3.x,
DefaultTabTable
配置参数适用。需要在
MAMP/bin/phpMyAdmin/config.inc.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:
For MAMP 3.x the
DefaultTabTable
configuration parameter applies. It needs to be set inMAMP/bin/phpMyAdmin/config.inc.php
, e.g.:正如我在评论中所说,您可以单击表名称左侧的小表图标(假设,正如 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.
添加:
$cfg['DefaultTabTable'] = 'tbl_struct.php';
到
config.inc.php
或config.default.php
。您还可以更改
LeftDefaultTabTable
来更改图标。选项包括:Add:
$cfg['DefaultTabTable'] = 'tbl_structure.php';
To either
config.inc.php
orconfig.default.php
.You can also change
LeftDefaultTabTable
which changes the icon. The options are:在 phpMyAdmin 4.8.2 中...
我没有看到任何更改默认链接行为的设置,但您还可以添加一个额外的“第二个快速访问图标的目标”并定义其默认视图行为如果需要,可以采用不同的方式。它在表格左侧添加了一个附加的“快速访问”图标,链接与您选择的行为。
In phpMyAdmin 4.8.2...
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.
我使用旧版本的 XAMPP (1.6.7),其中包含旧版本的 phpMyAdmin (2.11.7),但以下内容对我有用。
在 /phpmyadmin/libraries/config.default.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).
Save this config file and refresh PhpMyAdmin in your browser.
Hope that helps!
在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.
导航.php
phpMyAdmin 版本 3.3.8 中第 #646 行附近
插入
AFTER
以使导航中的文本字段名称链接的行为与其左侧的小图标相同。
navigation.php
Around Line #646 in phpMyAdmin version 3.3.8
Insert
AFTER
to make the text field name link in the navigation to behave the same as the little icon to the left of it.
在我的版本中,它的配置设置应该是
它在示例配置文件中列出。但是,第 34 行的 /libraries/navigation/Nodes/Node_Table.class.php 忽略此设置并直接使用“sql.php”。我将该行更改为
On that line,它对我来说效果很好。
In my version, the configuration setting for it is supposed to be
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
On that line and it works fine for me.
转到 phpMyAdmin/config.inc.php
查找行开头
并将其设置为值
重新启动 Apache,清空会话数据(phpMyAdmin 徽标下的第二个图标,或者注销并登录,不确定是否需要此步骤,一些配置缓存在用户会话中)
这解决了 MAMP 5.7 中的问题(即,如果单击左侧导航树中的表名称,“浏览”选项卡将打开)。 PhpMyAdmin 位于 MAMP/bin 文件夹中
Go to phpMyAdmin/config.inc.php
find line starting
and set it to value
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
我按照 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.
根据 phpMyAdmin 版本,其中任何一个都应该起作用:
此外,您实际上可能将这些设置保存在 phpmyadmin 数据库中,table=pma__userconfig。进入 phpmyadmin 主页,点击设置 ->导航框架 -> 表格 ->快速访问图标的目标
Depending on the phpMyAdmin version either of these should work:
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