Warning: mysql_connect(): Access denied for user: 'user@localhost' (Using password: YES)
If you get the following error:
Warning: mysql_connect(): Access denied for user: 'user@localhost' (Using password: YES)

Try reconfiguring your MySQL username and password in the PHP script with the following information:

  • Database: cpanelusername_databasename
  • Database User: cpanelusername_databaseuser
  • Password: the password you created for your database user
  • Host: localhost

You must make sure that the database, username, and password has been created prior to running the script.