Comment définir la propriété autoReconnect pour mysql db url dans le fichier de configuration de Play Framework?

Je suis en train de mettre autoReconnect=true mysql propriété de la connexion dans l'application.fichier conf de mon Play Framework 2.0 de l'application. Mais il me donne l'erreur suivante :

Caused by: java.sql.SQLException: The connection property 'autoReconnect' only accepts values of the form: 'true', 'false', 'yes' or 'no'. The value 'true?useUnicode=yes' is not in this set.

C'est ma chaîne de connexion dans l'application.fichier conf:

db.default.url="mysql://db_user:db_user@localhost/mydb?autoReconnect=true"

Je suis en train d'essayer de définir ce paramètre de connexion parce que je reçois cette erreur dans ma demande, une fois qu'il est inactif pendant une longue période de temps :

[error] c.j.b.ConnectionHandle - Database access problem. Killing off all remaining connections in the connection pool. SQL State = 08S01
[error] application - Failed to login the user : guest
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully  
received from the server was 153,398,761 milliseconds ago.  
The last packet sent successfully to the server was 153,398,762 milliseconds ago. is longer than the server configured value of 'wait_timeout'. 
You should consider either expiring and/or testing connection validity before use in your application, increasing the server configured values for client timeouts, or using the Connector/J connection property 'autoReconnect=true' to avoid this problem.

J'ai aussi essayé la définition de ces play db paramètres pour résoudre ce problème de connexion comme indiqué ici ( https://groups.google.com/forum/#!sujet/jeu-cadre/KzvbZ61j9Eo ), mais elle ne résout pas le problème.

idleConnectionTestPeriod=10
testConnectionOnCheckin=true

Toute orientation vers la résolution de ce problème serait appréciée.

Grâce.

source d'informationauteur invinc4u