Asterisk 1.8.9 mysql database connection problem

i’ve a problem connecting asterisk to mysql database .
here is my logs

any ideas guys ???

my config files


mysqld is up and runing and i can access my database tables without any problem using mysql client.
the exact same configuration used to work for asterisk 1.4 .

I figured it out
mysql-devel was not not installed ,now it’s working perfectly