I'm trying to connect to the database in my code, however it appears the following error:
Exception in thread "main" java.sql.SQLException:
No suitable driver found for jdbc: mysql: // localhost: 3306 / user
Code:
public class ConexaoBd {
public static void main(String[] args) throws SQLException{
Connection conexao = DriverManager.getConnection("jdbc:mysql://localhost:3306/usuario","root","tonhaoroot");
conexao.close();
}
}