If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

"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:
For example:
- 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)?
etc.

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,