Today the code appeared no suitable driver found for jdbc, but also searched the online information, basically said to be three questions:
One is: There was a problem with the connection URL format (Connection conn=drivermanager.getconnection ("Jdbc:mysql://localhost:3306/xx", "root", "XXXX")
The second is: drive string error (Com.mysql.jdbc.Driver)
Third, the classpath did not join the appropriate MYSQL_JDBC drive
After my careful examination, these three kinds of mistakes I have not committed, why?
Try to add Mysql-connector-java-3.1.14-bin.jar jar package to C:\Program Files\java\jre1.6.0_02\lib\ext folder, solve the problem!!
This is not only required to add the driver to Classpath, but also need to add the jar package to the Java operating environment of the external jar package, alas, the next low-level error is still less good.
No suitable Driver Found for jdbc_ my workaround