i\'m running an Apache Tomcat 6.0.20 / MySQL 5.1.37-lubuntu / sun-java6-jdk /sun-java6-jre / sun-java6-bin on my local machine using Ubuntu 9.10 as OS. I\'m trying to get a
Class.forName("com.mysql.jdbc.Driver"); con=DriverManager.getConnection("jdbc:mysql://localhost:3306/indiadb","root","root");
Check:
the port number it must be only 3306
Add the mysql.jar in lib if you are using Tomcat6
mysql.jar