Connecting to database..FAILED?

hi guys, use CentOS5.5
but have some problems
/usr/src/freepbx-2.2.1/install_amp --username=asteriskuser
–password=amp109
Checking for PEAR DB…OK
Checking for PEAR Console::Getopt…OK
Using username: asteriskuser
Using password: ******
Checking user…OK
Checking for /etc/amportal.conf…OK
Reading /etc/amportal.conf…OK
Checking for /etc/asterisk/asterisk.conf…OK
Reading /etc/asterisk/asterisk.conf…OK
Using asterisk as PBX Engine
Checking for Asterisk 1.2…OK
Checking for selinux…OK
Connecting to database…FAILED
Try running /usr/src/freepbx-2.2.1/install_amp --username=user --password=pass (using your own user
and pass)
[FATAL] Cannot connect to database

but i show datebases

±-------------------+
| Database |
±-------------------+
| information_schema |
| asterisk |
| asteriskcdrdb |
| mysql |
| test |
±-------------------+
5 rows in set (0.00 sec)

and how get it?thanks for your help:)