The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Error connection on vBulletin
Hallo
Some week ago I changed my vBullettin hosting for a bigger one with the PHP more updated. Everything works but at the beginning I received, an email with a database connection error that slowly diseappeared. In these day it has started again to send me this error messages; I copy the text here below: Code:
vBulletin Database Error! Database error in vBulletin : mysql_connect(): Host '213-215-228-XXX.hosting.net' is not allowed to connect to this MySQL server /var/www/vhosts/dominio.estensione/httpdocs/includes/class_core.php on line 274 MySQL Error : Error Number : Date : Friday, July 18th 2008 @ 04:57:19 PM Script : http ://dominio.estensione/1583-post17.html Referrer : IP Address : 72.36.115.XXX Username : Classname : vb_database He says that the problem seems to come from the fact that the application tries to connect to db on 213.215.228.XXX (old server?) and being another server is correct that it dosn't allows the connection. He suggest to verify that all the Db connection are to "localhost" and not to external DB and he concludes saying that it is surely a problem of my configuration. vBullettin is updated to 3.6.8 Patch Level 1 version and vBSEO 3.0.0. is installed. Anyone has an Idea to help me solve the problem? Thank you very much __________________ You have never see gift ideas like these? (idee regalo on italian, geschenkideen on german or id?e cadeau on french) |
#2
|
||||
|
||||
Did you do as your host suggested here (look at the user table in your mysql database)?
Quote:
|
#3
|
||||
|
||||
In config.php, set the MySQL server to "localhost".
|
#4
|
|||
|
|||
Interesting!
Then, I go to try. Meanwhile thanks. Bye bye |
#5
|
|||
|
|||
So, I looked for in file config.php (inside include folder) the entry that can be like the error's one and I found this:
Quote:
I have tried to substitute the file in this way and to upload again on the server: Quote:
Quote:
Thak you very much |
#6
|
|||
|
|||
Make sure that you enter the correct MySQL user and password for the new server in the config.php.
|
#7
|
|||
|
|||
I've checked the config.php configuration and everything seems ok but the
error stay; I don't know what to do now!!! I tried to open the file too: /var/www/vhosts/dominio.estensione/httpdocs/includes/class_core.php on line 274 and at line 724 (that the error report) I found this code: Code:
$link = $this->functions[$usepconnect ? 'pconnect' : 'connect']("$servername:$port", $username, $password); Thank you |
#8
|
||||
|
||||
The error (the one you posted in post #5) indicates that your MySQL username/password combination is not correct. Make sure they are correct and that the user has permissions to access the vBulletin database.
|
#9
|
|||
|
|||
Great, I've fixed it!!!
After a lot of trouble and reading again the vBulletin manual I've found an incoherence in config.php file. It's in this section: Code:
// ****** 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'] = 'root'; $config['MasterServer']['password'] = ''; I can't understand how it can be happened but removing that 2 lines the error doesn't appear anymore. Thanks to everybody. Bye |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|