Errors Installing Vbulletin

Status
Not open for further replies.

staticfire

New Member
Messages
10
Reaction score
0
Points
0
I have a vbulletin license, and upgraded my hosting account to php 2, and have checked many times to make sure that the config.php is correct and it is...


This is the error I keep receiving:

Step 2) Connect to the database
Attempting to attach to database
Error description: mysql_connect() [function.mysql-connect]: Access denied for user 'static13'@'localhost' (using password: NO) /home/static13/public_html/forums/includes/class_core.php on line 273
[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]


[SIZE=+1]Thanks for your help,
[/SIZE]
 

Brandon

Former Senior Account Rep
Community Support
Messages
19,181
Reaction score
28
Points
48
You need to fill out your database values in includes/config.php.
 
Last edited:

staticfire

New Member
Messages
10
Reaction score
0
Points
0
I DO have the values filled out in config.php thats why I don't understand why it isn't working :/
 
Last edited:

Christopher

Retired
Messages
14,659
Reaction score
8
Points
0
using password: NO
That is your problem. Since you are using your cPanel username, give it your cPanel password.
 

Brandon

Former Senior Account Rep
Community Support
Messages
19,181
Reaction score
28
Points
48
Please let us know if that fixed it or not.
 

staticfire

New Member
Messages
10
Reaction score
0
Points
0
It did not work, the password for everything I'v been using is the same..could that be why?
Edit:
I tried changing the database name, username, and password. Nothing I do seems to be working. I am not new to this, I use to do this all the time, and do not understand why I am having problems. I'm doing it the same way I have been doing it for years.

Any help at all would be greatly appreciated.

Thanks,
 
Last edited:

Jarryd

Community Advocate
Community Support
Messages
5,534
Reaction score
43
Points
48
When entering the database name and database user to connect try use your cpanel as a prefix.

E.g. If the database you want vB to connect to is 'forums' and the user is 'vbulletin'.

In the config make it static13_forums for the database and static13_vbulletin as the user.
 

staticfire

New Member
Messages
10
Reaction score
0
Points
0
*sigh*

Now I'm getting this error:


Step 2) Connect to the database

Attempting to attach to database

Connect failed: unexpected error from the database.

Error number: 1044

Error description: Access denied for user 'static13_vbullet'@'localhost' to database 'static13_forums'

Please ensure that the database and server is correctly configured and try again.





Here is what my config.php looks like.

// ****** DATABASE TYPE ******
// This is the type of the database server on which your vBulletin database will be located.
// Valid options are mysql and mysqli, for slave support add _slave. Try to use mysqli if you are using PHP 5 and MySQL 4.1+
$config['Database']['dbtype'] = 'mysql';

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

// ****** 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.
// If you are unsure of what to put here, leave the default values.
$config['MasterServer']['servername'] = 'localhost';
$config['MasterServer']['port'] = 3306;

// ****** MASTER DATABASE USERNAME & PASSWORD ******
// This is the username and password you use to access MySQL.
// These must be obtained through your webhost.
$config['MasterServer']['username'] = 'static13_vbullet';
$config['MasterServer']['password'] = '<password removed>';
Edit:
Also I figured I'd mention I tried adding and removing static13 as the prefix.

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

I also tried putting static13 in there with and without the prefix on the other things

And I tried using mysql and mysqli here:

// ****** DATABASE TYPE ******
// This is the type of the database server on which your vBulletin database will be located.
// Valid options are mysql and mysqli, for slave support add _slave. Try to use mysqli if you are using PHP 5 and MySQL 4.1+
$config['Database']['dbtype'] = 'mysql';

I tried all of these things in many different combinations and I just cant for the life of me figure out what I'm doing wrong :/

Thanks everyone for your help.
 
Last edited by a moderator:

Jarryd

Community Advocate
Community Support
Messages
5,534
Reaction score
43
Points
48
Hello, log into cpanel and go to the MySQL database wizard, create your database and the user via that, give the database user all permissions. Create and name the database 'forums' and the user 'vbulletin'. In the config file, you would do this:

Code:
// ****** DATABASE TYPE ******
// This is the type of the database server on which your vBulletin database will be located.
// Valid options are mysql and mysqli, for slave support add _slave. Try to use mysqli if you are using PHP 5 and MySQL 4.1+
$config['Database']['dbtype'] = 'mysql';

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

// ****** 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.
// If you are unsure of what to put here, leave the default values.
$config['MasterServer']['servername'] = 'localhost';
$config['MasterServer']['port'] = 3306;

// ****** MASTER DATABASE USERNAME & PASSWORD ******
// This is the username and password you use to access MySQL.
// These must be obtained through your webhost.
$config['MasterServer']['username'] = 'static13_vbulletin';
$config['MasterServer']['password'] = '<Your password here that you setup in the wizard>';

So make sure the database exists first, then try it again.
 

Jarryd

Community Advocate
Community Support
Messages
5,534
Reaction score
43
Points
48
You are welcome, if you need any more help, let me know. *Closed*
 
Status
Not open for further replies.
Top