You were right guys.
The web server is a free web host and I read on the official web site that remote connections to the MySQL server are not allowed.
It is the reason why my applet can not open a connection to the database.
Anyway, I am going to mark my initial question as answered.
Self-sign mechanism helped me to get rid of permission problems.
I thank every person who took some time to give me information via this thread.