This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes JDBC and Relational Databases 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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "MySQL DataSource error on WAS6" Watch "MySQL DataSource error on WAS6" New topic

MySQL DataSource error on WAS6

Sergey Borisov

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

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

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.

Sergey Borisov

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

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

Joined: Apr 20, 2007
Posts: 2
Check user and password properties.
it should be some thing like user=root password=somevalue
Ramesh Thulasi
Consider Paul's rocket mass heater.
subject: MySQL DataSource error on WAS6
It's not a secret anymore!