List:General Discussion« Previous MessageNext Message »
From:tj marlin Date:July 19 2001 1:41am
Subject:Re: java.sql.SQLException: [TCX][MyODBC] Access denied for
View as plain text  
the method signature for getConnection is:

public static synchronized Connection getConnection(String url,
   String user, String password) throws SQLException

try PURE JSP Java Server Pages by James Goodwill from Sams. a nice book. 
has some coding errors.

At 04:02 PM 7/18/01 -0600, you wrote:
>I am starting using mysql and I made a java SimpleQuery servlet that is 
>suppose to retreive one row from the database. However, when I try to 
>connect I get that message from the Subject. I know I'm suppose to pass 
>the password but can't seem to find a way of doing it. I was wondering if 
>the problem was with those two lines or if it was in the tdx mysql driver 
>default configuration in the ODBC.
>
>Class c = Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
>dbConn = DriverManager.getConnection("jdbc:odbc:TestDSN;");
>
>I would appreciate if someone could help me to get my connection going.
>Thank you very much
>Luc Lalancette


----------
tom marlin
tjmarlin@stripped
fax / voice mail: 714 507 3802 ext 4881
Never be afraid to try something new. Remember that
   - amateurs built the ark.
   - professionals built the Titanic.

Thread
java.sql.SQLException: [TCX][MyODBC] Access denied for user... (Using password: No) messageLuc Lalancette18 Jul
  • Re: java.sql.SQLException: [TCX][MyODBC] Access denied foruser... (Using password: No) messagetj marlin19 Jul
  • Re: java.sql.SQLException: [TCX][MyODBC] Access denied for user...(Using password: No) messageVenu Anuganti19 Jul
Re: java.sql.SQLException: [TCX][MyODBC] Access denied for user...(Using password: No) messageVenu Anuganti19 Jul
  • RE: java.sql.SQLException: [TCX][MyODBC] Access denied for user... (Using password: No) messageshane19 Jul
    • Re: java.sql.SQLException: [TCX][MyODBC] Access denied for user...(Using password: No) messageVenu Anuganti20 Jul