Need help Resolving a PostgreSQL Connection Problem |
I'm presently working on a Python application that connects to a PostgreSQL database using the psycopg2 package, however I've run across a connection problem that has me stumped, so I read this post from a scaler for clarification but couldn't get it. The code I'm using to connect to the database is as follows:
Code: import psycopg2 When I execute this code, however, I receive the following error message: Code: Error: could not connect to server: No such file or directory I confirmed that PostgreSQL is operating and that the connection information is valid. Could you possibly assist me in determining what is generating this problem and how to remedy it? Your help is much appreciated.
You can try changing this some time this will fix the db problems connecting.
PHP Code: // Change this What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |