Relation Database

Hi every one,
I did all steps showed in O’Relliy book to connect asterisk with mysql data base named mar instad to connect it to PostSQL as it showed in the book, but when I run the command in asterisk
CLI>realtime mysql status
This error appear, Can you tell me how to solve it
Crying or Very sad
[Jan 13 22:49:38] ERROR[18729]: res_config_mysql.c:629 mysql_reconnect: MySQL RealTime: Failed to connect database server mar on localhost (err 1044). Check debug for more info.