my dog learned polymorphism*
The moose likes JBoss/WildFly and the fly likes Problem connecting to Mysql via connector/j Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Problem connecting to Mysql via connector/j" Watch "Problem connecting to Mysql via connector/j" New topic

Problem connecting to Mysql via connector/j

G�raud Gratacap

Joined: May 25, 2004
Posts: 1
Well this problem is starting to get on my nerves . JBoss can't connect to mySQL, even if the password and username are corrects. Only "Connexion refused". Crap.
I even tried root without password. Connexion refused.
And I can access to mySQL by the terminal. If anyone has already seen this, please help me !

PS: I'm running on a debian SID
Nathaniel Stoddard
Ranch Hand

Joined: May 29, 2003
Posts: 1258
Can you login regularly through the regular mysql client?

Qi Liang

Joined: Jun 04, 2003
Posts: 28
Do you modify the datasource in xml file?
There are a lot of tutorial teaching you how to make connection with MySQL!
Thomas Fischer

Joined: May 26, 2004
Posts: 6
I had a similar problem (connection refused) yesterday...
It was caused by my firewall.
Modifying the firewall rule for "java" to allow connect to the mysql-port (default is 3306) solved it.
I agree. Here's the link:
subject: Problem connecting to Mysql via connector/j
Similar Threads
realm security authorize one attempt login
Request Opinions on MySQL User Authentication
connexion to Cloudssape db in WSAD
MySql Password error
Connecting with MySql