phpMyAdmin 个性化设置,字体大小设置,去掉“以树形显示数据库”,禁用“发送错误报告”

个性化设置phpMyAdmin

在使用phpMyAdmin 3.5.8.2时,发现:

如果数据库有相同的前缀,左边数据库导航会把前缀合并,即所谓的“以树形显示数据库”,真的有点不习惯,如下图所示:

不过,可以去掉这个功能,操作如下:

设置 --> 导航框架 --> 数据库 --> 去掉勾选“以树形显示数据库”,保存设置。


但是保存的时候,提示:你的偏好将仅作用于本次会话。要想永久保存需要 phpMyAdmin 高级功能。

所以,为了永久有效,打开 config.inc.php 文件,追加配置 $cfg['LeftFrameDBTree'] = false;

注意phpMyAdmin 4.x 以后的版本 配置选项设置为:$cfg['NavigationTreeEnableGrouping'] = false;


禁用“发送错误报告”

$cfg['SendErrorReports'] = 'never'; // 发送错误报告


修改字体大小

1、找到文件 phpMyAdmin/themes/pmahomme/css/common.css.php

修改1:

html {
    font-size: <?php echo $_SESSION['PMA_Theme']->getFontSize(); ?>
}

改为

html {
    font-size: 13px; /* 修改字体大小 */
}

修改2:

a,
a:link,
a:visited,
a:active,
button.mult_submit,
.checkall_box+label {
    text-decoration: none;
    color: #235a81;
    cursor: pointer;
    outline: none;
}

改为

a,
a:link,
a:visited,
a:active,
button.mult_submit,
.checkall_box+label {
    text-decoration: none;
    color: #235a81;
    cursor: pointer;
    outline: none;
    font-size: 13px; /* 修改字体大小 */
}

修改3:

.tblcomment {
    font-size: 70%;
    font-weight: normal;
    color: #000099;
}

改为

.tblcomment {
    font-size: 13px; /* 修改字体大小 */
    font-weight: normal;
    color: #000099;
}

修改4:

在最底部,增加样式

small {font-size: 13px; /* 修改字体大小 */}

2、找到文件 phpMyAdmin/themes/pmahomme/css/navigation.css.php

修改1:

li.fast_filter input {
    margin: 3px 0 0 0;
    font-size: 0.7em;
    padding-top: 2px;
    padding-bottom: 2px;
    padding-<?php echo $left; ?>: 4px;
    padding-<?php echo $right; ?>: 1.7em;
     100%;
}

改为

li.fast_filter input {
    margin: 3px 0 0 0;
    font-size: 13px; /* 修改字体大小 */
    padding-top: 2px;
    padding-bottom: 2px;
    padding-<?php echo $left; ?>: 4px;
    padding-<?php echo $right; ?>: 1.7em;
     100%;
}
原文地址:https://www.cnblogs.com/52php/p/5670187.html