Installation error

The provided database host, username, and/or password is invalid, and a connection to the database could not be established. Please enter a valid host, username and password

Getting the above error on installation.

database name - purchaseglorycrm
hostname - localhost
user - purchaseglory
password - **********

SuiteCRM Database User i - same as admin user
admin name - admin
admin user name password - entered same as above
reenter admin user password - entered same as above
URL - http://localhost/PurchasegloryCRM
email address - registered

What are your versions of OS, database, web server, PHP and SuiteCRM?

Did you create a suitecrm database before running the installer? You shouldn’t. If you did, delete it and try again.

Also, it might be worth trying a simple SQL password, without any special characters.