Yes, this is the wrong URL.
You need the MySQL Connector-J JDBC JAR driver in your CLASSPATH.
The url should look like this:
http://dev.mysql.com/doc/refman/5.0/en/connector-j-reference-configuration-properties.html
I would recommend not putting credentials in the url. Add them to Java.
If you get an error, send a stack trace. This will help diagnose what you did wrong.
Can you connect to this database using the MySQL administration tool? Can you ping this server? Can you connect to this port? If not, Java will not connect either. Is there a firewall between your client machine and the database server? If so, then the MySQL port should be open for you.
source share