Re: struts failed connection to remote mySQL
From: Keith Wansbrough (kw217_at_cl.cam.ac.uk)
Date: 08/16/04
- Next message: Joona I Palaste: "Problem with Java SSL: No trusted certificate found"
- Previous message: Fred: "java with Paltalk"
- In reply to: Sudsy: "Re: struts failed connection to remote mySQL"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 16 Aug 2004 20:36:58 +0100
Sudsy <bitbucket44@hotmail.com> writes:
> David wrote:
> <snip>
> > When I type netstat -a | grep
> > 3306 I dont' get anything at all.
>
> Then you don't have a listener on that port which is why your
> connection attempt fails.
Comment out the skip-networking directive in /etc/mysql/my.cnf; if you
don't do that, mysql listens on a Unix-domain socket only, but the
MySQL Connector/J uses TCP connections only.
Beware of security issues - by default mysql will listen on all
addresses. I did bind-address = 127.0.0.1 to be relatively safe.
Then shutdown mysql and restart it.
--KW 8-)
-- Keith Wansbrough <kw217@cl.cam.ac.uk> http://www.cl.cam.ac.uk/users/kw217/ University of Cambridge Computer Laboratory.
- Next message: Joona I Palaste: "Problem with Java SSL: No trusted certificate found"
- Previous message: Fred: "java with Paltalk"
- In reply to: Sudsy: "Re: struts failed connection to remote mySQL"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|