|
From: Ken G. <kgu...@te...> - 2004-06-06 19:01:14
|
On Sunday 06 June 2004 12:34 pm, you wrote: > Are you sure your hostfile is correct? I'm pretty sure I have used > only localhost.. can't test it right now though... > You hostfile must have a line like this I think...: > 127.0.0.1 myhost localhost > > Assuming you are working on linux off-course. Why would I use Linux when I can use FreeBSD;-) localhost portion of /etc/hosts is correct, e.g.: #::1 localhost.teamcool.net localhost 127.0.0.1 localhost.teamcool.net localhost followed by line containing actual IP address, FQDN, and Aliases. =20 However, just for fun I move /etc/hosts out of the way, and it matters=20 naught.=20 PHP, Perl, Python, etc. all work fine using just "localhost" with the=20 hostfile above. All Tomcat/Jboss apps I've used requiring=20 mysql-connector do not. =20 Can easily work around by using ejb...@lo... in mysql=20 grant tables instead of simply "localhost", but was wondering if there=20 was some java/jboss/tomcat/myql-connector knob I was missing somewhere. I've subsequently discussed this with another java dev head. Reportedly=20 this is mysql-connector related, as I am informed Oracle connector does=20 not behave this way. So from what I gather talking to him, it sounds=20 like mysql-connector glitch. It's been this way for long as I can=20 remember though, so I figure there must be some reason for it.... --=20 Best regards, Ken Gunderson GPG Key-- 9F5179FD "Freedom begins between the ears." -- Edward Abbey |