Re: unable to connect to mysql on remote server

2009-02-12 Thread Gregor Schneider
Sorry, should have been mysql -h YOUR_HOST_HERE -u USER -p Rgds Gregor -- just because your paranoid, doesn't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 --

Re: unable to connect to mysql on remote server

2009-02-12 Thread Gregor Schneider
By default, MySQL only listens on localhost. If you have configured MySQL to listen for remote connections, happy getting hacked... However, to solve your issue: - Make sure you can connect to the remote MySQL from the server where you're running Tomcat: mysql -h YOUR_HOST_HERE - u USER -p If t

unable to connect to mysql on remote server

2009-02-12 Thread Sneha Manohar
Hi , I am trying to connect to mysql on remote server using following code Class.forName("com.mysql.jdbc.Driver").newInstance();      String connectionURL = "jdbc:mysql://remoteHostIp:3306/test";         Connection connection = DriverManager.getConnection(connectionURL, "root", "")