Hi, I am a new user of MYSQL, when I use JDBC to
connect MYSQL, I got exception:

 SQLException: Server configuration denies access to
data source.

  Could some one kindly help me ?

 Thanks a lot.

Jeff Zhao

Here is my program, it is very simple

import java.sql.*;
public class LoadDriver
{
  public static void main(String[] Args)
  {
      try {
  
Class.forName("org.gjt.mm.mysql.Driver").newInstance();
          }
     catch (Exception E) {
       System.err.println("Unable to load driver.");
       E.printStackTrace();
                }
    try {
       Connection Conn = DriverManager.getConnection(
         "jdbc:mysql://localhost/jzhaodb?user=jzhao");
           }
        catch (SQLException E) {
        System.out.println("SQLException: " +
E.getMessage());
        System.out.println("SQLState:     " +
E.getSQLState());
       System.out.println("VendorError:  " +
E.getErrorCode());

   }
  }
}



__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

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