Ak máte iné čísla, môžete použiť tento opravný skript:
Kód: Vybrat vše
<?php
// Skontroluje a opraví všetky tabuľky v PHPBB štruktúre
// overí, že sme oprávnení skript spustiť
// zmeňte overovací kód 'PX42m3' na niečo typické pre vaše stránky, takže skript bude
// vykonaný, len ak ho spustíte ako 'www.mojeforum.cz/fixtables.php?PX42m3=1'
if (!isset($_GET['PX42m3']))
{
header("Location: http://127.0.0.1/");
die();
}
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'config.php');
// connect to the database server
$db = mysql_connect($dbhost,$dbuser,$dbpasswd);
if (!$db) die("Unable to connect to database!\n");
// select the PHPBB database
mysql_select_db($dbname,$db);
// get a list of tables for this PHPBB
$tablequery = "show tables like '".$table_prefix."%'";
$tablelist = mysql_query($tablequery,$db);
// cycle through them for repair
while ($tar = mysql_fetch_array($tablelist))
{
$tablename = $tar[0];
// output some verbosity for comfort
echo "Now checking and repairing table $tablename ... ";
$repres = mysql_query("REPAIR TABLE $tablename");
$result = mysql_fetch_array($repres);
echo $result['Msg_text'] . "<br>\n";
}
?>
Spracované podľa http://www.phpbb.com/phpBB/viewtopic.php?t=259967 od užívateľa s nickom episcom.