on 02-22-2008 2:27 PM
Hi all,
I'm trying to connect a web services in java NetWeaver whit a mysql database in my local computer...
I'm try this whit the code follow
Class.forName("org.gjt.mm.mysql.Driver");
Connection conexion =DriverManager.getConnection"jdbc:mysql://localhost/pedidos", "root", "123456");
if (!conexion.isClosed())
{ code...
}
conexion.close();
I have the libraries for the "forName" includes in my proyect... this sentences work fine in a JSP page whit tomcat but i can do it whit NetWeaver...
I hope that you can help me
Thanks...
this is the message that send me the program in the Exception...
com.mysql.jdbc.CommunicationsException: Communications link failureLast packet sent to the server was 0 ms ago
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.