wood burning stoves 2.0*
The moose likes JDBC and the fly likes MySQL DataSource error on WAS6 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "MySQL DataSource error on WAS6" Watch "MySQL DataSource error on WAS6" New topic
Author

MySQL DataSource error on WAS6

Sergey Borisov
Greenhorn

Joined: Jul 09, 2010
Posts: 2
Hello all!
please tell my what to do if I get such error after pushing "test connection" button in WAS 6.1.0.15:

When I make telnet from WAS server to my MySQL server - it works, I see reply in some binary signs...
But when I loaded tcpdump:3306 and pushed "test connection" there were no packets at all.
I recreated new source - it does'nt help.
I tried the same steps for creating data sourse on other server (WAS7) and it works

btw, i use mysql-connector-java-5.1.12-bin.jar driver
Prabhakar Reddy Bokka
Ranch Hand

Joined: Jul 26, 2005
Posts: 189

You need to check with the connection parameters (url, user name, password, dsn etc.,) you are passing.
Most of the times we get the exception when connection parameters are not correct.

Try to make a simple jdbc connection from your java class. If that works.. pass on the same parameters in server configuration.

SCJP 5, SCWCD 5
Sergey Borisov
Greenhorn

Joined: Jul 09, 2010
Posts: 2
Thankyou Prabhakar for your answer!

Ofcourse I cheked account parameters for my db, they are:
Data sources > MySQLDataSource > Custom properties:
port 3306
databaseName ecms
serverName 10.17.225.60



But how simple jdbc connection will work if it uses that data source configured in WAS which is not workin ?
Ramesh Thulasi
Greenhorn

Joined: Apr 20, 2007
Posts: 2
Sergey,
Check user and password properties.
it should be some thing like user=root password=somevalue
Cheers
Ramesh Thulasi
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: MySQL DataSource error on WAS6
 
Similar Threads
Communications link failure with MySQL
Problem connecting eclipse to mysql database with hibernate
TCP/IP over SSH-com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
JDBC- mysql Connectivity Problem
Using the MySql database