So, app was connecting from jail’s public IP to the MySQL and that didn’t worked since I had user created like:

USER@localhost

Instead of:

USER@%

or

USER@JAILIP

And that got me confused badly. I would like to thank Mark for clarification.