Important

nazareth

New Member
Messages
6
Reaction score
0
Points
0
Hi everybody,
I hed uploaded the VB forum files to my web but when iam trying to access the install.php I receives an error like that
Error description: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: NO) /home/nasra/public_html/vb/includes/class_core.php on line 274
[SIZE=+1]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.[/SIZE]
and then I edited the file config.php and found in it the following:
/*-------------------------------------------------------*\
| ****** NOTE REGARDING THE VARIABLES IN THIS FILE ****** |
+---------------------------------------------------------+
| If you get any errors while attempting to connect to |
| MySQL, you will need to email your webhost because we |
| cannot tell you the correct values for the variables |
| in this file. |
\*-------------------------------------------------------*/

anyone can help please ..................................................
 
Last edited:

Synkc

Active Member
Messages
1,765
Reaction score
0
Points
36
First you need to create a new database account and give it privileges to your database; you can do do from your cPanel.

Than, replace the username 'root' and password variables in your config file to match those of the account you just created. Also, make sure the database host is set as "localhost", and the database name variable is correct for your database.
 
Top