I have this following code and mysql server running.

 //Connect to MySql Server
   try {
         Class.forName("org.gjt.mm.mysql.Driver").newInstance();
   }
   catch(Exception e){
            System.out.println("Can not get class Name");
   }
   
   try {
        c = DriverManager.getConnection //c is instance of Connection
("jdbc:mysql://jianping.dhs.org/evote?user=username&password=mypasswd");
          }
          catch (SQLException se){System.out.println("trouble to
connect");}//

When run this java code I get "trouble to connect".

What is the potential reason for this. my os is redhat 7.2
Any suggetion appreciated.


--------------------------------
Jianping Zhu
Department of Computer Science
Univerity of Georgia 
Athens, GA 30602
Tel 706 5423900
--------------------------------


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to