On 18/04/2008, Nikhil <[EMAIL PROTECTED]> wrote: [...] > $su - postgres > and running: > $/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data > $/usr/local/pgsql/bin/postgres -D /usr/local/pgsql/data > > I get the following: > LOG: database system was shut down at 2008-04-16 ... > LOG: database system is ready to accept connections > LOG: autovacuum launcher started > > But then when I try: > createdb db_test > psql db_test > it gives me nothing at all. In fact, anything I type into the system > seems to give no response. Am I doing something wrong?
At a guess the you are missing an '&' at the end of the 2nd command (postgres -D ...) so it is running in the foreground so anything typed is simply being ignored as it does not read stdin. Adding the & will make it run in the background and give you back a shell prompt so the other commands will actually be run. Running postgres by hand like this is fairly unusual. Normally it would be started/stopped by the main init scripts which is a far more reliable way. -- Phil Davis --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---