码迷,mamicode.com
首页 > Web开发 > 详细

使用phppgadmin 遇到的小问题

时间:2018-07-21 14:59:52      阅读:434      评论:0      收藏:0      [点我收藏+]

标签:设置   turn   小问题   ble   直接   错误   nec   res   解决   

 

 无法登录,显示错误消息如下:

  Error:login disallowed for security reasons.

解决方法:

  修改conf/config.inc.php文件中的extra_login_security变量,由默认的false改为true

  $conf[‘extra_login_security‘] = false;
  由于phppgadmin设置了很多默认值,如果登录信息如端口号或者host不同,可直接修改config.ini.php文件。

登录成功后无法显示数据库,提示版本不支持

  error:version of postgresql not supported. please upgrade to version or later. 

解决方法如下:添加  case ‘10.‘: 到代码中即可

I change the file:

*/usr/share/phppgadmin/classes/database/Connection.php*

// Detect version and choose appropriate database driver
switch (substr($version,0,3)) {
        case ‘10.‘: // add this line to fix partialy the problem*
        case ‘9.2‘: return ‘Postgres‘; break;
        case ‘9.1‘: return ‘Postgres91‘; break;
        case ‘9.0‘: return ‘Postgres90‘; break;
        case ‘8.4‘: return ‘Postgres84‘; break;
        case ‘8.3‘: return ‘Postgres83‘; break;
        case ‘8.2‘: return ‘Postgres82‘; break;
        case ‘8.1‘: return ‘Postgres81‘; break;
        case ‘8.0‘:
        case ‘7.5‘: return ‘Postgres80‘; break;
        case ‘7.4‘: return ‘Postgres74‘; break;
}

 

使用phppgadmin 遇到的小问题

标签:设置   turn   小问题   ble   直接   错误   nec   res   解决   

原文地址:https://www.cnblogs.com/ryanzheng/p/9345841.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!