Recently, my site went down and the database is gone.
I tried creating a new database and restore the sql dump to the newly created
but when i tried to access the website, it displays 404 error:

Code: 
<!-- 
 instead of REQUEST_URI, we could show absolute URL via:
 http://HTTP_HOST/REQUEST_URI
    but what if its https:// or other protocol?
    
    SERVER_PORT_SECURE doesn't seem to be used
    SERVER_PORT logic would break if they use alternate ports
-->
but when i tried to go to admincp, it says database error:

Code: 
<!--

Database error in vBulletin 4.1.4:
 
Invalid SQL:

 
				SELECT *
				FROM session
				WHERE userid = 0
					AND host = '112.207.1.5'
					AND idhash = 'dfca6b06b504bf390062116e984d2249'
				LIMIT 1;
 
MySQL Error   : Table 'rpgresel_vbdata.session' doesn't exist
Error Number  : 1146
Request Date  : Sunday, August 28th 2011 @ 12:13:47 AM
Error Date    : Sunday, August 28th 2011 @ 12:13:51 AM
Script        : http://96.0.254.87/~rpgresel/admincp/
Referrer      : 
IP Address    : 112.207.1.5
Username      : 
Classname     : vB_Database
MySQL Version : 

-->
tractor3231 Reviewed by tractor3231 on . Fix my vbulletin database Recently, my site went down and the database is gone. I tried creating a new database and restore the sql dump to the newly created but when i tried to access the website, it displays 404 error: <!-- instead of REQUEST_URI, we could show absolute URL via: http://HTTP_HOST/REQUEST_URI but what if its https:// or other protocol? SERVER_PORT_SECURE doesn't seem to be used Rating: 5