hi friends
When i try to connect to MYSQL in
tomcat project, i can't connect that.The same program run fine without tomcat project.
Please help me
Code is
Connection conn = null;
String userName = "root";
String password = "rootpwd";
String url = "jdbc:mysql://localhost/test";
Class.forName ("com.mysql.jdbc.Driver").newInstance ();
conn = DriverManager.getConnection (url, userName, password);
This code is working fine without tomcat