Please check the following:
---------------
servername = localhost
username = cpanelusrname_databaseusrname (NOT IN CAPITAL LETTERS)
databasename = cpanelusrname_database
password = password for cpanelusrname_databaseusrname not cpanelusrname
databasename and username should be linked with required privileges set.
---------------