In this specific case (assuming that the Class#forName() did not throw any exception; your code is namely proceeding with running instead of throwing the exception), this SQLException means that Driver#acceptsURL() has returned with false for any of the loaded drivers.
And certainly, your JDBC URL is wrong:
String url = "'jdbc:mysql://localhost:3306/mysql";
Remove the single quote:
String url = "jdbc:mysql://localhost:3306/mysql";
Join the SQL Course by Intellipaat to Learn SQL concepts in detail and to get certified.