Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    May 2003
    Posts
    47

    Default postgre database not showing on cpanel

    Everything was working fine, after I migrate the database from one server to another using the dump all of the pg. The tables and the users just was gone from cpanel, but they are in the pgadmin just fine.

    So I need to know how to make it show again. The new ones databases and the new users it says it was added but do not show on cpanel.

    Anyone know how to fix it ?

  2. #2
    Member
    Join Date
    Jan 2004
    Posts
    41

    Default

    This is happening to me too!
    Start suddenly!

  3. #3
    Member
    Join Date
    Jan 2004
    Posts
    41

    Default

    In cPanel FAQ I found the solution:

    Modify /var/lib/pgsql/data/pg_hba.conf
    It should contain the following...

    local all all md5
    host all all 127.0.0.1 255.255.255.255 md5

    Change 'md5' to 'trust' to disable authentication then restart postgres.
    `/etc/init.d/postgresql restart`

    Now you should be able to connect to postgresql as user 'postgres' without a password to modify the password.

    `psql -u template1`

    Run the following sql command.

    "alter user postgres with password 'NEW PASSWORD HERE';"

    Finally change /var/lib/pgsql/data/pg_hba.conf back to its original format and restart postgresql one more time.
    Now you should be able to authenticate using user postgres and the password you specified.


    BUT, this solution is absurd, because the postgre user stay with a non-md5 password!
    Please cPanel team, fix this problem....
    Last edited by garak; 04-28-2005 at 12:15 PM.

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Feb 2002
    Location
    Pula, Croatia
    Posts
    196
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Quote Originally Posted by garak
    In cPanel FAQ I found the solution:

    Modify /var/lib/pgsql/data/pg_hba.conf
    It should contain the following...

    local all all md5
    host all all 127.0.0.1 255.255.255.255 md5

    Change 'md5' to 'trust' to disable authentication then restart postgres.
    `/etc/init.d/postgresql restart`

    Now you should be able to connect to postgresql as user 'postgres' without a password to modify the password.

    `psql -u template1`

    Run the following sql command.

    "alter user postgres with password 'NEW PASSWORD HERE';"

    Finally change /var/lib/pgsql/data/pg_hba.conf back to its original format and restart postgresql one more time.
    Now you should be able to authenticate using user postgres and the password you specified.


    BUT, this solution is absurd, because the postgre user stay with a non-md5 password!
    Please cPanel team, fix this problem....

    Same problem here, here it comes, second bugzilla entry this week :-/

  5. #5
    Member
    Join Date
    Oct 2004
    Posts
    74

  6. #6
    Registered User
    Join Date
    May 2004
    Posts
    4

    Default pg_hba.conf

    try this :
    local all postgres trust
    local all all md5
    host all all 127.0.0.1 255.255.255.255 md5

  7. #7
    Member Leandro's Avatar
    Join Date
    Sep 2003
    Posts
    48

    Default The error continue

    Are any secure way to configure the pg_hba.conf

    because if use the password login like:

    local all postgre trust
    local all all md5
    host all all 127.0.0.1 255.255.255.255 md5

    The result is:

    test

    Warning: pg_connect(): Unable to connect to PostgreSQL server: FATAL: Password authentication failed for user "user" in /home/user/public_html/pg_test.php on line 43

    and if i use in the pg_hba.conf, the result is:

    local all all trust
    host all all 127.0.0.1 255.255.255.255 trust



    test

    The connection to the database is Ok!!


    But is very insure, what can i configure the file correct ???

    Thanks and good day!!

Similar Threads & Tags
Similar threads

  1. add user to database not showing in cPanel Web
    By kenji0e in forum Database Discussions
    Replies: 3
    Last Post: 11-13-2011, 07:49 AM
  2. mysql database no longer showing up in cpanel
    By audrey in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 07-07-2011, 07:54 PM
  3. cpanel current database list is showing .sql.gz files as databases
    By spaceman in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 01-04-2008, 07:32 AM
  4. MySQL database not showing in cPanel
    By Kaelan in forum Database Discussions
    Replies: 2
    Last Post: 06-16-2004, 08:24 AM
  5. all database of the mysql not showing in cpanel
    By darksen in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 12-11-2003, 05:15 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube