phpBB Table Repair Utility
FAILED!
Could not connect to the database, please check your username, password, and server, and try again."; flush(); die(); } echo "Done!"; flush(); echo "
"; echo "Selecting database... "; $result = mysql_select_db(addslashes($HTTP_POST_VARS['database'])); if( !$result ) { echo "FAILED!
Could not select databse, please check your database name and try again."; flush(); die(); } echo "Done!"; flush(); echo "
"; echo "Repairing table... "; $result = mysql_query("REPAIR TABLE " . addslashes($HTTP_POST_VARS['table']) . " EXTENDED"); if( !$result ) { echo "Oops, something went wrong while repairing the table. The exact error MySQL reported was
"; echo "MySQL Error Number: " . mysql_errorno(); echo "MySQL Error: " . mysql_error(); echo "
"; die(); } echo "Done!"; flush(); echo "
"; echo "Ok, everything's finished. It looks like the table has been repaired. Now closing the MySQL link."; echo "Here is exactly what MySQL Reported:
"; $message = mysql_fetch_array($result); echo "Table: " . $message['Table'] . "
"; echo "Message type: " . $message['Msg_type'] . "
"; echo "Message text: " . $message['Msg_text'] . "
"; mysql_close(); flush(); } else { ?>
Please enter the reuqested information. All fields are required.
Database Username:
Database Password:
Database Server:
Database Name:
Table to repair: