Thank you anton,
I struggled a lot and finally found a solution, the problem was (of course) a user permission problem.
I changed the username used by playsms to connect to the database. by default it was on “root” and i changed it to “playsms”.
Then i created a second user on mysql named “playsms” with all privileges.