The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
database help
Database error in vBulletin 4.2.0:
please can some one give me step by step instructions on how to fix this, nobody can login to the forum atm so very desperate for help Invalid SQL: DELETE FROM strikes WHERE striketime < 1344074169; MySQL Error : Unknown column 'striketime' in 'where clause' Error Number : 1054 Request Date : Saturday, August 4th 2012 @ 04:56:09 AM Error Date : Saturday, August 4th 2012 @ 04:56:09 AM Script : http://www.reign-of-chaos.co.uk/login.php?do=login Referrer : http://www.reign-of-chaos.co.uk/admincp/index.php IP Address : 88.97.12.60 Username : Wonko Classname : vB_Database MySQL Version : 5.1.63-community-log |
#2
|
|||
|
|||
For some reason you're missing a column from that table. Since there's no permanent info in that table you could just drop it and recreate it, like
Code:
drop table strikes Code:
CREATE TABLE strikes ( striketime INT UNSIGNED NOT NULL DEFAULT '0', strikeip CHAR(15) NOT NULL DEFAULT '', username VARCHAR(100) NOT NULL DEFAULT '', KEY striketime (striketime), KEY strikeip (strikeip) ) |
#3
|
|||
|
|||
thank you for your reply but I am a complete novice so where do I insert the code?
--------------- Added [DATE]1344084042[/DATE] at [TIME]1344084042[/TIME] --------------- in phpmyadmin I found this SQL query on database reignofc_vb: do I paste the drop table strikes into this box? then paste the second code into the same box? sorry just never been in this situation before & never want to come back either |
#4
|
|||
|
|||
You would need to do it somewhere where you can execute sql queries, either in the Maintenance Menu in the admincp, or using phpmyadmin (if you have that available). Edit: oops - of course you can't use the admincp if you can't log in).
Edit: OK, I see you found phpmyadmin. Yes, paste the drop table command in that box, press go, then go back to SQL query and do the second part. |
#5
|
|||
|
|||
its saying i need to display at least 1 column would this be strikes?
|
#6
|
|||
|
|||
I don't know why it's saying that - is that an error message when you tried to drop the table?
|
#7
|
|||
|
|||
I was using the wrong box now getting this message
1051 - Unknown table 'strikes' so table is droped now getting this #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 6 |
#9
|
|||
|
|||
it seams to have worked this time yes must have missed the paren the first attempt
--------------- Added [DATE]1344085274[/DATE] at [TIME]1344085274[/TIME] --------------- it seams to have fixed the database error, thank you very much, just need to work out how to get into the cp panel after dbteck vbsecurity banned my ip --------------- Added [DATE]1344085348[/DATE] at [TIME]1344085348[/TIME] --------------- do you any way that it can be done?? the only admin who could do it before is away for a month to the states |
#10
|
|||
|
|||
Quote:
Code:
define('DISABLE_HOOKS', 1); then upload it and overwrite the existing file. Then hopefully you can log in and disable the vbsecurity product (or do whatever you have to do to enable your ip). Remove the DISABLE_HOOKS line from your config.php when you're done. If this doesn't work you'll have to ask dbtech - I'm not familiar with that product. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|