<?php
$baglanti   = mysql_connect('localhost', 'root', '');
$sonucu = mysql_query('SHOW VARIABLES', $baglanti);
while ($satir = mysql_fetch_assoc($sonucu)) {
    echo $satir['Variable_name'] . ' = ' . $satir['Value'] . " <br>";
}
?>
bdb_cache_size = X
X değerini yazarmısın?