The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

CPANEL - PHPPgADMIN

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

  1. roanbrasil

    roanbrasil Registered

    Joined:
    Feb 8, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    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:
    16
Loading...

Share This Page