I cannot connect to my database that is on my server!

this is what I have:
Java Code:
	String serverName = "xx.xxx.xxx.xx"; //got from website host
    	String mydatabase = "myDbs";
    	String url = "jdbc:mysql://" + serverName +  "/" + mydatabase; // a JDBC url
    	String username = "xx66xx";
    	String password = "pwd";
		
		try {
			Class.forName("com.mysql.jdbc.Driver").newInstance();
        	conn = DriverManager.getConnection(url, username, password);

		} catch (Exception e) {
			JOptionPane.showMessageDialog(null,e.getMessage(), "ERROR", JOptionPane.PLAIN_MESSAGE);
		}
After it compiles, I get the following error mesage "Communications link failure LAst packet sen to the server was 0 ms ago."

Any ideas what is wrong?!?!?

Thanks