PDA

View Full Version : Installing script error "Access denied for user 'apache'


aamirkhj
Wed 6th Feb '08, 1:59pm
Hi I am able to upload the files to the server via smart ftp, I also configured the Config.php according to the instructions, I think there is an issue for db, I am getting the following error message while running installing script,


Step 2) Connect to the database
Attempting to attach to database
Error description: mysql_connect(): Access denied for user 'apache'@'localhost' (using password: NO) /var/www/vhosts/meraraabta.com/httpdocs/site/baithak/includes/class_core.php on line 274
The database has failed to connect because you do not have permission to connect to the server. Please confirm the values entered in the 'includes/config.php' file.


Can some one help me what I am doing wrong in creating DB in my PLESK control panel.

Steve Machol
Wed 6th Feb '08, 3:42pm
The most likely cause of this error is that the info in your config.php file is wrong or your db user does not have full permissions to this database. Please read this for all the known causes of this error:

http://www.vbulletin.com/forum/showthread.php?t=194542

Note: It is unlikely that your db username is really 'apache'.

aamirkhj
Wed 6th Feb '08, 3:54pm
Thank you Steve Machol (http://www.vbulletin.com/forum/member.php?u=656) for your quick response, I already checked that link before that is why I posted my request here, as far as all the instructions are concerned I think I am doing ok because I was able to upload the upload folder to my server successfully but I think since I am not a tech guy and have no idea to create a php script for db that is why I might be facing issue, I did created a db name in my PLESK control panel but I am not sure just by creating the name of db in PLESK control panel is not enough my be I need to add a php db script as well, can you help me to understand what to do next?? or about the structure of db script ?? to be added in PLESK.

Hoping to hear from you soon.

Steve Machol
Wed 6th Feb '08, 3:58pm
Honestly that link has ALL the known causes of this problem. As I said it is unlikely that your db username is really 'apache'. You need to create a db user and password, and assign full permissions for that database to this user.

aamirkhj
Wed 6th Feb '08, 4:05pm
Thanks for your response; I will see how I can fix it, thank you for your assistance.