Status
Not open for further replies.

Flash

Active Member
1,463
2008
191
0
Ok So WarezPredator is down due to a DB error and idk wtf is going on. Here is the error:

mysql_connect() [<a
href='function.mysql-connect'>function.mysql-connect</a>]:
Access denied for user 'warezpre'@'localhost' (using password: YES)
/home/predator/public_html/includes/class_core.php on line 311



Line 311 is the following:

$link = $this->functions[$usepconnect ? 'pconnect' : 'connect']("$servername:$port", $username, $password);


I know you have to enter some details but guide me through this I tried but failed. Thank you
 
21 comments
do you have the db name wrong? password?

i see it says denied for user "warezpre" seems like you are using the cpanel user for the db, which is sort of a security risk. Make a db user for the db.
 
Install a product recently? Try disabling hooks/plugins and see if it is resolved. If so you should know what to do from there.
 
Ok so if I were to create a new DB and change the details would they be as follows:


$link = $this->functions[$usepconnect ? 'pconnect' : 'connect']("$servername:$port", sample123, sample321);

???
 
whatt?? no you shuoldn't be editing that file.

you have vbulletin, you edit configuration.php in the includes folder. (i think that is how vb is)

you are editing the wrong file, that is why you are getting errors.
 
Yes I know about the config file and I know how to edit it but its still giving me errors about that line for some reason.
 
Don't edit any other files except the config.php file,
even if it does say you have too.

Have you added the user to the database?
 
Read my reply. Ty.

no... you're wrong.
if you are on shared hosting and you get that error, then you are at a crappy host. please do not reply if you are not going to help

@ Flash, like goob3r said, never edit other files unless you know what you are doing. (and from the sound of it, no offense but you don't)



you edited your config.php wrong it seems when i go to your site i get "
Parse error: syntax error, unexpected T_STRING in /home/predator/public_html/includes/config.php on line 66"

if you can, PM me your config.php file.

I should have helped Arikiran when he asked me lol..
 
exactly what Sandin0 said. The error is in config.php and is easily fixed by editing it correctly but don't post it here for security reasons. If your still having trouble after Sandin0 ask for more help.

Technical info made noob like:
When you install vB it inserts your database connection information you enter into the config.php file. Every time after that when it wants to connect to the database (which is every page view) it opens the config.php file to find the connection details. That's why you always only need to edit the one file only once.
 
Most of them are no so co-operative as u are Sandino even if I didn't didn't stick to My356 I still like the way u guys handle thing and are trustworthy..

:)
 
Most of them are no so co-operative as u are Sandino even if I didn't didn't stick to My356 I still like the way u guys handle thing and are trustworthy..

:)

thanks=)

maybe you should come back =P things have gotten alot better. (i think when you were with us, we had a few technical problems)
 
hmm sandi bro.. first of all thanks for the help u did..!!
n as devil said u r just trustworthy n kewl.!

but its not that the new host dint tried to help me.. just the thing was that.. he was so much busy with his projects that he wasn't able to do so..

oderwise i know him he would have had done it..

well thanks again bro..!! ;)
 
Status
Not open for further replies.
Back
Top