When ORACLE data is used, no suitable driver found for JDBC: Oracle is also displayed.
When the fire is getting bigger, use MySQL instead.
The results are the same.
Later I found out:
--------------------------------------------------
Private Static string url = "JDBC: mysql: @ localhost: 3306: Test ";
Change
Private Static string url = "JDBC: mysql: // FIG: 3306/test? User = root & Password = 123456 ";
--------------------------------------------------
Class. forname ("com. MySQL. JDBC. Driver ");
Change
Class. forname ("com. MySQL. JDBC. Driver"). newinstance ();
--------------------------------------------------
Connection conn = drivermanager. getconnection (URL, "root", "123456 ");
Change
Connection conn = drivermanager. getconnection (URL );
--------------------------------------------------
In this case, OK.
Report my software version by the way
MySQL 5.1.14
MySQL JDBC 5.1.12
Windows 7 32