Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Feb 2007
    Posts
    1

    Unhappy CPANEL - PHPPgADMIN

    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. #2
    ujr
    ujr is offline
    Member
    Join Date
    Mar 2004
    Posts
    294

Similar Threads & Tags
Similar threads

  1. cPanel 11.25.0 - PhpPgAdmin
    By noosalife in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-11-2009, 05:55 PM
  2. phppgadmin problems
    By QurazyQuisp in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 01-11-2009, 09:29 PM
  3. phpPgAdmin
    By christopher one in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-16-2005, 04:25 PM
  4. phppgadmin Bug in cPanel
    By woolly in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 01-04-2005, 10:39 AM
  5. phpPgAdmin
    By jester.ro in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 12-27-2004, 01:50 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube