Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.sql.Connection;
- import java.sql.DriverManager;
- Connection conn ;
- //the Driver I'd ultimately like to see working
- //Class.forName("org.apache.phoenix.jdbc.PhoenixDriver");
- //testing with mysql jar - this line works fine
- Class.forName("com.mysql.jdbc.Driver");
- //the connection that throws:
- //"java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/lportal-71x-private"
- try{
- conn=DriverManager.getConnection("jdbc:mysql://localhost:3306/lportal-71x-private", "root", "test");
- } catch(Exception e) {
- out.println(e);
- }
Add Comment
Please, Sign In to add comment