postgresql jdbc database server...?????????
This is pissing me off really bad.I want to execute a java program which has to connect to a database and i have seen that redhat 7.2 provides postgresql database server. i have looked at the postgresql.conf file and all the lines are commented(all lines start with #). i could start the postgresql server and su - postgres and create a database.but i donot see postgresql in the netstat output because i heard that it has to connect to port 5432 (i remove the commnet from that line in the postgresql.conf file) to be able to use jdbc driver version 2.Btw i downloaded pgjdbc2.jar from postgresql sit e and renamed it to postgresql.jar. even now i get a class not found error on Class.forName("org.postgresql.Driver"); line in my java program.i have also uncommented the tcpip_socket=true . but i dont know if i have to uncomment any other line in postgresql.conf or if i have to get jdbc driver for my java1.4 version or ??????????
i am really clueless . ihave searched a lot but the documentation is too clumsy and i found it real hard to understand what to do.Please give me step by step introduction to what i should do or direct me to a howto.i would be real greatful .i know sql but iam not at all knowledgeble about the database server management and configuration. thanks in advance Sridhar Guntur. |
Did you start it with the option -i to enable tcp/ip support?
|
All times are GMT -5. The time now is 08:57 AM. |