Openfire cannot connect to MySQL but MySQL works correctly. CentOS 6.3 x86 openfire-3.8.2-1.i386.rpm

Hello everyone!

Yesterday i tried to install openfire on my CentOS server. I downloaded Openfire from this site and installed it trough terminal using rpm -ivh command. It installed it successfully then i went to localhost:9090 and started installation. It allways throwed me error that it cannot connect to MySQL or something like that that i should check /logs/errors.log etc

Point it that MySQL works because i can connect to it via httpd or mysql workbench.

I even tried to to a fresh CentOS install but is still doesen’t work.

Anybody else has experienced problem like this?