If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Connecting to MySQL 4.1.1

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-21-03, 19:21
nocontrol nocontrol is offline
Registered User
 
Join Date: Dec 2003
Posts: 2
Exclamation Connecting to MySQL 4.1.1

Hello all

I've got a weird problem:

I've upgraded from 4.0.x to 4.1.1.
I'm working with PHP and JAVA.
With PHP eveything works as it should.
BUT when i'm trying to connect with JAVA i'm getting this error:

============================================
SQLException:
Cannot connect to MySQL server on localhost:3306.
Is there a MySQL server running on the machine/port you are trying to connect to? (java.lang.NumberFormatException)

SQLState: 08S01

VendorError: 0
============================================

MySql, PHP & JAVA are running on the same machine.
As i told before: On MySQL 4.0.x there are no problems...

Why does it work with PHP but doesn't with JAVA (Connector/J 3.1.0) ??

Any ideas??

Thanks a lot
nocontrol
Reply With Quote
  #2 (permalink)  
Old 12-22-03, 06:08
omiossec omiossec is offline
Registered User
 
Join Date: Jan 2003
Location: Paris, France
Posts: 320
Could you post portion of your java code
__________________
Olivier Miossec
--
http://www.lasso-developpeur.net/
--
Reply With Quote
  #3 (permalink)  
Old 12-22-03, 17:37
nocontrol nocontrol is offline
Registered User
 
Join Date: Dec 2003
Posts: 2
wrong library

i've found the error:
i had an old version of the jdbc (2.0) lib on my system,
that was loaded.

i've replaced it with the current nightly build:
mysql-connector-java-3.0-nightly-20031222-bin.jar

now, everything works!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On