PDA

View Full Version : Problem in connecting to PostgreSQL



c_srikanth1984
23rd April 2009, 08:28
Hi,
I am not able to connect to the database in PostgreSQL.
The error is QPSQL driver is not loaded.
I have followed the steps given in help "How to build QPSQL Plugin"
even then i am not able to connect to it.
How to Load driver QPSQL.
I have checked with SQLBrowser example in QTExamples it only shows MYSQL and QSQLITE drivers.
Help me PLZ....

spirit
23rd April 2009, 08:30
did you add path to PostrgeSQL libs(dlls) in your PATH(LD_LIBRARY_PATH) variable?

c_srikanth1984
23rd April 2009, 10:02
I am Using linux RHEL5.1 I have installed PostgreSQL latest.
Its working. I am Not able to load driver.
I dont know is it created or not.
When I followed the steps given in "How to Build QPSQL for UNIX ..."
I only got libqsqlpsql.a file in it.
there is no libqsqlpsql.so and libqsqlpsql.so.debug files in it. wat could be the reason is it correct.

c_srikanth1984
24th April 2009, 08:18
Anyone have the solution for my problem?