<?php
$host = "localhost";
$user = "資料庫帳號";
$passwd = "資料庫密碼";
$connect = mysql_connect($host,$user,$passwd);
$db = mysql_connect($host,$user,$passwd);
mysql_select_db("資料庫",$connect);
$sql = "OPTIMIZE TABLE 資料表名稱";
$result = mysql_query($sql) or die ("未完成");
?>
$host = "localhost";
$user = "資料庫帳號";
$passwd = "資料庫密碼";
$connect = mysql_connect($host,$user,$passwd);
$db = mysql_connect($host,$user,$passwd);
mysql_select_db("資料庫",$connect);
$sql = "OPTIMIZE TABLE 資料表名稱";
$result = mysql_query($sql) or die ("未完成");
?>
全站熱搜
留言列表