Jim,
Could you post the whole exception
frame?
Also, run "ping <whatever JDBC driver uses>" and
make sure the name/address can be resolved.
Kevin
Bombardier Systems Consulting wrote:
>
> Hello,
>
> I am running RedHat=7.1, MySQL= 3.23.36, JDBC = mm.mysql-2.0.4 and Java
> =1.3.1.
>
> I am trying to open MySQL through the JDBC driver and get the
> java.net.UnknownHostException error...this is all on one machine
>
> I have used the MySQL db with perl and it seems fine. I have tried
> "localhost, 127.0.0.1, the host name and the "real" IP address in the "host"
> part of the URL to no avail. I do have port 3306 in the URL and have
> checked the mysql config file to make sure it agrees...so there seems to be
> a MySQL server running on the machine/port that I am trying to connect
> to....BUT java.net.InetAddress.getAllByName0.java:571 throws the
> exception.
>
> I have now gone through the archives and can't find a similar
> problem...RedHat has fixed the localhost.localdomain problem in 7.1.
>
> What am I missing?
> TIA
>
> Jim
>
> ---------------------------------------------------------------------
> Before posting, please check:
> http://www.mysql.com/manual.php (the manual)
> http://lists.mysql.com/ (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail
><[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php