"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
"sql-ledger" is not the username of phppgadmin. It's probably a username of a PostreSQL-Server.
In "createdb" there is no option for the password. You can use a .pgpass file in the HOME directory of the calling user. Please refer the documentation.
Otherwise you can execute a "CREATE DATABASE" - statement with phppgadmin or with a php-script or directly as command "createdb" or as an SQL-statement in very much program languages like Perl, Python etc.
If you tell us more of your project we will give you more hints. But we don't want to guess a lot:
- Do you have direct access to the PostgreSQL-Server (Is the server running on your computer at home)?
- What operating system do you use?
- Do you have some skills with the command line?
- Did you develop some PHP-scripts or any other programs in any other programming languages (and what languages)?
Hi bibjet thanks for ur replay, and sorry for my english
sql-ledger is i'm creating the username in phppgadmin database,
my project is, i add one user from sugarcrm to my project then the user also created in to sql-ledger project so that time create the database, conf file and template through the php code my above code it's running successfully on postgresql 8.1 version but now i'm using 9.1 version,