Problems with JDBC

Поиск
Список
Период
Сортировка
Искать

Problems with JDBC

От:
Saldivar <ic96013@solar6.ingenieria.uatx.mx>
Дата:
Hi,
My name is Alejandro Saldivar, i'm from Mexico, please sorry my english
but i don't kown very good.

i try connect with Postgresql , this is installer in Sun, my data  base is
equipo1a , but when i try connect with JDBC the computer show me a
message:

java.sql.SQLException: User authentication failed

my lines of code there are:

try{String driverName ="postgresql.Driver";Driver driver = (Driver	)       Class.forName(driverName).newInstance();Properties p =new Properties();		p.put("user","equipo1a");p.put("password","saltbr99");				String dbURL="jdbc:postgresql://148.219.122.24:5432/equipo1a";          connection=driver.connect(dbURL,p);	


my server is:148.219.122.24
my login:equipo1
my password is: saltbr99
my database is: equipo1a

well, is all, is you need more information please send me a e-mail, and if
ypu have the aswer please send me a e-mail.

thanks




A T E N T A M E N T E

Alejandro Saldivar Reyes
ic96013@solar6.ingenieria.uatx.mx
sistemas@hovomex.com.mx
asaldivar@correoweb.com
   :) :) :)  :) :) :)        :) :) :)  :) :) :)   :)         :)  :) :) :):)        :)              :)        :)         :)         :)        :):)        :)              :)        :)         :)         :)        :):) :) :)  :) :) :)        :) :) :)  :) :) :)   :)         :)  :) :) :)      :)  :)              :)        :)         :)         :)  :)      :)  :)              :)        :)         :)         :)  :):) :) :)  :) :) :)        :)        :) :) :)   :) :) :)   :)  :) :) :)  



FAQ