SharkSpace_M
09-04-2006, 12:29 AM
If you are getting an error that looks similar to: Warning: mysql_connect(): Access denied for user: 'user@localhost' (Using password: YES)
You either do not have the database created, have a user added to the database or you have the information entered wrong in the script config file.
Steps:
1) First you need to verify that you have created the database. Login to cPanel and click "MySQL Databases" The database should show in there. If it is not there, enter the database name in the text box and click "Add Db"
2) Second you need to have a user created and added to your database. Login to cPanel and click "MySQL Databases" then scroll down to the "Users" section and enter a username and password and click "Add User"
After the user is created, the username will show up in the "User" field right above a bunch of check boxes (All, Alter, Create Temporary Tables etc.) Select the user and the database you want to use and make sure the check box "All" is selected and then click "Add User to Db"
3) Now you need to make sure that the username, database and password are entered correctly in the script config file. The config file is different for every script, but it may look like (config.php or mysql_connect.php etc.) If you cant find it, you will have to contact the script creator.
Once you have found the config file, open it and make sure your entered information is correct. It should look like:
Database: cpanelusername_databasename
Database User: cpanelusername_databaseuser
Password: the password you created for your database user
Host: localhost
If you followed all these steps correctly the database will now work.
You either do not have the database created, have a user added to the database or you have the information entered wrong in the script config file.
Steps:
1) First you need to verify that you have created the database. Login to cPanel and click "MySQL Databases" The database should show in there. If it is not there, enter the database name in the text box and click "Add Db"
2) Second you need to have a user created and added to your database. Login to cPanel and click "MySQL Databases" then scroll down to the "Users" section and enter a username and password and click "Add User"
After the user is created, the username will show up in the "User" field right above a bunch of check boxes (All, Alter, Create Temporary Tables etc.) Select the user and the database you want to use and make sure the check box "All" is selected and then click "Add User to Db"
3) Now you need to make sure that the username, database and password are entered correctly in the script config file. The config file is different for every script, but it may look like (config.php or mysql_connect.php etc.) If you cant find it, you will have to contact the script creator.
Once you have found the config file, open it and make sure your entered information is correct. It should look like:
Database: cpanelusername_databasename
Database User: cpanelusername_databaseuser
Password: the password you created for your database user
Host: localhost
If you followed all these steps correctly the database will now work.