Communications link failure

Description

Hi to all, from today my application (JasperPHP) fail executing jasperstarter.
I got this error:

Unable to connect to database: Communications link failure
The last packet successfully received from the server was 334 milliseconds ago. The last packet sent successfully to the server was 321 milliseconds ago.

I'm using mysql and this is my command:
/path/to/jasperstarter process /path/to/file.jasper -o /path/to/output -f pdf -r /other/path/ -P querySource="SELECT * FROM table" -t mysql -u root -p ***** -H 127.0.0.1 -n db --db-port 3306

If I use same parameters to establish a connection with a mysql client everything goes fine.
Whats wrong?!?
Thanks

Environment

Linux Ubuntu 16.04

Your pinned fields
Click on the next to a field label to start pinning.

Assignee

Volker Voßkämper

Reporter

Stefano Passiatore