I have checked the database name, I have checked the user name and password and it appears alright.
I did a straight transfer from one host to another, the only thing I had to do was create the database user and add it to the database. The user has the same details i.e username and password that appears in config.php