Flash Games

 FAQ   Search   Members   Groups   Register  User Control Panel      Login 

Your time now:
Mon Nov 23, 2009 9:09 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ]  Bookmark and Share
Author Message
 Post subject: database connection
PostPosted: Fri May 25, 2007 9:27 am 
Offline

Joined: Tue May 15, 2007 8:26 am
Posts: 2
I’m 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æst");

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’t 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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group - Flash Games - TNX Invitation Code - TNX Review


Webmaster - Excruciating - Johnathan - Kotik - Ash - Tomi - rangana - Phate - dflynn - Medley