[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mysql-java
Subject:    RE: java
From:       John Dahle <john.dahle () cashretriever ! com>
Date:       1999-12-30 15:03:36
[Download RAW message or body]

Hernan-
	First, your English is very good! It is much better than my Spanish. What 
JDBC driver are you using. I use the org.gjt.mm.mysql.Driver and haven't 
had much of a problem with it. Here is a clip from my code to give you an 
idea of how I've done it (I've changed some of the things for security sake 
and to make it short). I'm a beginner too in many ways, so any 
help/corrections from more experienced programmers would help a lot!


         try{
             String sSQL="Select * from tblNames";
             Class.forName("org.gjt.mm.mysql.Driver");
             Connection 
conn=DriverManager.getConnection("jdbc:mysql://dbserver/database?user=me");
             Statement stmt=conn.createStatement();
             ResultSet rs=stmt.executeQuery(sSQL);
            }
	catch(SQLException e)
        	 {
         	
        	 }
	catch(ClassNotFoundException e)
        	  {
         	
        	  }
	catch(Exception e)
        	 {
         	
         	 }


-----Original Message-----
From:	Hernan Czemerinski [SMTP:her_cz@hotmail.com]
Sent:	Thursday, December 30, 1999 8:04 AM
To:	java@lists.mysql.com
Subject:	java

Hello, my name is Hernan. I'm from Argentina.
I'm working with mySql and java and I have a problem.

When I try to connect to mySql using JDBC, the engine returns an error 
code:
"General Error 58". I don't know what does it mean, and I don't know what 
to
do.

In the other hand, if I use de mySql client (from the command line), there
is no problem to establish a connection.

Do someone Know what can it be?

Thank you.

Hernan.

PD: Sorry about my english.
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com


---------------------------------------------------------------------
Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" before
posting. To request this thread, e-mail java-thread558@lists.mysql.com

To unsubscribe, send a message to the address shown in the
List-Unsubscribe header of this message. If you cannot see it,
e-mail java-unsubscribe@lists.mysql.com instead.


---------------------------------------------------------------------
Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" before
posting. To request this thread, e-mail java-thread560@lists.mysql.com

To unsubscribe, send a message to the address shown in the
List-Unsubscribe header of this message. If you cannot see it,
e-mail java-unsubscribe@lists.mysql.com instead.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic