-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Could not connect to a remote host
PostPosted: Mon Dec 03, 2007 12:32 am 
Newbie

Joined: Sat Nov 24, 2007 8:51 pm
Posts: 2
Hi everyone, I have a doubt and I hope you can help me to solve it.
Well, my problem is that I'm using Mysql and the problem is that from another host (not localhost) I want to connect to my database and I can't. my url is this:

Code:
jdbc:mysql://localhost:3306/mydatabase


this works fine BUT when I replace "localhost" for 192.168.0.1 or something else, it doesn't work at all. I can change the values of this properties from my program (not into hibernat.cfg.xml in hard-code).

I've also try a ping and it works, so it is not a network problem. So why? i don't understand. Thanks, please help me.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


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

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.