Bonjour,

Je ne sais pas trop où poser ma question, alors je la pose ici. J'ai déjà essayé là : Connexion difficile à MySQL, la faute à qui ?

Ce n'est pas une question de développement, c'est juste une question d'installation de OpenCMS et de MySQL. J'ai un poste mandriva 2007, avec java 5, et tomcat 6.

MySQL tout semble très bien fonctionner ; mais impossible de faire fonctionner les programmes java qui essaient de s'y connecter.

Ils utilisent l'URL jdbc:mysql://localhost:3306/

Je ne pense pas que ce soit un problème de firewall ; si je l'enlève, le problème reste.

Dans le rapport d'erreur, OpenCMS me dit :

Alkacon OpenCms Setup Wizard - Validate database connection
Creating Database Connection
It was not possible to create a database connection with the given parameters.
Please check the Exception below. There can be two reasons for this error:

* Your database is down, or
* Your database is not accessible with the given connection parameters.

Be also aware that Alkacon recommends to use the following JDBC drivers for MySQL 4.1.x & 5.0.x:
[mysql-connector-java-3.1.12-bin.jar]

Check that the Jdbc drivers are included in your class path.

Error connecting to database using: "jdbc:mysql://localhost:3306/".
-------------------------------------------
com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception: ** BEGIN NESTED EXCEPTION ** java.net.SocketException MESSAGE: java.net.ConnectException: Connection refused STACKTRACE: java.net.SocketException: java.net.ConnectException: Connection refused at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:156) at com.mysql.jdbc.MysqlIO.(MysqlIO.java:284) at com.mysql.jdbc.Connection.createNewIO(Connection.java:2555) at com.mysql.jdbc.Connection.(Connection.java:1485) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266) at java.sql.DriverManager.getConnection(DriverManager.java:525)
...
-------------------------------------------
Qu'en pensez-vous ? Que feriez-vous ?