Small problems with Phppgadmin

Source: Internet
Author: User

Unable to log in, the error message is displayed as follows:

Error:login disallowed for security reasons.

Workaround:

Modifies the extra_login_security variable in the conf/config.inc.php file, changed from the default false to True

$conf [' extra_login_security '] = false; Because Phppgadmin sets a number of default values, you can modify the config.ini.php file directly if the login information is different from the port number or host. Unable to display database after successful login, prompt version does not support

Error:version of PostgreSQL not supported. Upgrade to version or later.

The workaround is as follows: Add case ' 10. ': Into the Code
I Change the file:*/usr/share/phppgadmin/classes/database/connection.php*//Detect version and choose appropriate Database Driverswitch (substr ($version, 0,3)) {case        ' "://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 ';        Case ' 7.4 ': return ' Postgres74 '; break;}

Small problems with Phppgadmin

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.