OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Unable to Connect Using JDBC

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Base
View previous topic :: View next topic  
Author Message
frperalta1
Newbie
Newbie


Joined: 05 Aug 2004
Posts: 2

PostPosted: Thu Aug 05, 2004 7:51 am    Post subject: Unable to Connect Using JDBC Reply with quote

I have followed the instructions on different postings but have not had any success.

Every time I click on the Tables tab I keep getting the following error message and I don't know where to start with this, please help:

Unable to connect to any hosts due to exception: java.net.UnknownHostException: localhost

** BEGIN NESTED EXCEPTION **

java.net.UnknownHostException
MESSAGE: localhost

STACKTRACE:

java.net.UnknownHostException: localhost
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:121)
at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:220)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:1768)
at com.mysql.jdbc.Connection.<init>(Connection.java:440)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:400)




** END NESTED EXCEPTION **
Back to top
View user's profile Send private message
Lysander
Newbie
Newbie


Joined: 11 Aug 2004
Posts: 2

PostPosted: Wed Aug 11, 2004 1:23 am    Post subject: Reply with quote

Hello,

the error message tells you what is wrong: The Computer "localhost" cannot be resolved - you must set a real ip-adress like 127.0.0.1. I had the same problem - but i never found any solution for it at forums, docs, ... so I hope it will help you!

Ciao,
Lysander
Back to top
View user's profile Send private message
frperalta1
Newbie
Newbie


Joined: 05 Aug 2004
Posts: 2

PostPosted: Thu Aug 12, 2004 4:26 am    Post subject: Reply with quote

Thanks for your reply! How do you "set a real ip-adress like 127.0.0.1"? I guess I am a real newbie.
Back to top
View user's profile Send private message
Lysander
Newbie
Newbie


Joined: 11 Aug 2004
Posts: 2

PostPosted: Thu Aug 12, 2004 11:22 am    Post subject: Reply with quote

Instead of "localhost" you write 127.0.0.1 or 192.168.0.1 or something like that! Just replace the localhost string by the IP string.

Ciao,
Lysander
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Base All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group