MyBB Community Forums

Full Version: SQL Error 126 with mybb_sessions
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am getting this
MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
    126 - Incorrect key file for table '.\mybb\mybb_sessions.MYI'; try to repair it
Query:
    DELETE FROM mybb_sessions WHERE ip='::1' 

Server:
Localhost XAMPP

Project:
I was making a module that have a multipage form and I am storing all data from previous page to next page in session variables. While logged in mybb forum.

Here is how I am doing this
<?php
define("IN_MYBB", 1);
require_once "/../global.php";
session_start();

After that, I do store my all data from multipage form into session variables,

It is mentioned here that, While doing all this functionality I am logged in my forum (i.e. on localhost)


Partial Solution:
I tried repair when it first comes, all goes well then suddenly my doggy pull out the plug of my system and it just shut down :p
I turned my system on but again face the same error,

So what is the stable solution ?
The fact your dog unplugged the system may have caused it again; it most likely means you have a corrupt SQL file. Try running
REPAIR mybb_sessions
again.
(2013-01-02, 08:43 PM)Paul H. Wrote: [ -> ]The fact your dog unplugged the system may have caused it again; it most likely means you have a corrupt SQL file. Try running
REPAIR mybb_sessions
again.

Let's try that again and will post if any issue ,