wood burning stoves 2.0*
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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
Author

Problem connecting to Mysql via connector/j

G�raud Gratacap
Greenhorn

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?


Nathaniel Stodard<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS, ICAD, ICSD, ICED
Qi Liang
Greenhorn

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
Greenhorn

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: http://aspose.com/file-tools
 
subject: Problem connecting to Mysql via connector/j