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 !