database connection

I抦 trying to a get a connection to my database on domain server one.com

Code:

{

try{

Class.forName("com.mysql.jdbc.Driver"); //open driver connection

System.out.println("Driver indl鎠t");

Connection forb = DriverManager.getConnection

("jdbc:mysql://[mysql.blabla.com] ","username","password");

System.out.println("Forbindelse oprettet");

stmt = forb.createStatement();

}catch (Exception e) {System.out.println("no connection to your database");}

}

It doen抰 seem to work do you have any ideas of what is wrong

Info:

MySQL:

Host: localhost

Database: bla_com

Brugernavn (Username): username

Kodeord (Password): password

PhpMyAdmin:

PhpMyAdmin: [phpmyadmin.bla.com]

Brugernavn (Username): bla_com

Kodeord (Password): blabla

[879 byte] By [Lundgiffena] at [2007-11-27 5:28:43]
# 1
> It doen抰 seem to work do you have any ideas of what is wrong I've got lots of ideas, but do you have more information, e.g. a stacktrace, a description of the program's behaviour?
quittea at 2007-7-12 14:51:13 > top of Java-index,Java Essentials,Java Programming...