First, you need to make sure postgresql is running. Open the console and run "ps auxw | grep post" and make sure the server is running. You must have at least four processes, including the "postgres: writer process". If you do not, you have not started it. Even if you run it, you must configure it to listen on the corresponding port (127.0.0.1 and "localhost"). Have you edited the postgres.conf file and the pg_hba.conf files? If so, restart the server? Are you using the latest pg gem? How to start the server?
~ Charles ~
source share