So I was testing out MySQL
databases for the first time, (For the following code, all I want to do is establish a connection to the data base):
import java.sql.*;
public class Driver {
public static void main(String[] args) {
Connection con = null;
try{
String url = "jdbc:mysql://localhost:3306/movie";
String user = "root";
String pw = "RockoAndLuke739969";
con = DriverManager.getConnection(url, user, pw);
}
catch(SQLException e){
e.printStackTrace();
}
}
}
And here is the Exception:
java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/movie at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at Driver.main(Driver.java:13)
And I don't know why it isn't working.... thanks for taking your time to read :) (I am new to stackoverflow by the way, so sorry if I screwed something up xD)