Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2013

    Unanswered: How to create Postgresql database using in PHP code


    i was use the code below

    $test = `createdb -U sql-ledger $db 2>&1`;

    sql-ledger is username of phppgadmin

    but i can get the error

    "Password: createdb: could not connect to database postgres: fe_sendauth: no password supplied"

    how to pass the password?

    please any one know the solution give me the replay

  2. #2
    Join Date
    Nov 2004
    out on a limb
    Provided Answers: 59
    I would expect the password to be supplied as part of establishing the connection BEFORE trying to do anything to the db
    I'd rather be riding on the Tiger 800 or the Norton

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts