View Full Version : Database error
leannet
10-27-2009, 04:41 AM
Can anyone help me with this please
Database error in vBulletin 3.7.1:
Invalid SQL:
SELECT * FROM user FORCE INDEX (lastactivity)
WHERE lastactivity > 1256562000 ORDER BY username;
MySQL Error : Incorrect key file for table './xxxxxxxxxxxxx/user.MYI'; try to repair it
Error Number : 126
Request Date : Tuesday, October 27th 2009 @ 12:39:16 AM
Error Date : Tuesday, October 27th 2009 @ 12:39:17 AM
Script : http://www.xxxxxxxxxxxxxx.com/
Referrer :
IP Address : xxxxxxxx
Username : xxxxx
Classname : vB_Database_MySQLi
MySQL Version : 5.0.85-community-log
WEBDosser
10-27-2009, 04:52 AM
Try running a repair:
Admin CP -> Maintenance -> Repair / Optimize Tables
Run it twice to make sure it comes back clean the second time.
leannet
10-27-2009, 04:55 AM
I can't log into admin cp I keep getting error aswell :(
Do you know or how this could have happened ?
WEBDosser
10-27-2009, 05:09 AM
try to disable the hook system and then enter admincp..
you need to edit includes/config.php and add the following code: define('DISABLE_HOOKS', true);
then delete the line when done
snakes1100
10-27-2009, 06:16 AM
If the "user" table is crashed as the msg states, the you will not be able to login from the admincp or the forum pages wether the hook system is disabled or not.
You will need to run a repair with either myisamchk via the cmd line in ssh or use phpmyadmin which comes with most panels like cpanel, plesk etc.
leannet
10-27-2009, 06:29 AM
Thanks for the reply snakes I am not familiar with phpmyadmin but I will see what I can do.
--------------- Added 1256628638 at 1256628638 ---------------
is phpmyadmin the same thing as smart ftp client, sorry to be a pita
DeanLag
10-27-2009, 06:49 AM
No, PhpMyAdmin is a software to handle the administration of MySQL (textbook definition =p) and FTP client is just to transfer file from your computer to your webhost, or vice versa.
Did you try disabling the plugin system and see if you can go into ACP?
How did your error happen? Did you install a new Mod then you got the error? or it just happened out of the blue?
leannet
10-27-2009, 06:53 AM
It just happened out of the blue
how do I disable the plug in system ?
--------------- Added 1256632191 at 1256632191 ---------------
i've downloaded phpmyadmin but I can't get it to work I must have done something wrong.
--------------- Added 1256632289 at 1256632289 ---------------
I downloaded this one
phpMyAdmin-3.2.2.1-english.7z 1.5 MiB is it correct?
DeanLag
10-27-2009, 08:24 AM
If you have cPanel or Plesk, it usually comes with PhpMyAdmin.
To disable the plugin system
you need to edit includes/config.php and add the following code: define('DISABLE_HOOKS', true);
snakes1100
10-27-2009, 12:25 PM
leannet posted in his first post that the "USER" table is crashed with a incorrect key, what is disabling the plugin system going to do?
@leannet
You should do a little searching over at vbulletin com for incorrect key as there are a few answers there as well as google that might shed some light on why the sudden crash, it can even be caused by mis-matched character collations on your table.
leannet
10-27-2009, 11:26 PM
Thanks for all the replies I am not sure what was wrong but it seems to have corrected itself.
snakes1100
10-28-2009, 12:17 AM
Depending on OS installed on the server, some are setup to check DB's for crashed tables on restart of sql, ie Ubuntu
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.