Announcement

Collapse
No announcement yet.

Big Problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Big Problem

    I was installing a gaming ladder script onto my database and it also uses an admin log and I totally forget about the admin log for vB. So now the admin log for vB is messed up and I cant get into the admin panel amymore.

    If this helps, here is the query I ran for the ladders:

    DROP TABLE IF EXISTS adminlog;
    CREATE TABLE adminlog (
    logid int(10) NOT NULL auto_increment,
    admin varchar(25) NOT NULL default '0',
    ladderid int(10) NOT NULL default '0',
    details varchar(250) NOT NULL default '',
    created timestamp(14) NOT NULL,
    PRIMARY KEY (logid)
    ) TYPE=MyISAM;


    And this is the error I get when trying to go into the admin cp of vB:

    Database error in vBulletin Control Panel 2.2.6:
    Invalid SQL: INSERT INTO adminlog (adminlogid,userid,dateline,script,action,extrainfo,ipaddress) VALUES (NULL,'1',1056066371,'index.php','','','68.116.54.130')
    mysql error: Unknown column 'adminlogid' in 'field list'

    mysql error number: 1054


    Is there anyway to fix my stupid mistake?
    Last edited by GTA3_Mafia; Thu 19 Jun '03, 3:46pm.

  • #2
    You will need a sorta recent backup and the ability to have an extra database.

    Create a new database and load your backup into it.

    Then use phpmyadmin or annother utility to dump a copy of the adminlog table.

    Drop the adminlog table on your current db and restore the dump.

    Delete the 2nd database and you should be all done.

    Comment


    • #3
      Ok, I got a backup but it was from about 6 months ago and on another database. Is it possible to drop the adminlog table I have now, and restore it with that backup so it just restores the adminlog table and nothing else?

      If it is, how would I go about doing that?


      Edit: Oh well it looks like I don't have it anymore. Is there anything else I can do without a backup?
      Last edited by GTA3_Mafia; Thu 19 Jun '03, 4:05pm.

      Comment


      • #4
        DROP TABLE IF EXISTS adminlog;
        CREATE TABLE adminlog (
        adminlogid int(10) unsigned DEFAULT '0' NOT NULL auto_increment,
        userid int(10) unsigned DEFAULT '0' NOT NULL,
        dateline int(10) unsigned DEFAULT '0' NOT NULL,
        script char(20) NOT NULL,
        action char(20) NOT NULL,
        extrainfo char(200) NOT NULL,
        ipaddress VARCHAR(15) NOT NULL,
        PRIMARY KEY (adminlogid)
        )
        Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
        Change CKEditor Colors to Match Style (for 4.1.4 and above)

        Steve Machol Photography


        Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


        Comment


        • #5
          Thanks Steve, It worked perfectly.

          Comment


          • #6
            No problem!
            Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
            Change CKEditor Colors to Match Style (for 4.1.4 and above)

            Steve Machol Photography


            Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


            Comment

            widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
            Working...
            X