PDA

View Full Version : I just really messed up my site...can I fix it?


q22inc
09-11-2007, 01:39 AM
I think I just learned the "you should always backup your site regularly" lesson.

I tried installing a "shopping cart" off the Hostgator website. In the process of doing that, I now get a "database error" when I go to my site. :( Is there anyway to undo this?


I really hope I don't have to re-install everything.

Eikinskjaldi
09-11-2007, 01:55 AM
Is there anyway to undo this?

Yes.

If you'd like more information on exactly how to fix it, you might like to give usmore information on exactly what the database error is.

Brandon Sheley
09-11-2007, 02:02 AM
Post the exact db error.

Weapon-x
09-11-2007, 02:11 AM
Please post the error.

Or contact your Webhost to set the DB one day back.

q22inc
09-11-2007, 04:27 AM
Thanks for the replies.

I'll copy paste the error as well as a screen shot below.


Database Error Database error
The database has encountered a problem.
Please try the following:

* Load the page again by clicking the Refresh button in your web browser.
* Open the www.s****-f****.com home page, then try to open another page.
* Click the Back button to try another link.

The www.s****-f****.com forum technical staff have been notified of the error, though you may contact them if the problem persists.

We apologise for any inconvenience.


http://img523.imageshack.us/img523/9184/dberrorur6.jpg

Eikinskjaldi
09-11-2007, 05:05 AM
LOL.


OK, so go back to that page, and view the html source. Somewhere in there will be the actual database error message.

EDIT: nvmd, you missed blacking out one of your urls so I went there and had a look myself.

The actual error is:

<!--
Database error in vBulletin :

mysql_connect() [&lt;a href='function.mysql-connect'&gt;function.mysql-connect&lt;/a&gt;]: Access denied for user 'q22inc'@'localhost' (using password: YES)
/home/q22inc/public_html/Forum/includes/class_core.php on line 273

MySQL Error :
Error Number :
Date : Tuesday, September 11th 2007 @ 01:06:37 AM
Script : http://www.spurs-forum.com/Forum/
Referrer :
IP Address : 150.101.126.134
Username :
Classname : vb_database
-->


So there is your error, your config.php does not have the correct password for your database.

q22inc
09-11-2007, 06:12 AM
^ Thanks. :)

Just fixed it.

Weapon-x
09-11-2007, 12:26 PM
Just looks like your server doesn't have connection to MySQL. Glad to know it's back online.