Errors Installing Vb

Status
Not open for further replies.

sencor

New Member
Messages
4
Reaction score
0
Points
0
I have a vbulletin license, and have checked many times to make sure that the config.php is correct but I keep receiving the following error:



Step 2) Connect to the database
Error description: mysql_connect() [function.mysql-connect]: Access denied for user 'sencor_132'@'localhost' (using password: YES) /home/sencor/public_html/vb/includes/class_core.php on line 311
[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

My
[/SIZE][SIZE=+1]config.php code:
[/SIZE]
// for slave options just append _slave to your preferred database type.
$config['Database']['dbtype'] = 'mysql';

// ****** DATABASE NAME ******
// This is the name of the database where your vBulletin will be located.
$config['Database']['dbname'] = 'sencor_123';

// ****** TABLE PREFIX ******
// Prefix that your vBulletin tables have in the database.
$config['Database']['tableprefix'] = '';

// ****** TECHNICAL EMAIL ADDRESS ******
// If any database errors occur, they will be emailed to the address specified here.
// Leave this blank to not send any emails when there is a database error.
$config['Database']['technicalemail'] = '****************';

// ****** FORCE EMPTY SQL MODE ******
// New versions of MySQL (4.1+) have introduced some behaviors that are
// incompatible with vBulletin. Setting this value to "true" disables those
// behaviors. You only need to modify this value if vBulletin recommends it.
$config['Database']['force_sql_mode'] = false;



// ****** MASTER DATABASE SERVER NAME AND PORT ******
// This is the hostname or IP address and port of the database server.
$config['MasterServer']['servername'] = 'localhost';
$config['MasterServer']['port'] = 3306;

// ****** MASTER DATABASE USERNAME & PASSWORD ******
// This is the username and password you use to access MySQL.
$config['MasterServer']['username'] = 'sencor_132';
$config['MasterServer']['password'] = '********';

// ****** MASTER DATABASE PERSISTENT CONNECTIONS ******
// This option allows you to turn persistent connections to MySQL on or off.
// The difference in performance is negligible for all but the largest boards.
// If you are unsure what this should be, leave it off. (0 = off; 1 = on)
$config['MasterServer']['usepconnect'] = 0;
//define('DISABLE_HOOKS', true);

// ****** SLAVE DATABASE CONFIGURATION ******
// If you have multiple database backends, this is the information for your slave
// server. If you are not 100% sure you need to fill in this information,
// do not change any of the values here.
$config['SlaveServer']['servername'] = '';
$config['SlaveServer']['port'] = 3306;
$config['SlaveServer']['username'] = '';
$config['SlaveServer']['password'] = '';
$config['SlaveServer']['usepconnect'] = 0;
 

Derek

Community Support Force
Community Support
Messages
12,882
Reaction score
186
Points
63
Is the database linked to the username and password? You should give it all permissions using the cPanel mysql section.
 

garrettroyce

Community Support
Community Support
Messages
5,609
Reaction score
250
Points
63
You could also try posting in the programming help section or on VB's website. You might get someone there who knows the software a little better.
 

sencor

New Member
Messages
4
Reaction score
0
Points
0
Is the database linked to the username and password? You should give it all permissions using the cPanel mysql section.

thank you for your help
I linked the database to username and password and I did the second step also but I keep receiving the same error.
 

garrettroyce

Community Support
Community Support
Messages
5,609
Reaction score
250
Points
63
try doing this: try creating a new file with this code and see if it works, to eliminate the possibility of a problem with the VB script itself:

Code:
<?php
$link = mysql_connect('localhost', 'sencor_132', 'password');
if (!$link) {
    die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);
?>

This should hopefully give you more information on what is/isn't happening.
 

Derek

Community Support Force
Community Support
Messages
12,882
Reaction score
186
Points
63
Are you SURE those are the correct details for the database? Did you give the database FULL permissions?
 

sencor

New Member
Messages
4
Reaction score
0
Points
0
try doing this: try creating a new file with this code and see if it works, to eliminate the possibility of a problem with the VB script itself:

Code:
<?php
$link = mysql_connect('localhost', 'sencor_132', 'password');
if (!$link) {
    die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);
?>
This should hopefully give you more information on what is/isn't happening.

thank you for your help

i receiving the following error:
Could not connect: Access denied for user 'sencor_132'@'localhost' (using password: YES)

--------------------------------------------------------------------------------------------------------------------

Are you SURE those are the correct details for the database? Did you give the database FULL permissions?

Yes, I am sure
 
Last edited:
Messages
740
Reaction score
1
Points
18
Just to confirm when you made the database all you put in the box was "123". The databases are usually called "cpanel username_whatever you typed" I'm not saying it's wrong still just need to get information because if we don't know we can't really help.

Like I said in my post it COULD be that.
 

garrettroyce

Community Support
Community Support
Messages
5,609
Reaction score
250
Points
63
After reading the entire mysql documentation on this error, the only conclusion I have come to is that the user you created (sencor_132) did not get correctly added. Have you tried deleting the user and re-adding it?

If this doesn't work, I don't know what will :(
 

sencor

New Member
Messages
4
Reaction score
0
Points
0
After reading the entire mysql documentation on this error, the only conclusion I have come to is that the user you created (sencor_132) did not get correctly added. Have you tried deleting the user and re-adding it?

If this doesn't work, I don't know what will :(

Okay thank you
Edit:
It is working now
thank you for your help
 
Last edited:
Status
Not open for further replies.
Top