If it is having trouble connecting, then that means you have a problem with the script finding or using your mysql.
Have you created a mySQL? Have you checked that your host isn't saying something along the lines of "Important: MySQL Host for any database in this account is mysql6.000webhost.com , do not use localhost!" For the user that goes with your mySQL, has it been assigned to the database and given all of the permissions? Have you accidentally mixed up the username with the database name?
|