Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

CPANEL - PHPPgADMIN

Discussion in 'Database Discussion' started by roanbrasil, Feb 8, 2007.

  1. roanbrasil

    roanbrasil Registered

    Joined:
    Feb 8, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    151
    Hello,
    I have 2 problems.
    I use CPANEL and I need create a BD. I created it. In PHPPgAdmin I have user "x" e pass "y". I created a user x_postgres. I dont have permission to create DataBase...

    Another problem is when I log in with user "x".

    ---------8<---------MY CODE CONNECTION IN PHP -----8<-----------------------------------------

    $this->conn = pg_connect("host=domain.com.br port=5432 dbname=x_test user=x password=y")

    or die ("Problemas ao conectar ao banco de dados!");
    --------->8---------------------------->8--------------------->8-----------------------------------------

    in my code appear this error:

    Warning: pg_connect() [function.pg-connect]: Unable to connect to PostgreSQL server: could not translate host name "domain.com.br" to address: Name or service not known in /home/conarc00/public_html/connectbanco.class.php on line 16
    Problemas ao conectar ao banco de dados!


    what can I do? How can i know the host... ??? How can I give permission to user x_postgres to create BD?

    I am waiting an answer...

    good bye...
     
  2. ujr

    ujr Well-Known Member

    Joined:
    Mar 19, 2004
    Messages:
    290
    Likes Received:
    0
    Trophy Points:
    166
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice