不灭的焱

革命尚未成功,同志仍须努力下载JDK17

作者:Albert.Wen  添加时间:2023-02-26 20:50:15  修改时间:2024-04-29 11:32:13  分类:MySQL/Redis  编辑

官方网站:phpPgAdmin,运行环境:>= php7.2


修改1:需要开启的php函数:putenv()

找到配置文件php.ini,去掉禁用函数中的 putenv 即可

修改2:让默认的管理员账号 postgres 也能登录

找到文件 ./class/Misc.php 的 第467行,把 

$bad_usernames = array('pgsql', 'postgres', 'root', 'administrator');

改为 

$bad_usernames = array();

修改3:创建索引页面,字段选项框宽度不够

搜索全项目文件内容:width: 10em; (其实只在文件 ./indexex.php 中出现过)

把 

width: 10em;

改为:

width: 20em;

修改4:创建触发器页面,报错: Strict Standards: Only variables should be passed by reference in xxx.php

搜索全项目文件内容,把

error_reporting(E_ALL);

改为:

error_reporting(E_ALL^E_NOTICE);

表示显示notice级以外的错误(即不显示Notice级错误)